$ 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 _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev