[gdal-dev] skipping date type detection of GeoJSON properties
Keith Jenkins
kgj2 at cornell.edu
Tue Jan 7 13:13:40 PST 2020
Hi,
Is there anyway to skip OGR's automatic detection of date types? When
using ogr2ogr, I'd like to avoid the inadvertent modification of
certain date-like strings. For example, if I have this GeoJSON...
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"identifier": "3000-02-31",
"name":"a"
},
"geometry": { "type": "Point", "coordinates": [ 1, 1 ] }
},
{
"type": "Feature",
"properties": {
"identifier": "2000-01-01",
"name":"b"
},
"geometry": { "type": "Point", "coordinates": [ 2, 1 ] }
}
]
}
... ogr2ogr converts the identifiers to "3000\/02\/31" and "2000\/01\/01".
Is there any way to preserve the original formatting of these strings?
Many thanks,
Keith
More information about the gdal-dev
mailing list