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
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev