public void setBounds(BoundingBox bounds) { this.crs = bounds.getCoordinateReferenceSystem(); this.x = bounds.getMinX(); this.y = bounds.getMinY(); this.width = bounds.getWidth(); this.height = bounds.getHeight(); }
g2.setClip((int)viewPortBoundingBox.topLeft.getX(),(int)viewPortBoundingBox.topLeft.getY(),(int)viewPortBoundingBox.getWidth(),(int)viewPortBoundingBox.getHeight());
if (covEnvelope.contains(readBoundingBox) && (covEnvelope.getWidth() > readBoundingBox.getWidth() || covEnvelope.getHeight() > readBoundingBox.getHeight())) { cropped = cropOnEnvelope(cov, readEnvelope);