es.prodevelop.gvsig.mobile.fmap.proj
Interface IProjection

All Known Implementing Classes:
Projection

public interface IProjection

Basic interface for any projection class.

Author:
jldominguez

Method Summary
 java.lang.String getAbrev()
           
 double getMetersPerProjUnit()
           
 double getScale(double minX, double maxX, double width, double dpi)
          Computes the current scale
 java.lang.String getUnitsAbbrev()
           
 

Method Detail

getScale

public double getScale(double minX,
                       double maxX,
                       double width,
                       double dpi)
Computes the current scale

Parameters:
minX - min x value (map units)
maxX - max x value (map units)
width - map width in pixels
dpi - dots per inch
Returns:
the current scale (return 1000 if current scale is 1:1000)

getAbrev

public java.lang.String getAbrev()
Returns:
the projection EPSG abbreviation

getUnitsAbbrev

public java.lang.String getUnitsAbbrev()
Returns:
the abbreviation of the unit used ("m", "º", etc)

getMetersPerProjUnit

public double getMetersPerProjUnit()
Returns:
the length of 1 map unit.