Skip to content

Instantly share code, notes, and snippets.

@pbogden
Last active November 26, 2015 00:58
Show Gist options
  • Save pbogden/4acab6619282f5401844 to your computer and use it in GitHub Desktop.
Save pbogden/4acab6619282f5401844 to your computer and use it in GitHub Desktop.
traffic
data
segments
segments.json

Converted point shapefile from MD to GeoJSON.

Adam's UMBC project -- Fall 2015

all: data.json segments.json segs.json
data.json: data/Statewide_TMS_Locations.shp
ogr2ogr -f geoJSON \
-t_srs EPSG:4326 \
$@ $^
segments.json: segments/Statewide_TMS_Segments.shp
ogr2ogr -f geoJSON \
-t_srs EPSG:4326 \
$@ $^
segs.json: segments.json
topojson -p -o $@ $^
clean:
rm data.json
rm segments.json
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

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