Class ShiftedProjecting
java.lang.Object
org.openstreetmap.josm.data.projection.ShiftedProjecting
- All Implemented Interfaces:
Projecting
This is a projecting instance that shifts the projection by a given eastnorth offset.
- Since:
- 10805
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionShiftedProjecting(Projecting base, EastNorth offset) Create a newShiftedProjecting -
Method Summary
Modifier and TypeMethodDescriptionConvert a east/north coordinate to theLatLoncoordinate.Gets the base projection instance used.Returns an map or (subarea, projecting) paris that contains projecting instances to convert the coordinates inside the given area.Convert from lat/lon to easting/northing.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openstreetmap.josm.data.projection.Projecting
getCacheKey, latlon2eastNorth
-
Field Details
-
base
-
offset
-
-
Constructor Details
-
ShiftedProjecting
Create a newShiftedProjecting- Parameters:
base- The base to useoffset- The offset to move base. Subtracted when converting lat/lon → east/north.
-
-
Method Details
-
latlon2eastNorth
Description copied from interface:ProjectingConvert from lat/lon to easting/northing. This method uses the newerILatLoninterface.- Specified by:
latlon2eastNorthin interfaceProjecting- Parameters:
ll- the geographical point to convert (in WGS84 lat/lon)- Returns:
- the corresponding east/north coordinates
- See Also:
-
eastNorth2latlonClamped
Description copied from interface:ProjectingConvert a east/north coordinate to theLatLoncoordinate. This method clamps the lat/lon coordinate to the nearest point in the world bounds.- Specified by:
eastNorth2latlonClampedin interfaceProjecting- Parameters:
en- east/north- Returns:
- The lat/lon coordinate.
-
getBaseProjection
Description copied from interface:ProjectingGets the base projection instance used. This may be the same as this one or a different one if this one is translated in east/north space.- Specified by:
getBaseProjectionin interfaceProjecting- Returns:
- The projection.
-
getProjectingsForArea
Description copied from interface:ProjectingReturns an map or (subarea, projecting) paris that contains projecting instances to convert the coordinates inside the given area. This can be used by projections to support continuous projections. It is possible that the area covered by the map is bigger than the one given as area. There may be holes.- Specified by:
getProjectingsForAreain interfaceProjecting- Parameters:
area- The base area- Returns:
- a map of non-overlapping
ProjectionBoundsinstances mapped to theProjectingobject to use for that area.
-