Betashapes for San Francisco neighborhoods

[Editor’s note: A first for me, read this post in Romanian/Ukrainian cyrillic. Thanks Maria!]

First results in using the betashapes script from Schuyler Erle and Melissa Santos. Still some kinks for me to work out relating understanding how the script deals with donut holes and scrubbing the list of Yahoo GeoPlanet neighborhood names in the input. For the US, can just use Census block polygons and avoid OSM copyright funk. Use GeoPDFs on the iPhone and other iOS devices to see yourself in the map, get Avenza’s PDF More images after the jump. Click on an image to see it larger.

More background: Betashapes are based on how people tag (and only if they also geotag) their Flickr photos. The script queries Flickr for photos for specified neighborhood tags (up to 2,500 sample size each ‘hood, these SF neighborhoods calculated from ~250,000 photo locations) and counts up what neighborhood tag is dominant in any city block and then aggregates them into neighborhoods. The neighborhood names and ids are from the Yahoo! GeoPlanet database that has a mix of real and fanciful (minority report) places. If you remove the ones you don’t agree with from the input, they will be ignored on the output. Lots to refine here…

View GeoPDF »
Download betashapes shapefile for SF »
Download SF geodata ingredients »
Download Y! GeoPlanet SF files »

(below) Betashapes using Flickr images and city street grid turned into polygon blocks.

(below) SF city planning districts in green, betashapes in red.

(below) SF city planning districts in green, realtor hoods in blue, betashapes in red.

(below) SF city planning districts in green.

(below) Realtor hoods in blue, beta shapes in red.

(below) Realtor hoods in green, planning districts in blue.

(below) Realtor hoods in blue.

Tags: , ,

2 Responses to “Betashapes for San Francisco neighborhoods”

  1. This is really awesome stuff. I did something quite similar to the third map as part of my master’s thesis project (, minus generating my own data set. Any thoughts on how to effectively display overlapping boundaries other than creating multiple maps?