org.openstreetmap.josm.data.projection
Class Epsg4326

java.lang.Object
  extended by org.openstreetmap.josm.data.projection.Epsg4326
All Implemented Interfaces:
Projection

public class Epsg4326
extends java.lang.Object
implements Projection

Directly use latitude / longitude values as x/y.


Constructor Summary
Epsg4326()
           
 
Method Summary
 LatLon eastNorth2latlon(EastNorth p)
          Convert from norting/easting to lat/lon.
 java.lang.String getCacheDirectoryName()
          Get a filename compatible string (for the cache directory)
 double getDefaultZoomInPPD()
          The default scale factor in east/north units per pixel (#NavigatableComponent#scale)) FIXME: misnomer
 Bounds getWorldBoundsLatLon()
          Get the bounds of the world
 int hashCode()
           
 EastNorth latlon2eastNorth(LatLon p)
          Convert from lat/lon to northing/easting.
 java.lang.String toCode()
          Return projection code.
 java.lang.String toString()
          Describe the projection converter in one or two words.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Epsg4326

public Epsg4326()
Method Detail

latlon2eastNorth

public EastNorth latlon2eastNorth(LatLon p)
Description copied from interface: Projection
Convert from lat/lon to northing/easting.

Specified by:
latlon2eastNorth in interface Projection
Parameters:
p - The geo point to convert. x/y members of the point are filled.

eastNorth2latlon

public LatLon eastNorth2latlon(EastNorth p)
Description copied from interface: Projection
Convert from norting/easting to lat/lon.

Specified by:
eastNorth2latlon in interface Projection
Parameters:
p - The geo point to convert. lat/lon members of the point are filled.

toString

public java.lang.String toString()
Description copied from interface: Projection
Describe the projection converter in one or two words.

Specified by:
toString in interface Projection
Overrides:
toString in class java.lang.Object

toCode

public java.lang.String toCode()
Description copied from interface: Projection
Return projection code. This should be a unique identifier. If projection supports parameters, return a different code for each set of parameters. The EPSG code can be used (if defined for the projection).

Specified by:
toCode in interface Projection

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getCacheDirectoryName

public java.lang.String getCacheDirectoryName()
Description copied from interface: Projection
Get a filename compatible string (for the cache directory)

Specified by:
getCacheDirectoryName in interface Projection

getWorldBoundsLatLon

public Bounds getWorldBoundsLatLon()
Description copied from interface: Projection
Get the bounds of the world

Specified by:
getWorldBoundsLatLon in interface Projection

getDefaultZoomInPPD

public double getDefaultZoomInPPD()
Description copied from interface: Projection
The default scale factor in east/north units per pixel (#NavigatableComponent#scale)) FIXME: misnomer

Specified by:
getDefaultZoomInPPD in interface Projection


JOSM