Page 136 of 172

How to geocode a single address in QGIS

Since the last time I wrote about how to use BatchGeocode.com to perform pseudo-geocoding tasks in QGIS, there have been considerable improvements in the multi-platform, free, and open source GIS software. Now, geocoding (turning addresses into coordinates) is more automatic, albeit difficult to setup. (Okay, this has been around June 2009 and I just found out about it in October 2010.)

Once you install all the components, you’ll never have to do this again.

This method can only geocode one address at a time, but it will geocode all of the addresses into a single shapefile.

  1. Download QGIS.
  2. Download and install Python SetupTools. This includes the easy_install function that will download a necessary Python script, simplejson. On Mac you will have to use the Terminal (Applications>Utilities). Email me if you run into problems.
  3. Install simplejson. In the command line (Terminal for Mac; in Windows press Start>Run>”cmd”>Enter), type “easy_install simplejson”.
  4. Download the GeoCode plugin by Alessandro Pasotti via QGIS>Plugins>Fetch Python Plugins. You may have to load additional repositories to see it.
  5. Install geopy. In the command line (like step 3), type “easy_install geopy”.
  6. Specify your project’s projection in File>Project Properties.
  7. Get a Google Maps API key and tell the GeoCode plugin about it (QGIS>Plugins>GeoCode>Settings). You will need a Google account. If you don’t have your own domain name, you can just enter “google.com” when it asks for your domain.
  8. Geocode your first address by clicking on Plugins>GeoCode>Geocode. Type the full address (e.g. 121 N LaSalle Street, Chicago, IL for City Hall).
  9. The geocoded address will then appear in your Layers list as its own shapefile. All addresses geocoded (or reverse geocoded) in this project will appear in the same layer (therefore same attribute table).

Once you install all the components, you’ll never have to do this again. Geocoding will be available each and every time you use QGIS in the future on that workstation.

Tips

  • When you’re done geocoding,  save your results as a shapefile (right click the layer and click “Save as shapefile”). Twice I’ve lost my results after saving the project and quitting QGIS. When I reopened the project, the results layer was still listed, but contained no data.
  • Add a “name” column to the GeoCoding Plugin Results layer’s attribute table (toggle editing first). You can then type in the name of the building or destination at the address you geocoded. Edit the layer’s properties to have that name appear as a label for the point.

A map I made with QGIS showing three geocoded points of interest in Chicago. Data from City of Chicago’s GIS team.

 

Trying out new GIS software

I want to draw 50 and 120 feet buffers around the points of store entrances to show where bike parking should and shouldn’t be installed. I want to follow this example:

walgreens with bike parking buffers

Aerial photo of a Tucson, Arizona, Walgreens showing the location of existing bike parking and two buffers (50 and 120 feet) where proposed city rules would allow bike parking. I advocate for ratifying the 50 feet rule, which I’ve discussed on this blog and elsewhere many times.

I want to do this easily and accurately, so I will use GIS software to create a “buffer.” I use QGIS occasionally, but I want to try out other Mac-friendly applications. I’m getting my orthoimagery (geometrically corrected aerial photography) from the United States Geological Survey (USGS) using a web protocol called Web Map Server. I’m trying:

  • Cartographica, $495, with free trial license.
  • uDig, completely free software. UPDATE: I have had NO success getting any data to load from a WMS connection into uDig. I would like to understand why. Cartographica can obtain some of the WMS-stored data I want, although it messes up often.

I’m having success with neither – both are having issues downloading or maintaining a connection to the USGS orthoimagery. In one case, Cartographica trims the Bing Maps imagery to match the extent of my other objects (the buffer). In another case, it won’t even download the USGS imagery (and gives no indication that anything is happening). uDig hasn’t been able to download anything so far – I hope it’s asking for the current extent, instead of all data because it’s taking a looong time to do anything (so long that I just quit in the  middle of it).

This screenshot shows how to add new WMS connections to Cartographica.

UPDATE: I did it! I successfully used Cartographica (and the integrated Bing Maps) to create this drawing that shows the current (abysmal) bike parking at a Chicago Home Depot outside the 50 feet line.

Bike parking distance being put to test in Tucson

Work is underway to implement strict (but appropriate) rules about where Tucson, Arizona, businesses must install bike racks. This news comes from Tucson Vélo. It first came to my attention in May when I was creating and expanding my definition of Bike Parking Phenomenon A, which I now call the “50 feet rule.”

3 of4 bikes are parked on hand rails within 20 feet of this Seattle Whole Foods entrance while one bike is parked more than 50 feet away at the City-owned bike rack.

I left this comment on yesterday’s article from Tucson Vélo:

“Distance is more key to bike parking usage than the quality of bike parking fixture. Bicyclists prefer to use an easily removable sign pole that is closer to final destination than lock to a permanent bike rack further away.”

Some businesses there are complaining that devoting room in front of their business to bike parking removes space available for selling goods. I encourage everyone to support rules requiring bike parking within 50 feet. If installed further away, it simply will go unused.

I’ve written about distance parking many times:

After new bike racks were installed within 10 feet of the Logan Square Chicago Transit Authority entrance, no one parks at the original spots. See how the foot makes a difference?

Departing under the best conditions

I was reading a brochure and timetable (yes, we still call them that) about the TGV Lyria high-speed train service from Paris to cities in Switzerland. Someone left it on a counter at work. It’s in French, and I can read about half of it.

The timetable asked that travelers board the train at least two minutes before the departure, “pour assurer les départs TGV Lyria dans les meilleures conditions” (to ensure the train departs in the best conditions).

Two minutes? You only have to find your train 2 minutes before departure time?

Short story: Back in 1998 (I was 14), my mom and I were traveling from Paris to London on the Eurostar (travels under the English Channel). We’re walking down the ramp to the platform and one of the conductors sees us coming. He yells or motions for us to hurry up. We start jogging down the ramp and jump into the nearest car door.

About 45 seconds later, the train leaves.

A Eurostar train at Gard du Nord. Photo by Marcel Marchon.

More about being on-time:

  • 87.8% of TGV Lyria trains were arrived on time in June 2010.
  • 76.% of flights from 24 reporting airlines arrived on time in the same month. (U.S. DOT)

Heard of the Great American Streetcar Conspiracy?

General Motors and Standard Oil bought up the country’s streetcar systems, replaced the routes with buses, and thus began America’s automobile love affair and distaste for mass transit.

Streetcars are being now being rebuilt all across America, including in Portland, Oregon.

Heard that before?

Before you perpetuate it further, read this essay for some perspective on the story. Apparently, it’s a problem only liberals suffer from.

Even today it resonates with liberals – The Atlantic casually mentions it as the reason America abandoned mass transit, The Nation wrote a whole article about it a few years ago, Fast Food Nation discusses it, and in the last week I’ve seen two references to the theory in the planning blogosphere.

Now, this essay still isn’t the “end all, be all” chronology of transportation evolution history in the United States.

The new(ish) streetcar in Portland, Oregon.

Do you know of a book or article where the writer summarily presents concrete evidence? The essay does cite four academic sources, so it’s the best explanation of the so-called conspiracy I’ve ever read.

I’m bringing this up thanks to Edward Russell, who posted it, and my sister, who mentioned it to me after a friend told her about the story.