com.bbn.openmap.proj.coords
Class MercatorUVGCT

java.lang.Object
  extended by com.bbn.openmap.MapHandlerChild
      extended by com.bbn.openmap.OMComponent
          extended by com.bbn.openmap.proj.coords.AbstractGCT
              extended by com.bbn.openmap.proj.coords.MercatorUVGCT
All Implemented Interfaces:
LightMapHandlerChild, GeoCoordTransformation, PropertyConsumer, java.beans.beancontext.BeanContextChild, java.beans.beancontext.BeanContextMembershipListener, java.util.EventListener
Direct Known Subclasses:
MercatorUVGCT.OSM, MercatorUVGCT.TMS

public abstract class MercatorUVGCT
extends AbstractGCT
implements GeoCoordTransformation

Convert between mercator uv coordinates that are used for map tiles and lat/lon degrees. Setting the zoom level sets the number of expected pixels in the Mercator uv projection in both directions.


Nested Class Summary
static class MercatorUVGCT.OSM
           
static class MercatorUVGCT.TMS
           
 
Field Summary
 
Fields inherited from class com.bbn.openmap.OMComponent
i18n, propertyPrefix
 
Fields inherited from class com.bbn.openmap.MapHandlerChild
beanContextChildSupport, isolated
 
Fields inherited from interface com.bbn.openmap.PropertyConsumer
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
 
Constructor Summary
protected MercatorUVGCT(int zoomLevel)
           
 
Method Summary
abstract  java.awt.geom.Point2D forward(double lat, double lon, java.awt.geom.Point2D ret)
           
 int getZoomLevel()
           
abstract  LatLonPoint inverse(double uvx, double uvy, LatLonPoint ret)
           
 void setZoomLevel(int zoomLevel)
           
 
Methods inherited from class com.bbn.openmap.proj.coords.AbstractGCT
forward, inverse
 
Methods inherited from class com.bbn.openmap.OMComponent
getProperties, getPropertyInfo, getPropertyPrefix, setProperties, setProperties, setPropertyPrefix
 
Methods inherited from class com.bbn.openmap.MapHandlerChild
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, findAndInit, findAndUndo, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.bbn.openmap.proj.coords.GeoCoordTransformation
forward, inverse
 

Constructor Detail

MercatorUVGCT

protected MercatorUVGCT(int zoomLevel)
Method Detail

forward

public abstract java.awt.geom.Point2D forward(double lat,
                                              double lon,
                                              java.awt.geom.Point2D ret)
Specified by:
forward in interface GeoCoordTransformation
Specified by:
forward in class AbstractGCT

inverse

public abstract LatLonPoint inverse(double uvx,
                                    double uvy,
                                    LatLonPoint ret)
Specified by:
inverse in interface GeoCoordTransformation
Specified by:
inverse in class AbstractGCT

getZoomLevel

public int getZoomLevel()

setZoomLevel

public void setZoomLevel(int zoomLevel)


Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details