Closed rogerkuou closed 1 year ago
It turned out that there is no easy way in geopandas
to perform file inspection without loading. An alternative can be fiona
, which is the backend of geopandas
:
import fiona
with fiona.open('data/brpgewaspercelen_definitief_2020.gpkg') as file:
print(file.bounds)
print(file.crs)
However to avoid the complexity of the course, we will not show this in the course, but only mention:
fiona
to inspect the file coverage and CRS without loading
In EP7, we start directly from a pre-defined bounding box with RD coordinates. It would be good to add some explanation on how we end up in those coordinates.
A possible solution:
gpkg
file without reading.