[gdal-dev] Ellipsoidal length of a line

Thomas Knudsen knudsen.thomas at gmail.com
Sat Jun 15 19:46:13 PDT 2019


Awesome!

Den lør. 15. jun. 2019 kl. 23.04 skrev Even Rouault <
even.rouault at spatialys.com>:

> $ 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20190616/ff3fd7d0/attachment.html>


More information about the gdal-dev mailing list