Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#526 closed defect (fixed)

Define alias ST_Perimeter (for geography ST_Length)

Reported by: robe Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.0
Component: postgis Version: master
Keywords: Cc:

Description

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.

Change History (2)

comment:1 Changed 11 years ago by pramsey

Resolution: fixed
Status: newclosed

In trunk at r7414

comment:2 Changed 11 years ago by robe

Paul, Hope you don't mind -- I took the liberty of getting rid of one of your functions and changing to use default args instead. Also did the same with ST_Length at r7418

Note: See TracTickets for help on using tickets.