com.nutiteq.maps.projections
Class EPSG3395

java.lang.Object
  extended by com.nutiteq.maps.BaseMap
      extended by com.nutiteq.maps.projections.EPSG3395
All Implemented Interfaces:
GeoMap, Projection

public abstract class EPSG3395
extends BaseMap
implements Projection

Abstract class for doing WGS84 coordinates calculations to map pixels in EPSG3395 (WGS84 Elliptical Mercator projection) and back.


Constructor Summary
EPSG3395(Copyright copyright, int tileSize, int minZoom, int maxZoom)
           
EPSG3395(java.lang.String copyright, int tileSize, int minZoom, int maxZoom)
           
 
Method Summary
 Point mapPosToWgs(MapPos pos)
          Convert a point on pixel map to WGS84 coordinates (decimal coordinates * 1000000)
 MapPos wgsToMapPos(Point wgs, int zoom)
          Convert WGS84 coordinates to pixel point on map
 
Methods inherited from class com.nutiteq.maps.BaseMap
addTileOverlay, getCopyright, getMapHeight, getMapWidth, getMaxZoom, getMinZoom, getMissingTileImage, getZoomRange, getTileMapBounds, getTileOverlay, getTileSize, setCopyright, setMissingTileImage, zoom
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EPSG3395

public EPSG3395(Copyright copyright,
                int tileSize,
                int minZoom,
                int maxZoom)

EPSG3395

public EPSG3395(java.lang.String copyright,
                int tileSize,
                int minZoom,
                int maxZoom)
Method Detail

mapPosToWgs

public Point mapPosToWgs(MapPos pos)
Description copied from interface: Projection
Convert a point on pixel map to WGS84 coordinates (decimal coordinates * 1000000)

Specified by:
mapPosToWgs in interface GeoMap
Specified by:
mapPosToWgs in interface Projection
Parameters:
pos - pixel point on the map (on 256x256 pixels map of the world 0E 0N is located at map pixel 128x : 128y)
Returns:
point in internally used WGS84 format (decimal degrees * 1000000)

wgsToMapPos

public MapPos wgsToMapPos(Point wgs,
                          int zoom)
Description copied from interface: Projection
Convert WGS84 coordinates to pixel point on map

Specified by:
wgsToMapPos in interface GeoMap
Specified by:
wgsToMapPos in interface Projection
Parameters:
wgs - WGS84 coordinates (decimal coordinates * 1000000)
zoom - zoom level for the map
Returns:
pixel position on map for the coordinates