[postgis-tickets] [PostGIS] #3099: ST_curveToLine bad conversion for some arcs

PostGIS trac at osgeo.org
Wed Nov 25 04:23:19 PST 2015


#3099: ST_curveToLine bad conversion for some arcs
--------------------------+----------------------------
  Reporter:  claudeunger  |      Owner:  pramsey
      Type:  defect       |     Status:  new
  Priority:  critical     |  Milestone:  PostGIS 2.1.9
 Component:  postgis      |    Version:  2.1.x
Resolution:               |   Keywords:  ST_curveToLine
--------------------------+----------------------------

Comment (by robe):

 tiipponen,

 Here is our FAQ on how to prepare tests - For lwgeom stuff, we'd need both
 a cunit test and a postgresql test.

 Cunit
 https://trac.osgeo.org/postgis/wiki/DevWikiCUnit

 PostgreSQL
 https://trac.osgeo.org/postgis/wiki/DevWikiPGRegress

 Ideally we would want the smallest example you can think of that would
 reproduce the issue  (maybe on this ticket, but them side by side so they
 can compare), so perhaps the example above, but maybe instead of the
 default number of points to represent an arc, you passed in a smaller
 number.

 Using this form of the function

 {{{
  ST_CurveToLine(geometry curveGeom, integer segments_per_qtr_circle);
 }}}

 I should add, we normally don't ask this of people reporting bugs or
 giving patches for fixes, so take it as a BIG compliment, that we think
 you are capable of doing this :).

 Normally I'd just do this myself, but I don't work much in curve area and
 I think pramsey who works on this part is on vacation.

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