[postgis-users] ST_Split fails on a quite simple geometry

Pierre Racine Pierre.Racine at sbf.ulaval.ca
Wed Aug 28 14:50:21 PDT 2013


Hi,

This query should return the geometry splitted in two but it returns only one of the two sides.

SELECT ST_Split(ST_GeomFromEWKT('POLYGON((252049.803755834 5230978.87794769,
                                          252049.803755834 5230977.67794767,
                                          252050.003755837 5230977.67794767,
                                          252050.003755837 5230978.27794768,
                                          252050.20375584  5230978.27794768,
                                          252050.20375584  5230978.47794768,
                                          252050.003755837 5230978.47794768,
                                          252050.003755837 5230978.87794769,
                                          252049.803755834 5230978.87794769))'), 
                           ST_MakeLine(ST_MakePoint(252050.003755837,  5230978.87794769), 
                                                   ST_MakePoint(252049.803755834,  5230977.67794767))
                          ) geom

SELECT postgis_full_version()

"POSTGIS="2.1.0SVN r11202" GEOS="3.4.0dev-CAPI-1.8.0 r0" PROJ="Rel. 4.8.0, 6 March 2012" GDAL="GDAL 1.9.2, released 2012/10/08" LIBXML="2.7.8" LIBJSON="UNKNOWN" RASTER"

Bug? Or it works on earlier version?

Thanks,

Pierre


More information about the postgis-users mailing list