Closed robinsummerhill closed 2 years ago
I am adding this for 3.5, but in the meantime you can use
gdal.config.set('OGR_GEOJSON_DATE_AS_STRING', 'ON')
Thank you! I thought it might be possible with gdal.config but couldn't work out the right key name.
GDAL drivers can implement driver-specific options used when opening datasets. For example, the GeoJSON driver implements a
DATE_AS_STRING
option to control how dates are interpreted when opening a GeoJSON file.The C API allows you to specify these options when opening a dataset with
GDALOpenEx()
but this is not possible using the NodeJS bindings.gdal.open()
should be extended to allow passing driver-specific Open Options.