[postgis-devel] length{,2d,3d}

strk at refractions.net strk at refractions.net
Wed Aug 25 00:59:23 PDT 2004


>From postgis manual:

   length2d(geometry)
          Returns the 2-dimensional length of the geometry if it is a
          linestring or multi-linestring.

   length(geometry)
          The length of this Curve in its associated spatial reference.

          synonym for length2d()

          OGC SPEC 2.1.5.1

   length3d(geometry)
          Returns the 3-dimensional length of the geometry if it is a
          linestring or multi-linestring.

... but length2d is not defined in postgis.sql.in ...

Since OGC only defines 'length', what about dropping length3d and length2d ?
A 3d geom would get a 3d length computed, while a 2d length would get
a 2d length computed.

Comments ?

--strk;



More information about the postgis-devel mailing list