Opened 7 years ago

Closed 7 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:
Cc:

Description

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 Changed 7 years ago by Even Rouault

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 Changed 7 years ago by Even Rouault

Resolution: wontfix
Status: newclosed

This is now possibly by using SQLite SQL dialect with Spatialite : http://gdal.org/ogr/ogr_sql_sqlite.html

Note: See TracTickets for help on using tickets.