Using GeoTools, I'm able to write features to a shapefile by essentially passing a SimpleFeatureCollection
to a ShapefileDataStore
. The feature collection provides both a schema and features including their attribute values.
In addition to having the row-per-feature attribute table in the shapefile, I'd like to include file-level metadata - either structured fields or at least free-text title/description fields. Is there support for doing this in GeoTools? Or do I need to serialise my own *.shp.xml
file?