Opened 10 years ago

Last modified 5 years ago

#2863 new enhancement

ST_Height and ST_Width (or ST_XSize, ST_YSize, ST_ZSize) for geometry

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

Description

We should have an ST_Height and ST_Width for geometry similar to what we already have for raster which would return the bounding box height and width

Change History (4)

comment:1 by robe, 10 years ago

Summary: ST_Height and ST_Width for geometryST_Height and ST_Width (or ST_XSize, ST_YSize, ST_ZSize) for geometry

We should decide on name evidently also proposed ST_XSize, ST_YSize, ST_ZSize admittedly that is clearer and has the niceness of not being a breaking change (e.g. ST_Width and ST_Height would overlap with raster thus possibly in some cases resulting in ambiguous if people don't cast their text based geometry representations.

comment:2 by pramsey, 10 years ago

Milestone: PostGIS 2.2.0PostGIS Future

comment:3 by robe, 7 years ago

Milestone: PostGIS FuturePostGIS Fund Me

Milestone renamed

comment:4 by strk, 5 years ago

Just stumbled upon lack of this function. I'd be tempted to use ST_Width/ST_Height as we already have that for raster, and that's what I've been typing w/out luck...

Note: See TracTickets for help on using tickets.