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

PostGIS trac at osgeo.org
Wed Aug 7 02:21:55 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):

 Oops, sorry for the noise, r8689 has nothing to do with curves, will need
 to bisect this.

 Mario: I don't understand what's the input to ST_LineToCurve, because
 passing the output from ST_CurveToLine(your_input) to ST_LineToCurve gives
 me an exception in both trunk and 1.5.

 The exception from trunk:
 {{{
 ERROR:  pta_desegmentize needs implementation for npoints < 4
 }}}

 The exception from 1.5:
 {{{
 ERROR:  getPoint4d_p: point offset out of range
 }}}

 The result of ST_CurveToLine in 1.5:
 {{{
  MULTILINESTRING((723097.524 117088.672,724308.441 117063.281),(724308.441
 117063.281,724342.841215728 117105.022471111,724379.2481518
 117145.02572421,724417.574100719 117183.194387956,724457.726731915
 117219.436510696,724499.609314185 117253.66478198,724543.120948718
 117285.796742906,724588.156812175 117315.754984765,724634.608409218
 117343.467335528,724682.36383388 117368.867033715,724731.30803916
 117391.892889229,724781.323114181 117412.489430767,724832.288568246
 117430.607039456,724884.081621113 117446.20206839,724936.57749878
 117459.236947778,724989.649734079 117469.680275453,725043.170471349
 117477.506892526,725097.010774444 117482.69794399,725151.040937359
 117485.240924147,725205.130796698 117485.129706735,725259.150045253
 117482.364559687,725312.968545923 117476.952144484,725366.456645225
 117468.905500109,725419.485485643 117458.244011632,725443.148 117452.604))
 }}}

 The result of ST_CurveToLine  with trunk:
 {{{
  MULTILINESTRING((723097.524 117088.672,724308.441 117063.281),(724308.441
 117063.281,724342.841215728 117105.022471111,724379.2481518
 117145.02572421,724417.574100719 117183.194387956,724457.726731915
 117219.436510696,724499.609314185 117253.66478198,724543.120948718
 117285.796742906,724588.156812175 117315.754984765,724634.608409218
 117343.467335528,724682.36383388 117368.867033715,724731.30803916
 117391.892889229,724781.323114181 117412.489430767,724832.288568246
 117430.607039456,724884.081621113 117446.20206839,724936.57749878
 117459.236947778,724989.649734079 117469.680275453,725043.170471349
 117477.506892526,725097.010774444 117482.69794399,725151.040937359
 117485.240924147,725205.130796698 117485.129706735,725259.150045253
 117482.364559687,725312.968545923 117476.952144484,725366.456645225
 117468.905500109,725419.485485643 117458.244011632,725443.148 117452.604))
 }}}


 It would help to have a smaller input geometry still reproducing the
 problem.

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