Ticket #745 (closed defect: fixed)

Opened 17 months ago

Last modified 4 months ago

ST_Split dimensions mismatch in lwcollection

Reported by: robe Owned by: strk
Priority: medium Milestone: PostGIS 2.0.0
Component: postgis Version: trunk
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

Changed 4 months ago by strk

  • owner changed from pramsey to strk
  • status changed from new to assigned

It's a bug

Changed 4 months ago by strk

  • status changed from assigned to closed
  • resolution set to fixed

Fixed by r8847

Note: See TracTickets for help on using tickets.