Opened 14 years ago
Closed 13 years ago
#745 closed defect (fixed)
ST_Split dimensions mismatch in lwcollection
Reported by: | robe | Owned by: | strk |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.0.0 |
Component: | postgis | Version: | master |
Keywords: | Cc: |
Description
Well I guess this isn't really supposed to work with 3D geometries anyway but — the error seems a bit suspicious.
SELECT ST_AsEWKT(ST_Split(ST_GeomFromEWKT('SRID=4326;POLYGON((-71.0771 42.3866 1,-71.0767 42.3872 1,-71.0767 42.3863 1,-71.0771 42.3866 1))'), ST_GeomFromEWKT('SRID=4326;LINESTRING(-10 40 1,-9 41 1)')));
With GSerialized Off (default case) this returns: SRID=4326;GEOMETRYCOLLECTION(POLYGON((-71.0771 42.3866 1,-71.0767 42.3872 1,-71.0767 42.3863 1,-71.0771 42.3866 1)));
In the GSerialized on case get:
ERROR: Dimensions mismatch in lwcollection
Is this a bug? or should it be smart enough to know that if you try to cut a polygon with a line that is no where near the polygon, the polygon does not get cut? Even if it isn't why is this a dimension mismatch.
It's a bug