Skip to content

Instantly share code, notes, and snippets.

@ThomasG77
Last active March 10, 2022 13:36
Show Gist options
  • Save ThomasG77/3d97a1b32ffff84158a4f011208434f9 to your computer and use it in GitHub Desktop.
Save ThomasG77/3d97a1b32ffff84158a4f011208434f9 to your computer and use it in GitHub Desktop.
wget "https://macarte.ign.fr/carte/322ea69dab4c7e5afabc6ec7043b5994/acquisitionslidarhd"
cat acquisitionslidarhd | grep " symfony.data = "| sed 's# symfony.data = ##g' >| out.json
jq -c '.layers[2].features[] | {"type": "Feature", "geometry": {"type": .type, "coordinates": .coords}, "properties": .attributes}' out.json | jq --slurp '{"type": "FeatureCollection", "features": .}' >| out.geojson
ogr2ogr -f GeoJSON -s_srs "EPSG:3857" -t_srs "EPSG:4326" lidar_hd_overall.geojson out.geojson -lco RFC7946=YES
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment