Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for bbox filtering when reading generated parquet files #40

Open
songololo opened this issue Jul 27, 2024 · 1 comment
Open

Comments

@songololo
Copy link
Contributor

songololo commented Jul 27, 2024

When opening an overturemaps-py generated geoparquet file from geopandas it isn't possible to filter by bounding box:

For example, this:

gpd.read_parquet(str(input_path.resolve()), bbox=bounds_buff.bounds)

Throws this:

ValueError: Specifying 'bbox' not supported for this Parquet file (it should either have a bbox covering column or use 'point' encoding).

It would be extremely useful if generated geoparquet files supported this functionality to assist with targeted gpd.read_parquet reads for a given bbox.

@songololo songololo changed the title Add support for bbox filtering Add support for bbox filtering when reading generated parquet files Jul 27, 2024
@songololo
Copy link
Contributor Author

Pull request proposed for fixing this behaviour: #41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant