/** * Returns the pixel co-ordinates as x/y for a given geographical position given as lat/lon. * * @param geoPos the geographical position as lat/lon. * @param pixelPos an instance of <code>PixelPos</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 pixel co-ordinates as x/y */ @Override public final PixelPos getPixelPos(GeoPos geoPos, PixelPos pixelPos) { final GeoPos geoPosNorm = normGeoPos(geoPos, new GeoPos()); final Point2D mapPos = geoToMap(geoPosNorm, new Point2D.Double()); return mapToPixel(mapPos, pixelPos); }