Skip to main content
100%

IGN API elevation line

✓ Published0🌍 Public
TThomasG77
Last edited Jan 9, 2022
Created on Jan 9, 2022

This example shows elevation profiles extracted from a user-selected line feature in QGIS. It calls the IGN REST elevationLine API with sampled lon/lat coordinates, then builds a GeoJSON FeatureCollection of 3D points with elevation (z) and accuracy values. The script uses `urllib.request` to fetch JSON data and `json.dump` to write a temporary GeoJSON file, which QGIS then loads as a vector layer. Users subsequently convert to a projected CRS and apply the Profile tool plugin to render the elevation graph.

AI-generated description

Similar vizzes