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

PostGIS trac at osgeo.org
Mon Apr 20 07:43:00 PDT 2015


#3099: ST_curveToLine bad conversion for some arcs
----------------------------+-----------------------------------------------
 Reporter:  claudeunger     |       Owner:  pramsey      
     Type:  defect          |      Status:  new          
 Priority:  critical        |   Milestone:  PostGIS 2.1.7
Component:  postgis         |     Version:  2.1.x        
 Keywords:  ST_curveToLine  |  
----------------------------+-----------------------------------------------
 this arc is badly converting :
 CIRCULARSTRING(2047538.600 7268770.435,2047538.598 7268770.435,2047538.596
 7268770.436)

  select
 ST_asText(ST_curveToLine(ST_geomFromText('CIRCULARSTRING(2047538.600
 7268770.435,2047538.598 7268770.435,2047538.596 7268770.436)')));

 results in :
 LINESTRING(2047538.6 7268770.435,
 2047538.70324625 7268770.45039807,
 2047538.80712369 7268770.46071155,
 2047538.91138205 7268770.46591557,
 2047539.01577019 7268770.46599761,
 2047539.12003661 7268770.46095747,
 2047539.22393013 7268770.45080729,
 2047539.32720045 7268770.43557153,
 2047539.4295988 7268770.41528688,
 2047539.53087849 7268770.39000221,
 2047539.63079552 7268770.35977844,
 2047539.72910919 7268770.32468839,
 2047539.82558264 7268770.28481657,
 2047539.91998348 7268770.24025906,
 2047540.01208426 7268770.19112319,
 2047540.10166313 7268770.13752733,
 2047540.18850427 7268770.07960061,
 2047540.27239848 7268770.01748256,
 2047540.35314364 7268769.95132285,
 2047540.43054524 7268769.88128085,
 2047540.50441681 7268769.80752531,
 2047540.57458039 7268769.7302339,
 2047540.64086694 7268769.64959283,
 2047540.70311677 7268769.56579636,
 2047540.76117993 7268769.47904638,
 2047540.81491652 7268769.38955187,
 2047540.8641971 7268769.29752843,
 2047540.90890295 7268769.20319775,
 2047540.94892635 7268769.10678709,
 2047540.9841709 7268769.0085287,
 2047541.01455168 7268768.9086593,
 2047541.03999551 7268768.80741948,
 2047541.06044109 7268768.70505314,
 2047541.07583917 7268768.60180689,
 2047541.08615264 7268768.49792945,
 2047541.09135667 7268768.39367109,
 2047541.09143871 7268768.28928295,
 2047541.08639857 7268768.18501653,
 2047541.07624839 7268768.08112302,
 2047541.06101262 7268767.97785269,
 2047541.04072797 7268767.87545434,
 2047541.0154433 7268767.77417465,
 2047540.98521954 7268767.67425762,
 2047540.95012948 7268767.57594395,
 2047540.91025767 7268767.4794705,
 2047540.86570015 7268767.38506967,
 2047540.81656428 7268767.29296888,
 2047540.76296842 7268767.20339001,
 2047540.7050417 7268767.11654887,
 2047540.64292366 7268767.03265466,
 2047540.57676394 7268766.9519095,
 2047540.50672195 7268766.8745079,
 2047540.4329664 7268766.80063633,
 2047540.35567499 7268766.73047275,
 2047540.27503392 7268766.6641862,
 2047540.19123746 7268766.60193637,
 2047540.10448748 7268766.54387321,
 2047540.01499296 7268766.49013662,
 2047539.92296952 7268766.44085604,
 2047539.82863885 7268766.3961502,
 2047539.73222818 7268766.35612679,
 2047539.63396979 7268766.32088224,
 2047539.53410039 7268766.29050146,
 2047539.43286057 7268766.26505763,
 2047539.33049424 7268766.24461205,
 2047539.22724798 7268766.22921397,
 2047539.12337055 7268766.2189005,
 2047539.01911218 7268766.21369648,
 2047538.91472405 7268766.21361443,
 2047538.81045763 7268766.21865458,
 2047538.70656411 7268766.22880476,
 2047538.60329378 7268766.24404052,
 2047538.50089543 7268766.26432517,
 2047538.39961575 7268766.28960984,
 2047538.29969871 7268766.3198336,
 2047538.20138505 7268766.35492366,
 2047538.10491159 7268766.39479548,
 2047538.01051076 7268766.43935299,
 2047537.91840997 7268766.48848886,
 2047537.8288311 7268766.54208472,
 2047537.74198996 7268766.60001144,
 2047537.65809576 7268766.66212949,
 2047537.57735059 7268766.7282892,
 2047537.49994899 7268766.79833119,
 2047537.42607742 7268766.87208674,
 2047537.35591385 7268766.94937815,
 2047537.2896273 7268767.03001922,
 2047537.22737746 7268767.11381568,
 2047537.16931431 7268767.20056567,
 2047537.11557771 7268767.29006018,
 2047537.06629713 7268767.38208362,
 2047537.02159129 7268767.4764143,
 2047536.98156788 7268767.57282496,
 2047536.94632334 7268767.67108335,
 2047536.91594255 7268767.77095275,
 2047536.89049872 7268767.87219257,
 2047536.87005314 7268767.97455891,
 2047536.85465507 7268768.07780516,
 2047536.8443416 7268768.18168259,
 2047536.83913757 7268768.28594096,
 2047536.83905553 7268768.39032909,
 2047536.84409567 7268768.49459551,
 2047536.85424585 7268768.59848903,
 2047536.86948162 7268768.70175936,
 2047536.88976627 7268768.80415771,
 2047536.91505093 7268768.9054374,
 2047536.9452747 7268769.00535443,
 2047536.98036476 7268769.10366809,
 2047537.02023657 7268769.20014155,
 2047537.06479408 7268769.29454238,
 2047537.11392995 7268769.38664317,
 2047537.16752581 7268769.47622204,
 2047537.22545254 7268769.56306318,
 2047537.28757058 7268769.64695739,
 2047537.35373029 7268769.72770255,
 2047537.42377229 7268769.80510415,
 2047537.49752783 7268769.87897572,
 2047537.57481924 7268769.9491393,
 2047537.65546031 7268770.01542585,
 2047537.73925678 7268770.07767568,
 2047537.82600676 7268770.13573883,
 2047537.91550127 7268770.18947543,
 2047538.00752471 7268770.23875601,
 2047538.10185539 7268770.28346185,
 2047538.19826605 7268770.32348526,
 2047538.29652444 7268770.35872981,
 2047538.39639384 7268770.38911059,
 2047538.49763366 7268770.41455442,
 2047538.596 7268770.436)





 see attached images  original circular string is green
 converted line is red

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