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, wait
getCacheKey, latlon2eastNorth
private final Projecting base
public ShiftedProjecting(Projecting base, EastNorth offset)
ShiftedProjecting
base
- The base to useoffset
- The offset to move base. Subtracted when converting lat/lon->east/north.public EastNorth latlon2eastNorth(ILatLon ll)
Projecting
ILatLon
interface.latlon2eastNorth
in interface Projecting
ll
- the geographical point to convert (in WGS84 lat/lon)as shorthand.
public LatLon eastNorth2latlonClamped(EastNorth en)
Projecting
LatLon
coordinate.
This method clamps the lat/lon coordinate to the nearest point in the world bounds.eastNorth2latlonClamped
in interface Projecting
en
- east/northpublic Projection getBaseProjection()
Projecting
getBaseProjection
in interface Projecting
public java.util.Map<ProjectionBounds,Projecting> getProjectingsForArea(ProjectionBounds area)
Projecting
getProjectingsForArea
in interface Projecting
area
- The base areaProjectionBounds
instances mapped to the Projecting
object to use for that area.