[gdal-dev] OGR SQL on CSV file with field name with parentheses?

Moskovitz, Bob@DOC Bob.Moskovitz at conservation.ca.gov
Thu Apr 18 16:32:17 PDT 2019


Hello gdal_dev,

I am trying to use ogrinfo on a set of CSV file that has a field with the name "Vs30(m/s)", but change the name to "Vs30".  Is this possible or do I have to edit a bunch of files headers to do this?

I tried:
ogrinfo -al "Data_directory" -dialect sqlite -sql "SELECT Vs30(m/s) as Vs30 FROM file1"
but as expected ogrinfo gave the error message "no such function: Vs30".

Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20190418/3e153911/attachment.html>


More information about the gdal-dev mailing list