Category: Transit

Converting shapefiles to GeoJSON, and other format conversions

To develop the Chicago Bike Map app, I had a problem I thought would be simple to solve: load train lines into a Leaflet-powered map. I had the train lines stored as a polyline shapefile but Leaflet can only read the GeoJSON format or a string of geographic coordinates representing lines.

I eventually found a solution (I can’t remember how) and I need to share it with you. The converter can do more than ESRI shapefiles to GeoJSON. It can reproject the data in the conversion. It can convert from several formats to several other formats.

The site is called MyGeodata Converter. You upload a ZIP file of geographic files – .shp and its companion files (.prj, .dbf, .shx), .kml, and .gpx. Let’s take the Chicago Transit Authority train lines shapefile straight from the City of Chicago’s open data portal. It downloads as a zipped collection of a shapefile and its buddies and we can take this file straight to the Converter and upload it. The Converter will unzip it and read the data; it will even identify the projection system (for Chicago-based geographic data, its common to use NAD83 Illinois StatePlane East FIPS 1201 Feet (SRID 102671, the same as SRID 3435).

The Converter will convert to one of the following formats, with same or new projection; accepts SQL statements to extract a subset of data:

  • ESRI shapefile
  • GML
  • KML, KMZ
  • GeoJSON
  • Microstation DGN
  • MapInfo File
  • GPX
  • CSV

WorkCycles Fr8 fits on the CTA’s bus-bike rack!

If you ride a bike more than you use other transportation modes, and you visit online forums, then you probably know that the correct number of bikes is n+1. I got a new bike this year, but it was partly to replace the cargo carrying capabilities I lacked after selling my Yuba Mundo in the spring.

Two weekends ago I passed by the Chicago Transit Authority headquarters to test if my WorkCycles Fr8 could fit in the Sportworks VeloPorter 2 bus-bike rack the CTA uses on most buses (it’ll eventually replace the red ones). I don’t know if Pace buses have the same model.

It fits! (I feel like saying “It blends!”)

I already knew that the WorkCycles Transportfiets would fit, having made a video of it last year. But they seemed to be of different dimensions (they probably aren’t) and I wanted to check ahead of time lest I embarrass myself and delay a bus if I tested it in the field.

Actually, I wasn’t worried that the Fr8 wouldn’t fit, I was worried that it wouldn’t fit securely under the spring-tensioned arm with the yellow grip. I have a burly front rack and metal fenders that wouldn’t be able to budge. See how that worked out for me in the photo below. Additionally, my bike weighs 50 pounds unloaded (and without the red basket) – the Sportworks specifications note that each bike tray holds 55 pounds. Phew!

Last weekend I took the Fr8 on its first ever train journey, from the Clinton Pink/Green Line station to the California Pink Line station. The Pink Line uses the 5000-series cars, which are brand new from Bombardier’s factory in New York. They have the distinction of providing two wheelchair-accessible spaces in every car instead of one. This means there are two fewer “modesty panels” in the vestibule. It offers more room to position and park your bike – it works out great; see photo below. It still doesn’t provide enough room for a passenger to bring a bike aboard, stay put, and let other passengers in and out of the door. Passengers with bikes will still need to pay attention to the announcements to know which door will open at the next station and move their bike accordingly.

Looking for a WorkCycles of your own? You can contact them directly in Amsterdam. Shipping is €200, which is a really good deal now. You can also contact J.C. Lind Bike Co. who will become a dealer soon.

Some reasons why the CTA doesn’t make its own mobile apps

Where’s the train?

“Twitter updated their app and now it sucks”. (Here’s some evidence.)

Have you heard that before? Thankfully there are tens – perhaps hundreds – more options to post to and read Twitter on your appy device.

The Chicago Transit Authority provides 1.7 million rides per day. A lot of passengers like to know where the trains and buses are. And it’s possible to know with many tools like Bus Tracker and Train Tracker, both of which are available through APIs, SMS, and websites.

Some people (eh, I can’t exactly point out who right now) have noted (complained?) that the CTA doesn’t make its own app for smartphones and tablets. I’m glad they don’t!

Here are more reasons why the CTA doesn’t make its own mobile apps:

  1. It would be racist of the CTA. (Pretty much everything the CTA does is racist according to someone but making an app would only be useful to those with compatible devices, so it’s probably more accurate to say income discrimination.)
  2. Bus service is getting cut but they’re spending money on making apps.
  3. There are 4 platforms to write apps for (at least 4 – not sure if any CTA passengers would demand Symbian or webOS).

The best reason?

Developers can do it better. So the CTA gives them the tools.

Skateboarding on State Street with his son

This is a somewhat efficient mode of transport. I believe the operator would become exhausted faster when carrying an additional person on a wheeled device that probably has a lot of friction. Anyway, it’s cool to see a family having fun, and to see that moving two people about doesn’t require much space.