[postgis-devel] ST_AsGML(3, LineString) : Curve vs. LineString

Olivier Courtin olivier.courtin at oslandia.com
Sun Jan 30 09:18:03 PST 2011


On Jan 28, 2011, at 9:59 PM, strk wrote:

Sandro,

> I was wondering why the ST_AsGML(3, LineString) function opts
> for outputting a <Curve> tag rather than a LineString tag.
>
> I belive both are valid 3.1.1 constructs,
> but the <LineString> is shorter,

You're right LineString is shorter and is still valid in 3.1.1

I think that the reason to use Curve was that we didn't knows
few years ago, that LineString were still available in GML 3.

In ST_GeomFromGML both are allowed.

I agree to #816 to allow the users to choose beetween the two.

> Was there a special need for <segments> ?

AFAIK no.

--
Olivier



More information about the postgis-devel mailing list