/** * Sets the geographic component of the area of interest, or {@code null} if none. * This convenience method set the bounding box into the spatio-temporal {@link Extent}. * * <p>The reverse operation can be done with <code>{@linkplain Extents#getGeographicBoundingBox(Extent) * Extents.getGeographicBoundingBox}({@linkplain #getAreaOfInterest()})</code>.</p> * * @param area the geographic area of interest, or {@code null} if none. */ public void setAreaOfInterest(final GeographicBoundingBox area) { areaOfInterest = setGeographicBoundingBox(areaOfInterest, area); }
/** * Sets the geographic component of the area of interest, or {@code null} if none. * This convenience method set the bounding box into the spatio-temporal {@link Extent}. * * <p>The reverse operation can be done with <code>{@linkplain Extents#getGeographicBoundingBox(Extent) * Extents.getGeographicBoundingBox}({@linkplain #getAreaOfInterest()})</code>.</p> * * @param area the geographic area of interest, or {@code null} if none. */ public void setAreaOfInterest(final GeographicBoundingBox area) { areaOfInterest = setGeographicBoundingBox(areaOfInterest, area); }
bbox = Extents.intersection(CRS.getGeographicBoundingBox(sourceCRS), CRS.getGeographicBoundingBox(targetCRS)); areaOfInterest = CoordinateOperationContext.setGeographicBoundingBox(areaOfInterest, bbox);
bbox = Extents.intersection(CRS.getGeographicBoundingBox(sourceCRS), CRS.getGeographicBoundingBox(targetCRS)); areaOfInterest = CoordinateOperationContext.setGeographicBoundingBox(areaOfInterest, bbox);