You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT ST_AsText(postgis_typmod_type(i) ||' EMPTY') AS empty_geom,
ST_NumGeometries((postgis_typmod_type(i) ||' EMPTY')::geometry)
FROM generate_series(4, 63, 4) AS i;
An analogy that I can think of is that you can count one empty bottle, or zero bottles in an empty crate. But I'll probably document it differently than that.
GEOS' getNumGeometries is inconsistent with empty geometry types. Investigating via Shapely:
PostGIS's documentation for ST_NumGeometries does not document the behaviour with EMPTY geometries, but these counts are all zero:
The text was updated successfully, but these errors were encountered: