no.geodata.maputil
Class MapCoordCalc

java.lang.Object
  extended by no.geodata.maputil.MapCoordCalc

public class MapCoordCalc
extends Object

Class for projecting and unprojection coordinates.


Constructor Summary
MapCoordCalc()
          Creates a new instance of MapCoordCalc.
 
Method Summary
 MapPoint DD2UTM(double lon, double lat)
          Converts a point in decimal degrees to the "optimal" UTM zone.
 MapPoint DD2UTM(double lon, double lat, int utmZone)
          Converts a point in decimal degrees to the given UTM zone.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapCoordCalc

public MapCoordCalc()
Creates a new instance of MapCoordCalc.

Method Detail

DD2UTM

public MapPoint DD2UTM(double lon,
                       double lat)
Converts a point in decimal degrees to the "optimal" UTM zone.

Parameters:
lon - Longitude (X) of the point to convert.
lat - Latitude (Y) of the point to convert.
Returns:
MapPoint object with the projected point (UTM).

DD2UTM

public MapPoint DD2UTM(double lon,
                       double lat,
                       int utmZone)
Converts a point in decimal degrees to the given UTM zone.

Parameters:
lon - Longitude (X) of the point to convert.
lat - Latitude (Y) of the point to convert.
utmZone - UTM zone used in the projection.
Returns:
MapPoint object with the projected point (UTM).


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.