[postgis-tickets] [PostGIS] #4871: TopoGeometry::geometry cast returns NULL for empty TopoGeometry objects

PostGIS trac at osgeo.org
Fri Mar 5 02:22:18 PST 2021


#4871: TopoGeometry::geometry cast returns NULL for empty TopoGeometry objects
----------------------+---------------------------
 Reporter:  strk      |      Owner:  strk
     Type:  defect    |     Status:  new
 Priority:  medium    |  Milestone:  PostGIS 2.5.6
Component:  topology  |    Version:  2.5.x
 Keywords:            |
----------------------+---------------------------
 Example:
 {{{
 nibio=# select ST_AsEWKT(toTopoGeom('SRID=4258;LINESTRING(0 0, 10 0)',
 'topo_rein_sysdata_rdr', 1, 0));
                st_asewkt
 ---------------------------------------
  SRID=4258;MULTILINESTRING((0 0,10 0))
 (1 row)

 nibio=# select ST_AsEWKT(toTopoGeom('SRID=4258;LINESTRING EMPTY',
 'topo_rein_sysdata_rdr', 1, 0));
        st_asewkt
 -----------------------
  MULTILINESTRING EMPTY
 (1 row)
 }}}

 Happens at least as back as 2.5.6 (but probably for longer)

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4871>
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