[postgis-tickets] [PostGIS] #2407: st_linetocurve and st_curvetoline behaviour change

PostGIS trac at osgeo.org
Wed Aug 7 06:17:50 PDT 2013


#2407: st_linetocurve and st_curvetoline behaviour change
---------------------+------------------------------------------------------
 Reporter:  mjurce   |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.4
Component:  postgis  |     Version:  2.0.x        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by strk):

 Ok, here's the correct padding:
 {{{
 MULTILINESTRING((723097.524 117088.672,724308.441
 117063.281,724342.841215729 117105.022471112,724379.248151801
 117145.025724211,724417.57410072 117183.194387958,724457.726731918
 117219.436510698,724499.609314188 117253.664781983,724543.120948721
 117285.796742909,724588.15681218 117315.754984769,724634.608409223
 117343.467335533,724682.363833886 117368.867033721,724731.308039167
 117391.892889235,724781.323114189 117412.489430773,724832.288568255
 117430.607039462,724884.081621122 117446.202068396,724936.577498789
 117459.236947784,724989.64973409 117469.680275461,725043.17047136
 117477.506892534,725097.010774456 117482.697943997,725151.040937372
 117485.240924154,725205.130796712 117485.129706743,725259.150045268
 117482.364559695,725312.968545938 117476.952144492,725366.456645242
 117468.905500116,725419.485485661 117458.244011639,725443.148 117452.604))
 }}}

 The geometry still only has 26 vertices rather than the 27 obtained with
 any recent version (including 1.5.9-svn). The Hausdorff distance between
 the one obtained with 1.5.9 and the reported one is in the order of 1e-8
 over a rough total length of 2500 units. Not a big difference.

 Now, the big difference is that you _can_ covert back the 26-vertices
 result (old one) using ST_LineToCurve while you get an exception when you
 try to convert back the 27-vertices one.
 Looking to spot the problem. I'm still interested in knowing the exact
 version of postgis producing the so called "old" result.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2407#comment:6>
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