Possibly but it may cause unexpected problems down the line. It would be better to either "promote" your Polygons to MultiPolygons or make the List hold Geometrys (or possibly their common interface Polygonal).
If you mix geometry types in a List you will have problems writing them to most DataStores which expect a consistent data type.
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.