Details
Description
A ConverterFactory for JTS Geometry to Geometry conversions could be useful to normalize a geometry to a required type.
One sample implementation is included. It currently supports the following conversions:
- simple to multi (point to multipoint, polygon to multipolygon, etc)
- any to point (gets the barycenter)
- any to linestring (connects all the coordinates with a linestring)
- any to polygon (connects all the coordinates with a closed linestring)
- any to geometrycollection
A set of testcases are included also.