[gdal-dev] OGR Field Types?
Stefan Keller
sfkeller at gmail.com
Wed Apr 29 11:32:21 PDT 2015
I've few questions regarding CSV and OGR field types:
Doc. http://www.gdal.org/ogr2ogr.html mentions following field types
for "-mapFieldType":
Integer, Integer64, Real, String, Date, Time, DateTime, Binary,
IntegerList, Integer64List, RealList, StringList.
Doc http://www.gdal.org/drv_csv.html says:
<<
Limited type recognition can be done for Integer, Real, String, Date
(YYYY-MM-DD), Time (HH:MM:SS+nn), DateTime (YYYY-MM-DD HH:MM:SS+nn)
columns through a descriptive file with the same name as the CSV file,
but a .csvt extension (...) Starting with GDAL 2.0, subtypes can be
passed between parenthesis, such as "Integer(Boolean)",
"Integer(Int16)" and "Real(Float32)"
<<
Questions:
1. How is 'binary' encoded? E.g. when defining binary in a CSV file,
how is it encoded? Hex?
2. Can a field in a CSV input files have a IntegerList or a Binary?
3. What is the value delimiter in a field of type IntegerList,
Integer64List, RealList, StringList?
4. "Boolean, Int16, Float32" are mentioned as subtypes. Are there more subtypes?
-S.
More information about the gdal-dev
mailing list