I have a CSV with ":" in all column names. I am trying to convert it with ogr2ogr to another format. I don't need all fields
example for formating:
#0:imgID,1:camSN,2:lat,3:lon,...,57:fields
000000001,201002422,4.8192835254,-75.7043506327,...
000000003,201002422,4.8192743299,-75.7042594643,...
000000004,201002422,4.8192692652,-75.7042137224,...
where I use:
ogrinfo Outfile.csv -dialect SQLite -sql "SELECT substr(1:camSN , 2) as serial FROM Outfile"
I get:
INFO: Open of `Outfile.csv'
using driver `CSV' successful.
ERROR 1: In ExecuteSQL(): sqlite3_prepare_v2(SELECT substr(1:camSN , 2) as serial FROM Outfile):
near ":camSN": syntax error
Where I use:
ogrinfo Outfile.csv -dialect SQLite -sql "SELECT 1:camSN,2:lat,3:lon FROM Outfile"
I get:
INFO: Open of `Outfile.csv'
using driver `CSV' successful.
ERROR 1: In ExecuteSQL(): sqlite3_prepare_v2(SELECT 1:camSN,2:lat,3:lon FROM Outfile):
near ":camSN": syntax error
where I use:
ogr2ogr -s_srs EPSG:4326 -t_srs EPSG:4326 -oo X_POSSIBLE_NAMES=lon* -oo Y_POSSIBLE_NAMES=lat* -f "ESRI Shapefile" Informe.shp Outfile.csv -dialect SQLite -sql "SELECT camSN,lat,lon,height,roll FROM Outfile"
I get only Informe.dbf and Informe.prj NOT shapefile (Informe.shp)
number:
?