public class ShiftedProjecting extends java.lang.Object implements Projecting
| Modifier and Type | Field and Description |
|---|---|
private Projecting |
base |
private EastNorth |
offset |
| Constructor and Description |
|---|
ShiftedProjecting(Projecting base,
EastNorth offset)
Create a new
ShiftedProjecting |
| Modifier and Type | Method and Description |
|---|---|
LatLon |
eastNorth2latlonClamped(EastNorth en)
Convert a east/north coordinate to the
LatLon coordinate. |
Projection |
getBaseProjection()
Gets the base projection instance used.
|
java.util.Map<ProjectionBounds,Projecting> |
getProjectingsForArea(ProjectionBounds area)
Returns an map or (subarea, projecting) paris that contains projecting instances to convert the coordinates inside the given area.
|
EastNorth |
latlon2eastNorth(ILatLon ll)
Convert from lat/lon to easting/northing.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCacheKey, latlon2eastNorthprivate final Projecting base
public ShiftedProjecting(Projecting base, EastNorth offset)
ShiftedProjectingbase - The base to useoffset - The offset to move base. Subtracted when converting lat/lon->east/north.public EastNorth latlon2eastNorth(ILatLon ll)
ProjectingILatLon interface.latlon2eastNorth in interface Projectingll - the geographical point to convert (in WGS84 lat/lon)as shorthand.public LatLon eastNorth2latlonClamped(EastNorth en)
ProjectingLatLon coordinate.
This method clamps the lat/lon coordinate to the nearest point in the world bounds.eastNorth2latlonClamped in interface Projectingen - east/northpublic Projection getBaseProjection()
ProjectinggetBaseProjection in interface Projectingpublic java.util.Map<ProjectionBounds,Projecting> getProjectingsForArea(ProjectionBounds area)
ProjectinggetProjectingsForArea in interface Projectingarea - The base areaProjectionBounds instances mapped to the Projecting object to use for that area.