That worked. Thanks!
Ashley Mort
Sr. Software Engineer
972-638-6317 office
814-571-3039 cell
From: Even Rouault
Sent: Friday, June 17, 2022 10:29 AM
To: Ashley Mort ; gdal-dev@lists.osgeo.org
Subject: [External] Re: [gdal-dev] convert to ESRI Shapefile- datetime as a
string?
Ashley,
try add
Hi,
One possible approach using only GDAL
https://gist.github.com/ThomasG77/1c76c8fd4f6ee08d9da88dfdb911cfcb
It can be also made with higher level abstraction package like geopandas or
fiona like mentioned by Alan (also in the same link)
Regards
Thomas Gratier
PS: not sure I've code the fastes
Ashley,
try adding "-mapFieldType DateTime=String". See
https://gdal.org/programs/ogr2ogr.html#cmdoption-ogr2ogr-mapFieldType
You won't get a ISO datetime but the historical format used by OGR:
"/MM/DD HH:MM:SS"
Even
Le 17/06/2022 à 16:51, Ashley Mort via gdal-dev a écrit :
We are us
We are using GDAL 3.4.1 to convert GeoJSON to ESRI Shapefile with ogr2ogr. Our
source data has a datetime field with content like
"2022-07-09T23:59:59.00Z" and in the resultant Shapefile it shows up as
7/9/2002.
Is there a way to get the ISO datetime into the Shapefile as a string instead