New answers tagged

1 vote
Accepted

MbrIntersects returns all features in layer

There is indeed something wrong with MBRIntersects. It always seems to return -1. ST_EnvIntersects, which is an alias for MBRIntersects, does seem to work though. Test script: import geopandas as gpd ...
Pieter's user avatar
  • 1,465
0 votes

Exporting project to a GeoPackage

Put all the data into a single directory organized as you see fit. Save a copy of the QGIS file into that same directory. Ensure the data in your QGIS project map file paths to the data located in ...
GBG's user avatar
  • 9,604
0 votes

Saving GeoPackage with style in PyQGIS

This is adapted from @CaptainDang's plugin and allows for you to save each layer to the single geopackage (qgis v3.22): Usage example: #overwrite any existing geopackages as this is the first layer ...
LeasMaps's user avatar
  • 735
2 votes
Accepted

Why the buffer geometry column in the GeoDataFrame is in point form although it's actually in polygon form?

You have a typo in your read_file call. You use parameter layers="buffers" instead of layer="buffers". So: shopping_centre_buffers = geopandas.read_file( DATA_DIRECTORY / "...
Pieter's user avatar
  • 1,465
0 votes

GDAL loop through gpkg layers

As it was mentioned in a comment that python is also an option... this is how you can do it using the geofileops package import geofileops as gfo path = r"C:\Temp\lds-nz-building-outlines\nz-...
Pieter's user avatar
  • 1,465
0 votes

Can't query GeoPackage geometry via SQLite client

When connecting to a GeoPackage file, in addition to loading the mod_spatialite sqlite extension an additional initialisation step, EnableGpkgMode is needed as the geometry data and metadata is stored ...
Pieter's user avatar
  • 1,465

Top 50 recent answers are included