Skip to content

Instantly share code, notes, and snippets.

@michaelcolenso
Last active August 29, 2015 14:07
Show Gist options
  • Save michaelcolenso/4150c2fc6a4557d95bfc to your computer and use it in GitHub Desktop.
Save michaelcolenso/4150c2fc6a4557d95bfc to your computer and use it in GitHub Desktop.
get ArcGIS data from a rest endpoint and convert to geojson for D3

How to get useful data from Arcgis

http://hub.qgis.org/wiki/17/Arcgis_rest

GDAL tools

http://www.gdal.org/ogr2ogr.html

Topojson encodes topology:

https://github.com/mbostock/topojson

This is the command I used to grab the data for TC

ogr2ogr -f GeoJSON -t_srs EPSG:4326 tcgeo.json "http://arcserver.tclp.org/arcgis/rest/services/City/CityParcelViewer/MapServer/0/query?where=objectid+%3D+objectid&outfields=*&f=json" OGRGeoJSON

This is the tutorial that got me started with D3 orignally -

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

also this:

http://bl.ocks.org/mbostock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment