[gdal-dev] ogr2ogr JSON -> Shapefile Failing
Cechini, Matthew F. (GSFC-423.0)[Science Systems & Applications, Inc.]
matthew.f.cechini at nasa.gov
Wed Apr 18 13:00:40 PDT 2018
All,
Once upon a time (GDAL 1.x) I was able to convert the following JSON to Shapefile without errors. However with GDAL 2.x I am not. Any assistance you can provide is welcome. I’m running a simple ` ogr2ogr -f "ESRI Shapefile" -preserve_fid <out> <in>` command.
{
"crs":
{
"type": "name",
"properties":
{
"name": "EPSG3413"
}
},
"type": "FeatureCollection",
"features": [
{
"geometry":
{
"type": "Point",
"coordinates": [324117.76729052397, 844135.46348421532]
},
"type": "Feature",
"id" : 230,
"properties":
{
"direction" : "T",
"ident" : 230,
"id" : 230,
"day_offset": 0,
"label" : "00:44",
"day_night" : "D",
"time" : "00:45",
"datetime" : "2017-01-01T00:45:00 UTC"
}
}]
}
These are the errors I am seeing:
ERROR 6: Can't create fields of type Time on shapefile layers.
ERROR 6: Can't create fields of type Time on shapefile layers.
Warning 1: Feature id not preserved
Thanks,
Matt
.................................................................
Matthew Cechini
Contractor, Science Systems and Applications, Inc.
NASA GIBS Systems/Software Engineer
410.205.6272
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180418/bce5f796/attachment.html>
More information about the gdal-dev
mailing list