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

Enabling reading GeoParquet #34

Open
sfkeller opened this issue Nov 14, 2024 · 0 comments
Open

Enabling reading GeoParquet #34

sfkeller opened this issue Nov 14, 2024 · 0 comments

Comments

@sfkeller
Copy link

sfkeller commented Nov 14, 2024

Add PostGIS type GEOMETRY to read GeoParquet (https://geoparquet.org/).

Reading GEOMETRY types POINT/LINESTRING/... would be first. Later GEOGRAPHY types could follow, finally a writer.

Note also the filter parameter in the URL with “…/theme=places/…”.

Here's a test case with the expected functionality adapted from https://docs.overturemaps.org/getting-data/duckdb/ :

SELECT
  id,
  names.primary as name,
  geometry                            -- the GEOMETRY type to be implemted 
FROM read_parquet('s3://overturemaps-us-west-2/release/2024-10-23.0/theme=places/type=place/*', filename=true, hive_partitioning=1)
WHERE 
  bbox.xmin BETWEEN -75 AND -73       -- Only use the bbox miny/miny values 
  AND bbox.ymin BETWEEN 40 AND 41     -- because they are point geometries.
  AND categories.primary = 'pizza_restaurant'
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