[gdal-dev] Problem using ST_Centroid

Jim Bellenger bellengj at gmail.com
Tue May 7 17:05:30 PDT 2019


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


More information about the gdal-dev mailing list