[postgis-users] ST_CurveToLine and ST_LineToCurve problems

Paul Ramsey pramsey at cleverelephant.ca
Wed Nov 10 07:40:44 PST 2021



> On Nov 10, 2021, at 7:24 AM, Marcin Mionskowski <mionskowskimarcin at gmail.com> wrote:
> 
> So... Are what I have described bugs or is it supposed to work this way?

Mostly things are supposed to work this way. Remember you are "cheating", you see the original input run it through linetocurve/curvetoline, whereas the algorithm (particularly the linetocurve one) has only what it sees coming in to try and figure out the "right" curve. This particular piece of code has been through multiple revisions and tweaking and at least a couple completely different algorithmic approaches, so probably any changes to fix "case a" will in turn destabilize other cases. I am loath to touch it every again, but maybe there's someone else for whom the problem calls out to them!

P


More information about the postgis-users mailing list