[postgis-tickets] [PostGIS] #2464: st_curvetoline maxError instead of segments/quarter paramter
PostGIS
trac at osgeo.org
Sun Feb 9 02:04:27 PST 2014
#2464: st_curvetoline maxError instead of segments/quarter paramter
-------------------------+--------------------------------------------------
Reporter: mjurce | Owner: pramsey
Type: enhancement | Status: new
Priority: low | Milestone: PostGIS 2.2.0
Component: postgis | Version: trunk
Keywords: curves |
-------------------------+--------------------------------------------------
Comment(by mjurce):
The maxError " maxDist(chord,arc) with n points segmentation could be
computed:
maxError=r*(1-cos( theta/(2*(n+1)) ) )
Solving for "maxError" should give:
nPoints = theta/(2*acos(1- maxError/r))
Someone could check if this is correct?
Then is easy to plug-in into arc segmentizer.
The angle increment will be given from this formula.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2464#comment:3>
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