You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the class PARasterizer (module protected_areas):
When running for the bounding box of North-East Catalonia,
Bounding box coordinates in WGS84: 2.8354183199747673, 42.30491856806418, 3.2069789434116736, 42.5061345059027
the current code doesn't consider if the merged geopackage with protected areas contain multiple layers
Rasterizing the merged GeoPackage file...
/src/env/lib/python3.12/site-packages/pyogrio/geopandas.py:261: UserWarning: More than one layer found in 'merged_pa.gpkg': 'FRA_protected_areas' (default), 'ESP_protected_areas'. Specify layer parameter to avoid this warning.
result = read_func(
Columns: Index(['geometry'], dtype='object')
...
Error: 'year'
Possible solution: read layers by gdal.OpenEx and then create dictionary self.gdfs = {} to loop over in PARasterizer.reproject_pa_data
The text was updated successfully, but these errors were encountered:
In the class PARasterizer (module protected_areas):
When running for the bounding box of North-East Catalonia,
the current code doesn't consider if the merged geopackage with protected areas contain multiple layers
Possible solution: read layers by gdal.OpenEx and then create dictionary
self.gdfs = {}
to loop over in PARasterizer.reproject_pa_dataThe text was updated successfully, but these errors were encountered: