/** * Returns the latitude and longitude value for a given pixel co-ordinate. * * @param pixelPos the pixel's co-ordinates given as x,y * @param geoPos an instance of <code>GeoPos</code> to be used as retun value. If this parameter is * <code>null</code>, the method creates a new instance which it then returns. * * @return the geographical position as lat/lon. */ @Override public final GeoPos getGeoPos(PixelPos pixelPos, GeoPos geoPos) { final Point2D mapPos = pixelToMap(pixelPos, new Point2D.Double()); final GeoPos geoPosNorm = mapToGeo(mapPos, new GeoPos()); return denormGeoPos(geoPosNorm, geoPos); }