Skip to main content
100%

Gist 8dafcac4cab52f5242b00c077430c08d

✓ Published0🌍 Public
TThomasG77
Last edited Jun 16, 2023
Created on Jun 16, 2023

This example demonstrates how to select cadastral parcels from the IGN Cadastre API based on a drawn polygon’s extent. It shows the process of converting a GeoJSON polygon into an encoded URL parameter, then sending a GET request via Bash with `jq` or Python with `urllib.parse` and `urllib.request`. The API returns parcel geometries, which are saved as a GeoJSON file. The code also warns against using overly complex or overly large geometries due to URL length limits and server load.

AI-generated description

Similar vizzes