Thanks - missed that documentation.
Stopped reading at "OGR only supports CSV files ending with the
extension ".csv"
-maybe the sentences should be reorganised to someting like:
OGR supports CSV files ending with the extension ".csv" or any other CSV
file with any file extension if defining the source as CSV:<filename>
Andreas Oxenstierna wrote
Can ogr read a csv file with another extension, like txt ?
I do not suceed
Hi,
From the manual page https://www.gdal.org/drv_csv.html
"While in theory .csv files could have any extension, in order to
auto-recognise the format OGR only supports CSV files ending with the
extension ".csv". The datasource name may be either a single CSV file or
point to a directory. For a directory to be recognised as a .csv datasource
at least half the files in the directory need to have the extension .csv.
One layer (table) is produced from each .csv file accessed.
Starting with GDAL 1.8.0, for files structured as CSV, but not ending with
.CSV extension, the 'CSV:' prefix can be added before the filename to force
loading by the CSV driver."
Try ogrinfo CSV:my_text.txt
-Jukka Rahkonen-
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
--
Best Regards
Andreas Oxenstierna
T-Kartor Geospatial AB
mobile: +46 733 206831
mailto: [email protected]
http://www.t-kartor.com
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev