As requested, moving this discussion:
https://gis.stackexchange.com/questions/453121/geotools-create-feature-with-nested-compound-attributes
to the dev list.

My solution has been to copy the geoson-core module locally and make
changes in the reader/writer to use the ObjectMapper functionality when
encountering a feature attribute type not directly supported. This allows
easy serialization/deserialization via the Jackson annotation mechanism.
One could also define a Jackson Module for custom object types and register
it with the ObjectMapper instance in the reader/writer.

One drawback of this approach is that it exposes Jackson as the underlying
mechanism.
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to