[gdal-dev] How to set layer name in SQL query?

Denis Rykov rykovd at gmail.com
Wed Aug 23 09:24:34 PDT 2017


When I perform the following command:

$ ogrinfo -dialect SQLITE -sql "SELECT COUNT(*) summary FROM
Export_Output_4" Export_Output_4.shp

I get result:

INFO: Open of `Export_Output_4.shp'
      using driver `ESRI Shapefile' successful.

Layer name: SELECT
Geometry: None
Feature Count: 1
Layer SRS WKT:
(unknown)
summary: Integer (0.0)
OGRFeature(SELECT):0
  summary (Integer) = 703

Is it possible to change layer name in output ("SELECT" now).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170823/feec8a52/attachment.html>


More information about the gdal-dev mailing list