Page 65 of 171

How many miles of roads are in your ward?

Screenshot 1: Showing how some streets are not being counted. There should be a yellow section of road between the two existing yellow road sections. 

A friend recently asked me how many blocks of road are in his ward. He wanted to know so that he could measure how many blocks of streets would have an older style of street lighting after X number of blocks receive the new style of street lighting. For this project, I used two datasets from Chicago’s open data portal: street center lines and wards. The output data is not very accurate as there may be some overlap and some uncounted street segments; this is likely due to a shortcoming in my process. I will show you how to find the number of blocks per ward using QGIS (download Quantum GIS, a free program for all OSes).

Here’s how I did it

  1. Load in the two datasets. Wards and street center lines (zipped shapefiles). They are projected in EPSG:3435.
  2. Exclude several road classifications in the street center lines by querying only for "CLASS" > '1' AND "CLASS" < '5'. The data dictionary for the road classifications is at the end. We don’t want the river, sidewalks, expressways, and any ramps to be included in the blocks per ward analysis.
  3. Intersect. In QGIS, select Vector>Geoprocessing Tools>Intersect. The input vector layer is “Transportation” (the name of the street center lines dataset) and the intersect layer is “Wards”. Save the resulting shapefile as “streets intersect wards”. Click OK. This will take a while.
  4. Add the “streets intersect wards” shapefile to the table of contents.
  5. You’ll notice some of the issues with the resulting shapefile: missing street segments (see screenshot 1). What should QGIS do if a street is a ward boundary?
  6. Obtain street length information, part 1. Remove all the columns in the “streets intersect wards” shapefile that have something to do with geometry. These are now outdated and will confuse you when you add a geometry column generated by QGIS.
  7. Obtain street length information, part 2. With the “streets intersect wards” shapefile selected in the table of contents, select Vector>Geometry Tools>Export/Add geometry columns. Select “streets intersect wards” shapefile as your input layer, leave CRS as “Layer CRS” and save as new shapefile “streets intersect wards geom”.
  8. Add the “streets intersect wards geom” shapefile to the table of contents.
  9. You will see a new column at the end of the attribute table called LENGTH. Since the data is projected in EPSG:3435 (Illinois StatePlane NAD83 East Feet), the unit is feet.
  10. Simply export “streets intersect wards geom” to a CSV file and open the CSV file in a spreadsheet application. From there you can group the data by Ward number and add the street lengths together. (I thought it would be faster to do this in a database so I imported it into a localhost MySQL database and ran a simple query, SELECT wardNum, sum(`chistreets_classes234`.`LENGTH`) as sum FROM chistreets_classes234 WHERE ward > 0 group by wardNum. I then exported this to a spreadsheet to convert feet to miles.)

Because of the errors described in step 5, you shouldn’t use this analysis for any application where accuracy is important. There are road lengths missing in the output dataset (table with street lengths summed by ward) and I cannot tell if the inaccuracy is equally distributed.

[table id=7 /]

Wards 19 (south side) and 41 (Norwood Park, including O’Hare airport) have the highest portion of street length in the city.

Screenshot 2: Ward 41 is seen. 

Street data dictionary

Column is “CLASS”. The value is a string. This dataset lacks alleys. Adapted from the City’s data dictionary.

1. Expressway

2. Arterials (1 mile grid, no diagonals)

3. Collectors (includes diagonals)

4. Other streets (side streets, neighborhood streets)

5. Named alleys (mostly downtown, like Couch Place and Garland Place)

7. Tiered (lower level streets, including LaSalle, Michigan, Columbus, and Wacker)

9. Ramps (goes along with expressway)

E. Extent (not sure how to describe these; includes riverwalk and lake walk segments, and Navy Pier, also includes some streets, like Mies van der Rohe Way)

RIV. River

S. Sidewalk

99. Unclassified

Metra finally updates its marketing strategy

Photo of a new billboard by John Greenfield. 

My Streetsblog Chicago partner John Greenfield writes about Metra’s new push to get more riders: free tickets.

The transit agency will be giving away two free tickets to any destination in the system to 500 people per week for fourteen weeks – a total of 14,000 tickets, good for the next 90 days. The recipients, who must be 18 or over, will be randomly chosen from those who register at MetraRail.com/TestDrive.

While there doesn’t seem to be any method for preventing current Metra riders from scoring free tickets, the hope is that the lion’s share of the winners will be newbies. To promote the giveaway to people who currently commute by car, the agency is spending roughly $390,000 on marketing, including billboards visible from expressways and radio spots in English and Spanish following traffic reports and gas price updates, as well as Internet advertising. The billboards emphasize the financial, time-saving and relaxation benefits of making the switch.

It’s about time that Metra got serious with its marketing and used messages that actually sell the service. Focusing on the kind of marketing that actually convinces customers – of any product or service – is the right move. That focus? Our product costs less than the alternative.

Metra’s current marketing consists of boring-looking billboards on its tracks as they cross expressways with things like, “Fly to work”, “We’re on time, are you?”, and “Easy come, easy go” (what does that even mean?).

There was no call to action, and no information for drivers to respond to immediately (or when their call is stuck in bumper to bumper traffic).

An example billboard over the Kennedy Expressway, south of Grand Avenue. This sign says “Easy come, easy go”. 

Get out of Googleville: my presentation on web mapping

Alternate headlines: Google Maps versus OpenStreetMap; why OpenStreetMap is better than Google Maps

I presented to the Chicago GIS Network Meetup group on February 5,2013, about alternatives to Google when it comes to mapping on the web. I created the presentation and outline a couple hours before giving it and came up with this slideshow with three frames.

Googleville 1 of 3

Google Maps and its data is a one-way street (or many one-way streets). Google will take data but won’t give it back.

Googleville 2 of 3

Google Maps has all of these features, but they’re easier to manipulate when you use an alternative. Alternatives like: MapBox, TileMill, OpenLayers, OpenStreetMap (made easy with JOSM), GeoCommons – I’m sure there are plenty more.

Googleville 3 of 3

OpenStreetMap is the Wikipedia of online mapping and geographic data. Considering switching to OSM.

Survivor bias: Who walks away from automobile crashes?

This photo of a damaged car has little to do with this post. 

Then my friend Alex E. asked, “Is there a reason why?”

I can’t leave such a question hanging. I thought I read that somewhere, and it was probably in Tom Vanderbilt’s book, Traffic. What I found in there mostly referred to trucks (the semi-trailer type) because of their mass and how people not driving trucks behave around them on the road. The second part explained the statistics around who lives and dies in crashes involving a drunk driver.

Knowing that, and knowing the story I tweeted a link to, you’ll see that the event didn’t involve a truck and my relating them was perhaps unsuitable. It did involve drunk driving, but I may have misread the book text.

Here’s what Traffic says about trucks

“When trucks and cars collide, nearly nine of ten times it’s the truck driver who walks away alive.” Vanderbilt discusses how that is (page 247).

…we all likely have proof of the dangerous nature of trucks. We have seen cars crumpled on the roadside. We’ve heard news stories of truck drivers, wired on stimulants, forced to drive the deregulated trucking industry’s increasingly long shifts. We can easily recall being tailgated or cut off by some crazy trucker.

Just one thing complicates this image of trucks as the biggest hazard on the road today: In most cases, when cars and trucks collide, the car bears the greater share of what are called “contributory factors”.

Really? Car drivers caused crashes with trucks and then die from it?

Instead of relying on drivers’ accounts, he [Daniel Blower at Michigan Transport Research Institute] looked at “unmistakable” physical evidence. “In certain crash types like head-ons, the vehicle that crosses the center much more likely contributed to the crash than the vehicle that didn’t cross the center line”.

After examining more than five thousand fatal truck-car crashes, Blower found that in 70 percent of cases, the driver of the car had the sole contributing responsibility in the crash.

Basically, the car drivers in a car-truck crash caused the crash and ended up being the ones dying.

…the reason trucks are dangerous seems to have more to do with the action sof car drivers combined with the physcial characteristics of trucks and less to do with the actions of truck drivers. “The caricature that we have that the highways are thronged with fatigued, drug-addled truck drivers is, I think, just wrong”, Blower said.

“In a light vehicle, you are correct to be afraid of them, but its not because the drivers are disproportionately aggressive or bad drivers”, Blower said. “It’s because of physics, truck design, the different performance characteristics. You can make a mistake around a Geo Metro and live to tell about it. You make that same mistake around a truck and you could easily be dead.”

What Traffic says about drunk driving

Of the 11,000 drunk-driving fatalities studied by economists Steven D. Levitt and Jack Porter, 72% were the crash-causing drunk driver or their passengers, and 28% were the other drivers (most of whom were not drunk themselves) (page 251).

Current madness of the week: investigating car crashes

Gravity should have prevented this car crash, as would not placing buildings near roadways. But we’ve figured out how to defy gravity. Photo by Katherine Hodges.

“Police closed the street to investigate”.

What a waste of time. The investigation will conclude the same way as any other, with one or more of the following contributing factors: exceeding the speed limit, alcohol, a deficiency in someone’s driving skills or knowledge, or some defect in the road (I’m excluding poor road design as it could almost always be better, designed in such a way to reduce the occurrence of poor quality driving).

The story: a person driving an SUV side swipes another SUV. The driver loses control and then hits the center concrete barrier. The SUV flips over and the driver dies. (Yes, this is in relation to an incident on I-294 in Glenview this weekend.)

We already know how to fix all of these issues.