public interface Projecting
LatLon coordinates.
Each instance is backed by a base projection but may e.g. offset the resulting position.
| 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.
|
default java.lang.Object |
getCacheKey()
Gets the object used as cache identifier when caching results of this projection.
|
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.
|
default EastNorth |
latlon2eastNorth(LatLon ll)
Convert from lat/lon to easting/northing.
|
default EastNorth latlon2eastNorth(LatLon ll)
This method exists to not break binary compatibility with old plugins
ll - the geographical point to convert (in WGS84 lat/lon)ILatLon.getEastNorth(Projecting)EastNorth latlon2eastNorth(ILatLon ll)
ILatLon interface.ll - the geographical point to convert (in WGS84 lat/lon)as shorthand.LatLon eastNorth2latlonClamped(EastNorth en)
LatLon coordinate.
This method clamps the lat/lon coordinate to the nearest point in the world bounds.en - east/northProjection getBaseProjection()
java.util.Map<ProjectionBounds,Projecting> getProjectingsForArea(ProjectionBounds area)
area - The base areaProjectionBounds instances mapped to the Projecting object to use for that area.default java.lang.Object getCacheKey()