org.cresques.impl.geo
Class Geodetic

java.lang.Object
  extended by org.cresques.impl.geo.Projection
      extended by org.cresques.impl.geo.Geodetic
All Implemented Interfaces:
Cloneable, IProjection

public class Geodetic
extends Projection


Field Summary
static Geodetic hayford
           
 
Fields inherited from class org.cresques.impl.geo.Projection
NORTH, SOUTH
 
Constructor Summary
Geodetic()
           
Geodetic(Ellipsoid eli)
           
 
Method Summary
 Point2D createPoint(double x, double y)
           
 void drawGrid(Graphics2D g, ViewPortData vp)
           
 Point2D fromGeo(Point2D gPt, Point2D pPt)
           
 String getAbrev()
           
 ICoordTrans getCT(IProjection dest)
          Crea un ICoordTrans para transformar coordenadas desde el IProjection actual al dest.
 Rectangle2D getExtent(Rectangle2D extent, double scale, double wImage, double hImage, double mapUnits, double distanceUnits, double dpi)
           
 String getFullCode()
          Devuelve getAbrev() mas los parametros de transformacion si los hay ej.: (EPSG:23030:proj@+proj...@...)
static Geodetic getProjection(Ellipsoid eli)
           
static IProjection getProjectionByName(IDatum eli, String name)
           
 double getScale(double minX, double maxX, double width, double dpi)
           
 Point2D toGeo(Point2D gPt)
           
 
Methods inherited from class org.cresques.impl.geo.Projection
clone, coordToString, createPoint, getDatum, getElliPar, getGridColor, getName, getReproyectionTo, isProjected, setGridColor
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hayford

public static Geodetic hayford
Constructor Detail

Geodetic

public Geodetic()

Geodetic

public Geodetic(Ellipsoid eli)
Method Detail

getAbrev

public String getAbrev()
Specified by:
getAbrev in interface IProjection
Specified by:
getAbrev in class Projection

getProjectionByName

public static IProjection getProjectionByName(IDatum eli,
                                              String name)

getProjection

public static Geodetic getProjection(Ellipsoid eli)

createPoint

public Point2D createPoint(double x,
                           double y)
Specified by:
createPoint in interface IProjection
Specified by:
createPoint in class Projection

toGeo

public Point2D toGeo(Point2D gPt)
Specified by:
toGeo in interface IProjection
Specified by:
toGeo in class Projection
Parameters:
gPt - Punto para pasar a GeoPoint
Returns:

fromGeo

public Point2D fromGeo(Point2D gPt,
                       Point2D pPt)
Specified by:
fromGeo in interface IProjection
Specified by:
fromGeo in class Projection

drawGrid

public void drawGrid(Graphics2D g,
                     ViewPortData vp)
Specified by:
drawGrid in interface IProjection
Specified by:
drawGrid in class Projection

getScale

public double getScale(double minX,
                       double maxX,
                       double width,
                       double dpi)

getCT

public ICoordTrans getCT(IProjection dest)
Description copied from interface: IProjection
Crea un ICoordTrans para transformar coordenadas desde el IProjection actual al dest.

Returns:

getExtent

public Rectangle2D getExtent(Rectangle2D extent,
                             double scale,
                             double wImage,
                             double hImage,
                             double mapUnits,
                             double distanceUnits,
                             double dpi)

getFullCode

public String getFullCode()
Description copied from interface: IProjection
Devuelve getAbrev() mas los parametros de transformacion si los hay ej.: (EPSG:23030:proj@+proj...@...)

Returns:
getAbrev() o getAbrev()+parametros


Copyright © 2004-2013 gvSIG. All Rights Reserved.