Re: [gdal-dev] Autodetect "0012" as string in CSV

2017-08-18 Thread Rahkonen Jukka (MML)
Hi Even, Yeah, should have been reading the documents more closely. This keeps the leading zeroes. ogrinfo csvtext.csv -oo autodetect_type=yes -oo quoted_fields_as_string=yes -al INFO: Open of `csvtext.csv' using driver `CSV' successful. Layer name: csvtext Geometry: None Feature

Re: [gdal-dev] Autodetect "0012" as string in CSV

2017-08-18 Thread Even Rouault
On vendredi 18 août 2017 10:59:47 CEST Rahkonen Jukka (MML) wrote: > Hi, > > The schema of a CSV file like this > "00012",012345,1234,234.65,"text" > is autodetected this way: > > ogrinfo csvtext.csv -oo autodetect_type=yes -al > INFO: Open of `csvtext.csv' > using driver `CSV' successful.

[gdal-dev] Autodetect "0012" as string in CSV

2017-08-18 Thread Rahkonen Jukka (MML)
Hi, The schema of a CSV file like this "00012",012345,1234,234.65,"text" is autodetected this way: ogrinfo csvtext.csv -oo autodetect_type=yes -al INFO: Open of `csvtext.csv' using driver `CSV' successful. Layer name: csvtext Geometry: None Feature Count: 1 Layer SRS WKT: (unknown)