-
Notifications
You must be signed in to change notification settings - Fork 70
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
Clarify use of "GEOMETRY" for unknown or multiple geometry types #525
Comments
Yet, in the context of vector tiles in particular (whether encoded as GeoJSON or MVT), where lines or polygons can be clipped out or split in two, it would be highly desirable to have a type allowing for both the single and multiple flavors of the same basic geometry type (a way to allow e.g. only MultiLineString and LineString). |
While it would be useful, I don't see how we can get there without breaking things. Just use GEOMETRY for these. |
@jyutzler Well I do encourage clarifying the text as you suggest above. Just meant to highlight why people might be doing this, and still hoping something can be done in the context of the vector tiles extension :) |
Jerome - Just wondering. If a large meandering polygon is clipped in a tiled data store such that multiple pieces of that big polygon now exist in the tile I still do not see the need for using "multipolygon" as a geometry type. Reassembling the pieces from one or more tiles into the original polygon is an implementation issue and I do not see how using multipolygon helps. Are you thinking that the constituent pieces of the large polygon that is clipped into smaller pieces should be organized in the GeoPackage so that they are all "next" to each other storage-wise and hence should be labeled as multipolygon? Thanks |
@cnreediii The tiled data store use case (at least as implemented in the Vector Tiles Extensions) is different from the main geometry table case discussed in this issue. If considering a single tile, e.g. encoded as GeoJSON, if multiple polygons are part of the same feature, with the same id and properties, they should be in the same MultiPolygon. In the core untiled GeoPackage vector table, a feature only has a single geometry piece. The earlier suggestion I made in the context of the vector tile extension was to introduce the concept of single+multi LINESTRING allowing both LineString and MultiLineString (for the vector tile extension only, where that would not break existing implementations, and because it is in the vector tiles nature to have a mix of single/multi geometry). |
See 888094c. |
We are occasionally seeing GeoPackages that have, for example, both polygon and multipolygon geometries in a table registered in
gpkg_geometry_columns
as POLYGON. According to Requirement 31 this is not allowed and GEOMETRY must be used, but we can be more clear about this.The text was updated successfully, but these errors were encountered: