[postgis-devel] [PostGIS] #745: ST_Split dimensions mismatch in lwcollection

PostGIS trac at osgeo.org
Thu Dec 30 22:17:49 PST 2010


#745: ST_Split dimensions mismatch in lwcollection
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------
 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.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/745>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list