[postgis-tickets] [PostGIS] #3702: ST_LineToCurve not working as documented

PostGIS trac at osgeo.org
Fri Feb 3 08:15:14 PST 2017


#3702: ST_LineToCurve not working as documented
----------------------+---------------------------
  Reporter:  mkuhn    |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:  PostGIS 2.3.3
 Component:  postgis  |    Version:  2.3.x
Resolution:           |   Keywords:
----------------------+---------------------------

Comment (by robe):

 No you are not misunderstanding.  I get the same answer you do on my 2.3

 I think something changed between now and when the example was done.  I
 suspect that example was done pre-2.0.

 As luck would have it, I have a PostGIS 1.5 install sitting around and
 confirmed the answer agrees with what's in the docs, but not my PostGIS
 2.3 answer.

 It doesn't quite make sense to me that a perfect circle can be
 approximated with such few points, so I'm guessing the approximation
 changed to be less forgiving and more accurate.

 For example this works:


 {{{
 SELECT
 ST_AsText(ST_LineToCurve(ST_Translate(ST_Force3D(ST_Boundary(ST_Buffer(ST_Point(1,3),
 10))),0,0,3)))


 }}}


 {{{
 CIRCULARSTRING Z (11 3 3,-9 2.99999999999997 3,11 3 3)
 }}}

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