[postgis-tickets] [PostGIS] #2412: st_linetocurve('LINESTRING(0 0, 10 0)') -- ERROR: pta_desegmentize needs implementation for npoints < 4
PostGIS
trac at osgeo.org
Thu Aug 8 06:28:08 PDT 2013
#2412: st_linetocurve('LINESTRING(0 0, 10 0)') -- ERROR: pta_desegmentize needs
implementation for npoints < 4
---------------------+------------------------------------------------------
Reporter: strk | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.4
Component: postgis | Version: 1.5.X
Keywords: |
---------------------+------------------------------------------------------
It looks like you can't convert a 2-points line to a curve, but the
message is not friendly:
{{{
ERROR: pta_desegmentize needs implementation for npoints < 4
}}}
Should the code aim to return a COMPOUNDCURVE containing a single
linestring in these cases ? That's what would cleanly convert back to the
original input
Affected versions from 1.5.x to 2.2
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2412>
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