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
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.
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)