[gdal-dev] Problem using ST_Centroid

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[gdal-dev] Problem using ST_Centroid

Jim Bellenger
I am trying to use a call like

ogr2ogr centroid.shp plaque_area.shp -dialect sqlite -sql "SELECT ST_Centroid(geometry), * from plaque_area"

but I get the following error

ERROR 1: In ExecuteSQL(): sqlite3_prepare_v2(SELECT ST_Centroid(geometry), * from plaque_area):
  no such function: ST_Centroid

I am compiling GDAL from source and installing in non-standard directories.  I am using gdal-2.4.0, geos-3.7.2, and sqlite-3.028

_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: Problem using ST_Centroid

Brad Hards

Possibly you need to build with spatialite support?

 

Brad

 


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev