[postgis-tickets] [PostGIS] #4956: ST_Boundary(colllection) -> ERROR: MultiLineString cannot contain MultiLineString element

PostGIS trac at osgeo.org
Thu Jul 29 02:45:38 PDT 2021


#4956: ST_Boundary(colllection) -> ERROR:  MultiLineString cannot contain
MultiLineString element
----------------------+---------------------------
  Reporter:  strk     |      Owner:  komzpa
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:  PostGIS 3.2.0
 Component:  postgis  |    Version:  main
Resolution:           |   Keywords:
----------------------+---------------------------
Changes (by strk):

 * owner:  pramsey => komzpa


Comment:

 The problem is that lwgeom_boundary assumes a GEOMETRYCOLLECTION will
 always only have elements having a LINESTRING as a boundary. This is not
 the case in the example above (first element has a MULTILINESTRING
 boundary) and is also not the case when elements of the collections are
 for example linestrings, example:
 {{{
 # select ST_Boundary('GEOMETRYCOLLECTION(LINESTRING(0 0, 10
 0),LINESTRING(20 0,21 0))'::geometry);
 ERROR:  MultiLineString cannot contain MultiPoint element
 }}}

 Darafei it was your change in
 [6316fa32e8e8d027d6cf09f683dabef024450403/git] unleashing this

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4956#comment:1>
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