[postgis-devel] [PostGIS] #526: Define alias ST_Perimeter (for geography ST_Length)
PostGIS
trac at osgeo.org
Sun May 16 00:47:30 PDT 2010
#526: Define alias ST_Perimeter (for geography ST_Length)
---------------------+------------------------------------------------------
Reporter: robe | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.0
Component: postgis | Version: trunk
Keywords: |
---------------------+------------------------------------------------------
Okay this inconsistency I mentioned in #266 is irking me a bit. Can we
PLEASE have an ST_Perimeter alias for geography tha tmaps to ST_Length. I
know ST_Length returns the perimeter for a geography polygon but who is
supposed to remember that?
Right now our geometry ST_Length returns 0 for polygon and people need to
use ST_Perimeter. For geography you have to use ST_Length for both
polygon and line strings. We could probably allow people to use ST_Length
for geometry polygon if they want to as that is less of a breaking change
than removing that feature in ST_Length geography.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/526>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list