A Geotools/JTS MultiPolygon contains a list of geometries.
Do those geometries have to be Polygons, or could one of them be another MultiPolygon (or even something else)?
Same question also arises for MultiPoints and MultiLineStrings.
thx g
A Geotools/JTS MultiPolygon contains a list of geometries.
Do those geometries have to be Polygons, or could one of them be another MultiPolygon (or even something else)?
Same question also arises for MultiPoints and MultiLineStrings.
thx g
Copyright © 2021 Jogjafile Inc.
Possibly but it may cause unexpected problems down the line. It would be better to either "promote" your
Polygons toMultiPolygons or make theListholdGeometrys (or possibly their common interfacePolygonal).If you mix geometry types in a
Listyou will have problems writing them to mostDataStores which expect a consistent data type.