[gdal-dev] Ellipsoidal length of a line
Even Rouault
even.rouault at spatialys.com
Sat Jun 15 14:04:18 PDT 2019
$ cat test.csv
id,WKT
1,"LINESTRING(2 49,3 50,4 49)"
$ ogr2ogr test.db test.csv -f sqlite -dsco spatialite=yes -a_srs EPSG:4326
$ ogrinfo test.db -sql "select st_length(geometry, 1) from test" -al -q
Layer name: SELECT
OGRFeature(SELECT):0
st_length(geometry, 1) (Real) = 265450.955822012
Cf http://www.gaia-gis.it/gaia-sins/spatialite-sql-4.2.0.html#p6
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list