List<org.locationtech.jts.geom.Geometry> array = new ArrayList<>(n); for (int i = 0; i < n; ++i) { array.add(convert(geometry.getGeometryN(i)));
/** * Convert from old-style VividSolutions Geometry to new-style LocationTech Geometry. * * @param geometry the geometry * * @return the converted geometry */ public static org.locationtech.jts.geom.Geometry convert(com.vividsolutions.jts.geom.Geometry geometry) { return VS2LT_CONVERTER.convert(geometry); }
/** * Convert from old-style VividSolutions Envelops to new-style LocationTech Envelopes. * * @param envelope the envelope * * @return the converted envelope */ public static org.locationtech.jts.geom.Envelope convert(com.vividsolutions.jts.geom.Envelope envelope) { return VS2LT_CONVERTER.convert(envelope); }