Page 73 of 170

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.

Traveling to Portland on July 18 through July 23

My favorite photo from my first (and only) trip to Portland, Oregon, in April 2010. 

Things I want to see or do:

  • New Sellwood non-car bridge
  • South Waterfront
  • Bike on a trail outside of town
  • Visit the ocean (this won’t happen as it will take too much of my short time there)
  • Buy a WorkCycles Fr8
  • Any other urban design, urban planning stuff that’s gone in since April 2010
  • Bike in Sunday Parkways
  • Take more photos of curbs

People I want to meet:

  • Jonathan Maus
  • Will Vanlue
  • Travis Wittwer
  • EthanPDX
  • Joel (at Splendid Cycles)
  • Metrofiets people
  • Mia Birk
  • Kelly C. and Jennifer D. at the university
  • Mayor Adams
  • Roger Geller
  • I want to interview some people about Sunday Parkways
  • Toni and Candace from Women and Women First bookstore

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.