San Francisco neighborhoods GeoJSON

2,146 views
Skip to first unread message

sudeep das

unread,
Mar 2, 2013, 3:16:34 PM3/2/13
to d3...@googlegroups.com
Hi,

Looking for a GeoJSON file delineating SF neighborhoods. Any clues where to look?

Cheers,

Sudeep 

Mike Bostock

unread,
Mar 2, 2013, 4:58:57 PM3/2/13
to d3...@googlegroups.com
I googled "sf neighborhoods shapefile" which took me to data.sfgov.org
where I found this promising result:

https://data.sfgov.org/Geography/Planning-Neighborhoods/qc6m-r4ih

Mike

sudeep das

unread,
Mar 2, 2013, 5:07:48 PM3/2/13
to d3...@googlegroups.com
Thanks Mike, 
 I will attempt to convert the shapefile to JSON. Meanwhile, I also found a geoJSON from the backend of this demo:

Sujay Vennam

unread,
Mar 2, 2013, 5:10:16 PM3/2/13
to d3...@googlegroups.com

sudeep das

unread,
Mar 2, 2013, 5:18:18 PM3/2/13
to d3...@googlegroups.com

Cool! Thanks! 
To convert these to GeoJSON, is GDAL my best friend?

Mike Bostock

unread,
Mar 2, 2013, 6:11:03 PM3/2/13
to d3...@googlegroups.com
> To convert these to GeoJSON, is GDAL my best friend?

You can convert them directly to TopoJSON without needing GDAL.

https://github.com/mbostock/topojson

There's also a tutorial here, but I wrote it before implementing
native Shapefile support in TopoJSON:

http://bost.ocks.org/mike/map/

Mike

Sudeep Das

unread,
Mar 2, 2013, 7:53:11 PM3/2/13
to d3...@googlegroups.com
Awesome! Thanks!

Sent from my iPhone
> --
> You received this message because you are subscribed to a topic in the Google Groups "d3-js" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/d3-js/-P0Hv4jggc4/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to d3-js+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages