Hi,
When parsing geoparquet with PROJJSON metadata with geotools on files
created by the latest GDAL I get the following error;
com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot
deserialize value of type `java.util.ArrayList<java.lang.Double>` from
Object value (token `JsonToken.START_OBJECT`)
at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION`
disabled); line: 1, column: 865] (through reference chain:
org.geotools.jackson.datatype.geoparquet.GeoParquetMetadataV1_1_0["columns"]->java.util.LinkedHashMap["geometry"]->org.geotools.jackson.datatype.geoparquet.Geometry["crs"]->org.geotools.jackson.datatype.projjson.model.GeographicCRS["bbox"])
I narrowed this down to GDAL adding this optional `bbox` metadata;
"bbox": {
"south_latitude": -60.55,
"west_longitude": 93.41,
"north_latitude": -8.47,
"east_longitude": 173.34
},
Which is correct according to the PROJJSON schema referenced by GDAL -
https://proj.org/schemas/v0.7/projjson.schema.json. Within the JSON file
there are two uses of `bbox` one of which is the one above and the other is
an array of doubles.
The bbox is optional so removing this metadata allows Geotools to parse the
file, it is just a pain to rewrite the metadata for every file created by
GDAL.
I am using the latest Geotools (main) on Ubuntu.
Norman
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users