Skip to content

Instantly share code, notes, and snippets.

@aaronlidman
aaronlidman / gist:6100419
Created July 28, 2013 21:56
sample osmly ogr conversion
ogr2ogr -f "GeoJSON" -simplify 0.0001 -t_srs "EPSG:4326" -sql "SELECT NAME as name from parks" -progress parks.geojson parks.shp

UPDATE: The Vector Tiles are not being served at this time by Openstreetmap. Try later or a different provider (example) Services seem to have resumed

A simple test of extending the L.TileLayer to fetch geoJSON tiles from openstreetmap and render them with d3. This is probably not the most efficient way to do this, as we accept empty image tags (from the standard TileLayer) and use them as containers for the data/requests.

@aaronlidman
aaronlidman / parks.geojson
Created August 9, 2013 20:32
testing gist maps, 8.7mb feature collection
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aaronlidman
aaronlidman / multipolygons.geojson
Created August 16, 2013 17:30
osm2geo, small area of DC
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aaronlidman
aaronlidman / large.geojson
Created August 16, 2013 19:04
Mile Square Park
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aaronlidman
aaronlidman / uci.geojson
Created August 16, 2013 19:09
Some UCI
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aaronlidman
aaronlidman / problem.geojson
Last active December 21, 2015 04:49
There's something screwy with this way messing things up. http://www.openstreetmap.org/?way=135246599#map=17/34.45711/-118.39062 osm2geo now confirms only polygons go into multipolygons
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aaronlidman
aaronlidman / map.geojson
Created August 23, 2013 23:26
via:geojson.io
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.