/** * Computes the aggregated bounds of {@code features} in the {@code targetCrs} */ public ReferencedEnvelope boundsOf(CoordinateReferenceSystem targetCrs, Feature... features) throws Exception { ReferencedEnvelope bounds = new ReferencedEnvelope(targetCrs); for (int i = 0; i < features.length; i++) { Feature f = features[i]; BoundingBox fbounds = f.getBounds(); if (!CRS.equalsIgnoreMetadata(targetCrs, fbounds)) { fbounds = fbounds.toBounds(targetCrs); } bounds.include(fbounds); } return bounds; }
/** * Computes the aggregated bounds of {@code features} in the {@code targetCrs} */ protected ReferencedEnvelope boundsOf(CoordinateReferenceSystem targetCrs, Feature... features) throws Exception { ReferencedEnvelope bounds = new ReferencedEnvelope(targetCrs); for (int i = 0; i < features.length; i++) { Feature f = features[i]; BoundingBox fbounds = f.getBounds(); if (!CRS.equalsIgnoreMetadata(targetCrs, fbounds)) { fbounds = fbounds.toBounds(targetCrs); } bounds.include(fbounds); } return bounds; }
/** * Computes the aggregated bounds of {@code features} in the {@code targetCrs} */ public ReferencedEnvelope boundsOf(CoordinateReferenceSystem targetCrs, Feature... features) throws Exception { ReferencedEnvelope bounds = new ReferencedEnvelope(targetCrs); for (int i = 0; i < features.length; i++) { Feature f = features[i]; BoundingBox fbounds = f.getBounds(); if (!CRS.equalsIgnoreMetadata(targetCrs, fbounds)) { fbounds = fbounds.toBounds(targetCrs); } bounds.include(fbounds); } return bounds; }
/** * Computes the aggregated bounds of {@code features} in the {@code targetCrs} */ protected ReferencedEnvelope boundsOf(CoordinateReferenceSystem targetCrs, Feature... features) throws Exception { ReferencedEnvelope bounds = new ReferencedEnvelope(targetCrs); for (int i = 0; i < features.length; i++) { Feature f = features[i]; BoundingBox fbounds = f.getBounds(); if (!CRS.equalsIgnoreMetadata(targetCrs, fbounds)) { fbounds = fbounds.toBounds(targetCrs); } bounds.include(fbounds); } return bounds; }
/** * Computes the aggregated bounds of {@code features} in the {@code targetCrs} */ public ReferencedEnvelope boundsOf(CoordinateReferenceSystem targetCrs, Feature... features) throws Exception { ReferencedEnvelope bounds = new ReferencedEnvelope(targetCrs); for (int i = 0; i < features.length; i++) { Feature f = features[i]; BoundingBox fbounds = f.getBounds(); if (!CRS.equalsIgnoreMetadata(targetCrs, fbounds)) { fbounds = fbounds.toBounds(targetCrs); } bounds.include(fbounds); } return bounds; } }
/** * Computes the aggregated bounds of {@code features} in the {@code targetCrs} */ protected ReferencedEnvelope boundsOf(CoordinateReferenceSystem targetCrs, Feature... features) throws Exception { ReferencedEnvelope bounds = new ReferencedEnvelope(targetCrs); for (int i = 0; i < features.length; i++) { Feature f = features[i]; BoundingBox fbounds = f.getBounds(); if (!CRS.equalsIgnoreMetadata(targetCrs, fbounds)) { fbounds = fbounds.toBounds(targetCrs); } bounds.include(fbounds); } return bounds; } }