[postgis-tickets] [PostGIS] #4956: ST_Boundary(colllection) -> ERROR: MultiLineString cannot contain MultiLineString element
PostGIS
trac at osgeo.org
Wed Jul 28 08:41:50 PDT 2021
#4956: ST_Boundary(colllection) -> ERROR: MultiLineString cannot contain
MultiLineString element
---------------------+---------------------------
Reporter: strk | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 3.2.0
Component: postgis | Version: main
Keywords: |
---------------------+---------------------------
Confusing error from this query:
{{{
select ST_Boundary('GEOMETRYCOLLECTION(POLYGON((0 0,0 10,10 10,10 0,0
0),(2 2,4 2,4 4,2 4,2 2)),POLYGON((2 2,2 4,4 4,4 2,2 2)))'::geometry);
}}}
Note that if the first polygon doesn't have an hole the routine returns an
answer. Pretty confusing ...
This only happens in 3.2.0dev, as in the 3.1 branch we get a nice and
understandable message:
{{{ ERROR: GEOSBoundary: IllegalArgumentException: Operation not
supported by GeometryCollection }}}
Both installs are using GEOS-3.10.0dev
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4956>
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-tickets
mailing list