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;