[postgis-tickets] [PostGIS] #3099: ST_curveToLine bad conversion for some arcs
PostGIS
trac at osgeo.org
Mon Nov 23 07:04:38 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 tiiipponen):
After thinking a bit more I would like to clarify few comment rows in
code:
/* Using cartesian eguations from page
https://en.wikipedia.org/wiki/Circumscribed_circle */[[br]]
^^=^^>[[br]]
/* Using cartesian circumcenter eguations from page
https://en.wikipedia.org/wiki/Circumscribed_circle */[[br]]
/* 2 * |Cross product|, d<0 means clockwise and d>0 counterclockwise
sweeping angle */[[br]]
^^=^^>[[br]]
/* 2 * Cross product, d<0 means clockwise and d>0 counterclockwise
sweeping angle */[[br]]
/* Check colinearity, |Cross product| = 0 */[[br]]
^^=^^>[[br]]
/* Check colinearity, Cross product = 0 */[[br]]
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3099#comment:7>
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