Opened 13 years ago

Closed 12 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.

Change History (2)

comment:1 by strk, 12 years ago

Owner: changed from pramsey to strk
Status: newassigned

It's a bug

comment:2 by strk, 12 years ago

Resolution: fixed
Status: assignedclosed

Fixed by r8847

Note: See TracTickets for help on using tickets.