Category: Transportation

How to split a bike lane in two and copy features with QGIS

A screenshot of the splash image seen on users with iPad retina displays in landscape mode. 

To make the Chicago Offline Bike Map, I need bikeways data. I got this from the City of Chicago’s data portal, in GIS shapefile format. It has a good attribute table listing the name of the street the bikeway is on and the bikeway’s class (see below). After several bike lanes had been installed, I asked the City’s data portal operators for an updated shapefile. I got it a month later and found that it wasn’t up-to-date. I probably could have received a shapefile with the current bikeway installations marked, but I didn’t have time to wait: every day delayed was one more day I couldn’t promote my app; I make 70 cents per sale.

Since the bikeway lines were already there, I could simply reclassify the sections that had been changed to an upgraded form of bikeway (for example, Wabash Avenue went from a door zone-style bike lane to a buffered bike lane in 2011). I tried to do this but ran into trouble when the line segment was longer than the bikeway segment that needed to be reclassified (for example, Elston Avenue has varying classifications from Milwaukee Avenue to North Avenue that didn’t match the line segments for that street). I had to divide the bikeway into shorter segments and reclassify them individually.

Enter the Split Features tool. QGIS is short on documentation and I had trouble using this feature. I eventually found the trick after a search that took more time than I expected. Here’s how to cut a line:

  1. Select the line using one of the selection tools. I prefer the default one, Select Features, where you have to click on the feature one-by-one. (It’s not required that you select the line, but doing so will ensure you only cut the selected line. If you don’t select the line, you can cut many lines in one go.)
  2. Toggle editing on the layer that contains the line you want to cut.
  3. Click Edit>Split Features to activate that tool, or find its icon in one the toolbars (which may or may not be shown).
  4. Click once near where you want to split the line.
  5. Move the cursor across the line you want to split, in the desired split location.
  6. When the red line indicating your split is where you desire, press the right-click mouse button.

Your line segment has now been split. A new entry has been added to the attribute table. There are now two entries with duplicate attributes representing that together make up the original line segment, before you split it.

This screenshot shows a red line across a road. The red line indicates where the road will be split. Press the right-click mouse button to tell QGIS to “split now”.

After splitting, open the attribute table to see that you now have two features with identical attributes. 

Copying features in QGIS

A second issue I had when creating new bikeways data was when a bikeway didn’t exist and I couldn’t reclassify it. This was the case on Franklin Boulevard: no bikeway had ever been installed there. I solved this problem by copying the relevant street segments from the Transportation (roads) shapefile and pasted them into the bikeways shapefile. New entries were created in the attribute table but with blank attributes. It was simple to fill in the street name, class, and extents.

Chicago bikeways GIS description

Bikeway classes (TYPE in the dataset) in the City of Chicago data portal are:

  1. Existing bike lane
  2. Existing marked shared lane
  3. Proposed on-street bikeway
  4. Recommended bike route
  5. Existing trail
  6. Proposed off-street trail
  7. Access path (to existing trail)
  8. Existing cycle track (also known as protected bike lane)
  9. Existing buffered bike lane

It remains to be seen if the City will identify the “enhanced marked shared lane” on Wells Street between Wacker Drive and Van Buren street differently than “existing marked shared lane” in the data.

I found the Milwaukee Avenue peloton this morning

You can spot at least 10 people bicycling southbound on Milwaukee Avenue through Bucktown. 

I work from home and don’t commute downtown like I believe a majority of cycle commuters do. I was bicycling towards the Wicker Park-Bucktown Chamber of Commerce office for an 8:30 AM meeting of the Special Service Area’s transportation committee. We talked about bike racks, street furniture, and the progress of Open Streets. We partnered with Active Transportation Alliance to put that on, September 16, a Sunday and the week after Open Streets on State Street.

My Chicago Card Plus tells me how often I use the CTA

In this interview with Chicago Transit Authority president Forrest Claypool, I admitted to him and everyone else in the room (three bloggers and three CTA staff) that I rarely ride the CTA. The purpose of my admission was to explain how I gathered up so many questions. A lot of them come from friends and Grid Chicago readers. I always use my Chicago Card Plus to pay for fares because it’s extremely convenient: I never have to worry about having the correct fare and it can be replaced for a nominal $5 fee, protecting your money (the Chicago Card doesn’t have the same benefit because it can’t be registered). Anyway, it also tracks you and you can look up your history. I looked at it to understand just how rarely I use the CTA.

The Chicago Card Plus website shows your data in two ways: the last 5 transactions, and the last 90 days. It turns out that the last 5 transactions were beyond the 90 day period.

  • June 29, train (Blue Line)
  • May 22, bus (56/Milwaukee)
  • March 31, bus (I don’t remember which, but probably the Belmont bus with my mom)
  • March 31, bus

The fifth transaction was loading the card with more money. I think there was one other bus use on March 31, because the most recent two showed as transfer transactions. So I’ve added one more to the list.

  • March 31, bus

Five uses in 98 days, or 1 ride per 19.6 days.

The seventh day wasn’t a day for rest, it was a day to sell bicycles

You won’t find this chopper bike at any shop. Photo by Seth Anderson. 

A friend of mine works in a local bike shop (read: not a chain store, not a department store) so I get to hear stories about the kinds of bikes people bring in for repair, and when he sells someone a brand new, or new used bike. It’s cool to hear about people getting on bikes again, or replacing their own in decent condition with a new one that runs smoother and perhaps a little faster.

I sent my friend this text message today:

And on Day Seven, God created the local bike shop and said, “Get thine brothers and sisters on bicycles”.

I later added that it wasn’t God who created “Mart bikes” (the bikes sold at Target, Walmart, and other department stores with names like Magna and Roadmaster). Satan created these hunks of junk. Their main attraction is their $89 price with 1 penny shipping. But to make a bike that cheap, every corner has been cut. It will rust faster, break down faster, become disabled faster. Unfortunately, this is not intuitive or well-known to potential buyers of these machines.

And as my bike shop friend tells me, they usually cannot be fixed. They use proprietary parts, or will cost so much to fix, the person could get a used bike from the shop!

Other shortcomings of “Mart bikes”: no one is at the store to help find one the right size, or fit the brake levers, seat post height, or saddle angle to your body. Bikes are misassembled. My friend told me that a customer came in with a brand new “Mart bike” and asked the shop to make sure it was assembled correctly.

If you’re in Logan Square, I know some great bike shops: The Bike Lane (2130 N Milwaukee) and Boulevard Bikes (2535 N Kedzie).

N.B. I’d prefer that department stores don’t sell bicycles. I’ve thought of a few ways to change situation and ensure people ride quality bicycles that they enjoy. Riding a bicycle that later breaks down discourages some riders from correcting the issue, thus stopping them from riding a bike again. One of those ways is to hire a local bike shop to staff the bike department in the store on weekends (and sales would only occur on weekends). The staff would find the right bike for the buyer, and fit the bike to the buyer. Another idea is to ban certain kinds of stores from selling bicycles unless they meet certain requirements, like bikes were assembled by a certified bike mechanic.

Brief history of suburbs and sprawl, according to Taras Grescoe’s “Straphanger”

The Metra station in Riverside, Illinois, a version 1.0 streetcar suburb designed by Frederick Law Olmsted and Calvert Vaux. 

I’m reading another book a publisher sent to me. It seems pretty biased, and it’s biased in the direction I already feel, so it’s really easy reading. But it seems that people like me are its only audience and that it assumes I’m already pro-cities, anti-suburbs and maybe even anti-car. Definitely not a book that’s going to espouse the benefits of transit to those who don’t use it, don’t want to use it, or are on the fence for either situation.

If I could get my father or brother to read this book, that would be an accomplishment just short of a miracle.

The book is Straphanger: Saving our cities and ourselves from the automobile, by Taras Grescoe. I really like the section I just finished reading, a “condensed history of sprawl”. I had recently “argued” with my father about the development of the subdivision he lives in, east of Phoenix. He posited that suburbs were the result of consumer desires. Grescoe writes to the contrary. Here we go:

The origin of the Anglo-American suburb has been traced to Clapham, five miles south of London, where, in the 1790s, Evangelical Christians eager to remove their families from the evils of the city began living in what had formerly been their weekend villas, and commuting to the City by private carriage. In the United States, [author Kenneth] Jackson dates the beginning of the process to 1815, when regular steam ferry service to Manhattan made Brooklyn Heights the nation’s first true commuter suburb. (page 89)

American suburb version 1.0

  • When: 1853 onward
  • What it was: picturesque, full of green space, near central cities, attached by rail line
  • Who lived there: As mortgages didn’t exist, only those who could afford to buy a home outright
  • Examples: Llewellyn Park, NJ; Riverside, IL.
  • Note: Ebenezer Howard’s “Garden City” design is related.

American suburb version 2.0

  • When: Post World War II
  • What it was: cheap, small housing on vast land tracts; pre-assembled homes
  • Who lived there: Families with soldiers that expanded quickly so new homes were needed fast.
  • Examples: Levittown, Long Island; Lakewood, Los Angeles.
  • Note: “The prevailing myth”, writes Kenneth Jackson, “is that the postwar suburbs blossomed because of the preference of consumers who made free choices in an open environment. Actually, most postwar families were not free to choose among several residential alternatives. Because of public policies favoring the suburbs, only one possibility was economically feasible”.

American suburb version 3.0

  • When: Late 1980s, 1990s to now
  • What it was: Found near office parks, also known as “edge cities”, “common interest communities” (gated and homeowners associations)
  • Who lived there: Single races (self-segregating), people who lean conservative
  • Examples: Silicon Valley, Nevada, Florida
  • Note: Under the George W. Bush administration, Fannie Mae and Freddie Mac offered easy credit and homeownership rate rose to 69% by 2004. “(By 2012, it is expected to drop to 62%, the lowest level since 1960.)”

American suburb version 4.0

  • When: 2008, easy credit crisis, underwater mortgages
  • What it is: Least glamorous, the clichéd image of the inner city has moved to the suburbs. Arizona has highest rate of property crime. Nevada and Florida, the most suburbanized states, have highest rates of violent crime (Florida also has highest rate of pedestrian and bicycle fatalities).
  • Who lives there: A diverse group of people.
  • Examples: See “What it is”
  • Note: “Humans are social animals. I [Kenneth Jackson] think the biggest fake ever perpetrated is that children like, and need, big yards. What children like are other children. I think we move children to the suburbs to control the children, not to respond to something the children want. In the city, the kids might see somebody urinate in public, but they’re much more at risk in the suburbs, where they tend to die in cars.”

What are those public policies as described in American suburb version 2.0?

The federal government had carrots and sticks. Carrots were subsidies for homeownership (could be deducted from income taxes) and no down payment required for returning soldiers. Sticks included redlining (racial segregation), propagated by the Federal Housing Administration and banks. Zoning was another stick, which dictated what could go where.

Another carrot was the federally-funded highway system, the “greatest public subside to private real estate in the history of the world”.