[postgis-devel] ST_LineToCurve output type

Sandro Santilli strk at keybit.net
Tue Aug 13 12:32:32 PDT 2013


I noticed that ST_LineToCurve returns linear-type geometries when it doesn't
detect any curve in input. Given curved types can legitimately represent lines
(compoundcurve only containing linestring elements) wouldn't it be more
appropriate to always return curves ? It would make a nice invariant, IMHO.

Any reason NOT to do that ?

--strk; 



More information about the postgis-devel mailing list