org.openstreetmap.josm.data.projection
Interface Projection

All Known Implementing Classes:
AbstractProjection, BelgianLambert1972, BelgianLambert2008, CustomProjection, Epsg3008, Epsg4326, GaussKrueger, Lambert, Lambert93, LambertCC9Zones, LambertEST, Mercator, Puwg, SwissGrid, TransverseMercatorLV, UTM, UTM_France_DOM

public interface Projection

Classes implementing this are able to convert lat/lon values to planar screen coordinates.


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
 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.
 

Method Detail

getDefaultZoomInPPD

double getDefaultZoomInPPD()
The default scale factor in east/north units per pixel (#NavigatableComponent#scale)) FIXME: misnomer


latlon2eastNorth

EastNorth latlon2eastNorth(LatLon p)
Convert from lat/lon to northing/easting.

Parameters:
p - The geo point to convert. x/y members of the point are filled.

eastNorth2latlon

LatLon eastNorth2latlon(EastNorth p)
Convert from norting/easting to lat/lon.

Parameters:
p - The geo point to convert. lat/lon members of the point are filled.

toString

java.lang.String toString()
Describe the projection converter in one or two words.

Overrides:
toString in class java.lang.Object

toCode

java.lang.String toCode()
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).


getCacheDirectoryName

java.lang.String getCacheDirectoryName()
Get a filename compatible string (for the cache directory)


getWorldBoundsLatLon

Bounds getWorldBoundsLatLon()
Get the bounds of the world



JOSM