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

PostGIS trac at osgeo.org
Fri Feb 3 01:27:48 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
 Keywords:           |
---------------------+---------------------------
 The examples from the postgis documentation and the result of my local
 installation do not behave the same way.

 Documentation says:


 {{{
 -- 3D example
 SELECT ST_AsEWKT(ST_LineToCurve(ST_GeomFromEWKT('LINESTRING(1 2 3, 3 4 8,
 5 6 4, 7 8 4, 9 10 4)')));

                          st_asewkt
 ------------------------------------
  CIRCULARSTRING(1 2 3,5 6 4,9 10 4)
 }}}

 My local installation does:


 {{{
 -- 3D example
 SELECT ST_AsEWKT(ST_LineToCurve(ST_GeomFromEWKT('LINESTRING(1 2 3, 3 4 8,
 5 6 4, 7 8 4, 9 10 4)')));

                          st_asewkt
 ------------------------------------
 "LINESTRING(1 2 3,3 4 8,5 6 4,7 8 4,9 10 4)"
 }}}

 {{{
 SELECT postgis_version()

 "2.3 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"
 }}}

 Am I misunderstanding something?

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