public interface Projection extends Projecting
Modifier and Type | Method and Description |
---|---|
LatLon |
eastNorth2latlon(EastNorth en)
Convert from easting/norting to lat/lon.
|
double |
getDefaultZoomInPPD()
The default scale factor in east/north units per pixel
(
NavigatableComponent.getState() )). |
ProjectionBounds |
getEastNorthBoundsBox(ProjectionBounds box,
Projection boxProjection)
Get a box in east/north space of this projection, that fully contains an
east/north box of another projection.
|
Bounds |
getLatLonBoundsBox(ProjectionBounds pb)
Find lat/lon-box containing all the area of a given rectangle in
east/north space.
|
double |
getMetersPerUnit()
Get the number of meters per unit of this projection.
|
ProjectionBounds |
getWorldBoundsBoxEastNorth()
Get an approximate EastNorth box around the lat/lon world bounds.
|
Bounds |
getWorldBoundsLatLon()
Get the bounds of the world.
|
boolean |
switchXY()
Does this projection natural order of coordinates is North East,
instead of East North
|
java.lang.String |
toCode()
Return projection code.
|
java.lang.String |
toString()
Describe the projection in one or two words.
|
void |
visitOutline(Bounds bounds,
java.util.function.Consumer<EastNorth> visitor)
Visit points along the edge of this bounds instance.
|
eastNorth2latlonClamped, getBaseProjection, getCacheKey, getProjectingsForArea, latlon2eastNorth, latlon2eastNorth
double getDefaultZoomInPPD()
NavigatableComponent.getState()
)).
FIXME: misnomerLatLon eastNorth2latlon(EastNorth en)
en
- the geographical point to convert (in projected coordinates)java.lang.String toString()
toString
in class java.lang.Object
java.lang.String toCode()
Bounds getWorldBoundsLatLon()
ProjectionBounds getWorldBoundsBoxEastNorth()
getWorldBoundsLatLon()
. The lat/lon bounds need not be a
rectangular shape in east/north space. This method returns a box that
contains this shape.Bounds getLatLonBoundsBox(ProjectionBounds pb)
pb
- the rectangle in projected spacepb
ProjectionBounds getEastNorthBoundsBox(ProjectionBounds box, Projection boxProjection)
box
- the east/north box given in projection boxProjection
boxProjection
- the projection of box
double getMetersPerUnit()
boolean switchXY()
void visitOutline(Bounds bounds, java.util.function.Consumer<EastNorth> visitor)
Depending on the shape in east/north space, it may simply visit the 4 corners or (more generally) several points along the curved edges.
bounds
- the lat/lon rectangle to tracevisitor
- a function to call for the points on the edge.