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

GPKG: Not implemented Error: Multiple geometry fields not supported yet #366

Closed
marklit opened this issue Jul 18, 2024 · 2 comments
Closed

Comments

@marklit
Copy link

marklit commented Jul 18, 2024

Any change support for multiple geom fields in GPKG could get added? Natural Earth has multiple bounding boxes and centroids for populated places around the world.

COPY (
    SELECT NAME_EN,
           ADM0CAP::BOOL AS is_capital,
           MEGACITY::BOOL as is_mega_city,
           ST_Extent(('LINESTRING(' ||
                                  MAX_BBXMIN || ' ' ||
                                  MAX_BBYMIN || ', ' ||
                                  MAX_BBXMAX || ' ' ||
                                  MAX_BBYMAX || ')')::GEOMETRY)::GEOMETRY as bbox_max,
           ST_CENTROID(ST_POINT(LONGITUDE, LATITUDE)) as centroid
    FROM st_read('ne_10m_populated_places.shx')
) TO 'bboxes.gpkg'
    WITH (FORMAT GDAL,
          DRIVER 'GPKG',
          LAYER_CREATION_OPTIONS 'WRITE_BBOX=YES');

Not implemented Error: Multiple geometry fields not supported yet

@rouault
Copy link

rouault commented Jul 19, 2024

Any change support for multiple geom fields in GPKG could get added?

no, that can't be implemented for GeoPackage. The GeoPackage format doesn't support multiple geometry fields per layer.

@marklit
Copy link
Author

marklit commented Jul 20, 2024

Ah, okay. Understood.

@marklit marklit closed this as completed Jul 20, 2024
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

2 participants