How to geocode in open-source QGIS
Quantum GIS (commonly known as QGIS) is an open-source Geographic Information Systems application that has been gaining ground since 2004. It runs on all operating systems (it began as a Linux project) and you can download it for free.
I used it a couple times because ESRI doesn’t make the popular ArcGIS software for Mac. That’s unfortunate, but like I said here, software, technology and mapping issues can be easily overcome – we can use QGIS to create maps. QGIS, though, is missing one major feature for basic map building: geocoding.
Here’s a step-by-step tutorial on how to bring in addresses onto your QGIS map:
- Go to Plugins>Manage Plugins
- Check the checkbox next to “Add Delimited Text Layer
- Click Okay to add the plugin to your QGIS
- In a spreadsheet, create the following columns in a header row (at a minimum): address, city, state. Other fields you can use: description, name, url, zip, image url
- Input your data into the appropriate columns
- Save the Excel document as a Tab Delimited Text file.
- Open the newly created Tab Delimited Text file in a text-only editor (like Notepad for Windows, TextEdit for Mac, or vi for Linux). Select all the text (including the headers) and copy to clipboard
- Go to www.batchgeocode.com
- In the first text field, paste your text
- Click the Validate Source button
- In Step 4 on the website, map the columns from your text to their appropriate fields in all the drop down boxes
- When you’re done selecting the options, click Run Geocoder.
- Copy your now geocoded data back into your text-only editor and save.* The website may have changed and you may have to click on “show results” before you can copy the geocoded data.
- In your QGIS document, select Plugins>Delimited text>Add delimited text layer.
- In the dialog box, click Browse and find your newly created file.
- Create a layer name – the default is ugly, but you can change it later.
- Since your text file is tab-delimited, make “\t” your delimiter for this import
- Click the Parse button to validate your input (Parse will also attempt to find your columns that hold the latitude and longitude)
- Ensure the X and Y fields have selected the appropriate columns in your text.
- Press OK!
Leave a comment if this howto worked for you.
*If the text file isn’t saved correctly and the delimiter characters aren’t inserted into the file’s source code properly, QGIS won’t import the text properly – it won’t display on your map. On the Mac, an application called XTabulator can help you correct the text file. The QGIS plugin “Delimited text” prefers tabbed files with records separated by CR+LF (File>Document Settings). You can also use the plain text editor to sort out the issue.
Tags: ArcGIS, geocoding, GIS, howto, Linux, Mac, open source, QGIS, Software, Tools, Windows
-Steven Vance










