/** * Set the coordinate reference system in which the coordinate are given. * * @param crs The new coordinate reference system, or {@code null}. */ public void setCoordinateReferenceSystem(final CoordinateReferenceSystem crs) { AbstractDirectPosition.checkCoordinateReferenceSystemDimension(crs, getDimension()); this.crs = crs; }
throws IllegalArgumentException { final double offset = PixelTranslation.getPixelTranslation(anchor) + 0.5; final int dimension = envelope.getDimension(); assert dimension == 2; final int[] index = new int[dimension * 2];
final int dimension = envelope.getDimension(); assert dimension==2; final int[] index = new int[dimension * 2];