@Override public void setCoordinateSystem( ICRS crs ) { super.setCoordinateSystem( crs ); // unknown if needed tileContainer.getEnvelope().setCoordinateSystem( crs ); }
in.readDouble(), in.readDouble(), (CRS) in.readObject() ); envelope.setCoordinateSystem( rasterGeoReference.getCrs() ); resolutionInfo = (ResolutionInfo) in.readObject(); options = (RasterIOOptions) in.readObject();
bbox.setCoordinateSystem( ts.getTileDataSet( tmsid ).getTileMatrixSet().getSpatialMetadata().getCoordinateSystems().get( 0 ) );
private void enforceCrs( ICRS crs, Envelope boundingBox ) { boundingBox.getMin().setCoordinateSystem( crs ); boundingBox.getMax().setCoordinateSystem( crs ); boundingBox.setCoordinateSystem( crs ); }
@Override public Envelope getEnvelope() { if ( env == null ) { // TODO NullEnvelope for emtpy aggregates? or throw an exception? env = get( 0 ).getEnvelope(); for ( Geometry geom : this ) { env = env.merge( geom.getEnvelope() ); } if ( env.getCoordinateSystem() == null ) { env.setCoordinateSystem( crs ); } } return env; }