Geometry poly = jsonFeature.getGeometry().getGeometryN(i); if (poly instanceof org.locationtech.jts.geom.Polygon) borders.add(Polygon.create((org.locationtech.jts.geom.Polygon) poly)); else throw new IllegalArgumentException("Geometry for " + id + " (" + i + ") not supported " + poly.getClass().getSimpleName());
Geometry poly = jsonFeature.getGeometry().getGeometryN(i); if (poly instanceof org.locationtech.jts.geom.Polygon) borders.add(Polygon.create((org.locationtech.jts.geom.Polygon) poly)); else throw new IllegalArgumentException("Geometry for " + id + " (" + i + ") not supported " + poly.getClass().getSimpleName());