/** * Calculates the resolution (world units / pixel) for the given scale denominator (1 / map scale) and coordinate * reference system (determines the world units). * * @param scaleDenominator * scale denominator (1 / map scale) * @param crs * coordinate reference system, must not be <code>null</code> * @return resolution in world units per pixel */ public static double calcResolution( double scaleDenominator, ICRS crs ) { IUnit units = crs.getAxis()[0].getUnits(); return calcResolution( scaleDenominator, units ); }
nextElement( xmlStream ); double resolution = calcResolution( scaleDenominator, crs ); SpatialMetadata spatialMetadata = createSpatialMetadata( crs, resolution, topLeftCorner, tileSizeX, tileSizeY, numTilesX, numTilesY );