Opened 12 years ago

Closed 11 years ago

#4467 closed enhancement (wontfix)

OGR_SQL feature request: OGR_GEOM_LENGTH

Reported by: peifer Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: svn-trunk
Severity: normal Keywords:


It would be helpful to have an OGR_GEOM_LENGTH special field returning the length of line features (in analogy to OGR_GEOM_AREA, which returns a feature's area).

Change History (2)

comment:1 by Even Rouault, 12 years ago

My feeling is that we should not go on adding those special fields that are more or less hacks. A better (but more complicated) approach would be to implement a subset of SQL/MM, so as to be able to use a standardized syntax like ST_Length(geom), ST_Area(geom), etc...

comment:2 by Even Rouault, 11 years ago

Resolution: wontfix
Status: newclosed

This is now possibly by using SQLite SQL dialect with Spatialite :

Note: See TracTickets for help on using tickets.