org.osm2world.core.map_data.creation
Class HackMapProjection

Object
  extended by HackMapProjection
All Implemented Interfaces:
MapProjection

public class HackMapProjection
extends Object
implements MapProjection

quick-and-dirty projection that is intended to use the "dense" space of floating point values, and tries to make 1 meter the distance represented by 1 internal unit


Field Summary
static double SCALE_X
           
static double SCALE_Y
           
 
Constructor Summary
HackMapProjection(OSMData osmData)
           
 
Method Summary
 double calcLat(VectorXZ pos)
          inverse for MapProjection.calcPos(double, double)
 double calcLon(VectorXZ pos)
          inverse for MapProjection.calcPos(double, double)
 VectorXZ calcPos(double lat, double lon)
           
 VectorXZ calcPos(LatLon latlon)
           
 VectorXZ getNorthUnit()
          returns a vector that points one meter to the north from the position that becomes the coordinate origin
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCALE_X

public static final double SCALE_X
See Also:
Constant Field Values

SCALE_Y

public static final double SCALE_Y
See Also:
Constant Field Values
Constructor Detail

HackMapProjection

public HackMapProjection(OSMData osmData)
Method Detail

calcPos

public VectorXZ calcPos(double lat,
                        double lon)
Specified by:
calcPos in interface MapProjection

calcPos

public VectorXZ calcPos(LatLon latlon)
Specified by:
calcPos in interface MapProjection

calcLat

public double calcLat(VectorXZ pos)
Description copied from interface: MapProjection
inverse for MapProjection.calcPos(double, double)

Specified by:
calcLat in interface MapProjection

calcLon

public double calcLon(VectorXZ pos)
Description copied from interface: MapProjection
inverse for MapProjection.calcPos(double, double)

Specified by:
calcLon in interface MapProjection

getNorthUnit

public VectorXZ getNorthUnit()
Description copied from interface: MapProjection
returns a vector that points one meter to the north from the position that becomes the coordinate origin

Specified by:
getNorthUnit in interface MapProjection