-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
23 lines (17 loc) · 912 Bytes
/
justfile
File metadata and controls
23 lines (17 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# extent := "-124.733 45.543 -116.917 49.005" # WA
extent := "-114.052 36.998 -109.041 42.002" # UT
all: trails pois
trails:
ogr2ogr -f GeoJSON -if GeoJSON -spat_srs EPSG:4326 -spat {{extent}} \
Trails.geojson \
~/Downloads/NPS_-_Trails_-_Geographic_Coordinate_System.geojson
jq -c '.features[]' Trails.geojson > Trails.ndjson
python trails-to-osm.py < Trails.ndjson > Trails.osm.ndjson
jq -cs '{ type: "FeatureCollection", features: . }' Trails.osm.ndjson > Trails.osm.geojson
pois:
ogr2ogr -f GeoJSON -if GeoJSON -spat_srs EPSG:4326 -spat {{extent}} \
POIs.geojson \
~/Downloads/NPS_-_Points_of_Interest_\(POIs\)_-_Geographic_Coordinate_System.geojson
jq -c '.features[]' POIs.geojson > POIs.ndjson
python pois-to-osm.py < POIs.ndjson > POIs.osm.ndjson
jq -cs '{ type: "FeatureCollection", features: . }' POIs.osm.ndjson > POIs.osm.geojson