This project demonstrates how to process and visualize GeoJSON data using Python. The input file used is open_adm_kommunegraenser_view.json
, which contains geographical boundaries.
The code performs the following steps:
- Loads the GeoJSON file using GeoPandas.
- Sets the active geometry column.
- Ensures the coordinate reference system (CRS) is set to EPSG:25832.
- Plots the geographical data.
- Plots the centroids of the geometries in red and saves the output as
polygon_centroids.png
.
The output of the code is a PNG file showing the geographical boundaries with centroids marked in red.