public static class SessionReader.SessionViewportData extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private LatLon |
center |
private double |
meterPerPixel |
Constructor and Description |
---|
SessionViewportData(LatLon center,
double meterPerPixel)
Construct a new SessionViewportData.
|
Modifier and Type | Method and Description |
---|---|
LatLon |
getCenter()
Get the lat/lon coordinates of the screen center.
|
ViewportData |
getEastNorthViewport(Projection proj)
Convert this viewport data to a
ViewportData object (with projected coordinates). |
double |
getScale()
Get the scale in meters per pixel.
|
private final double meterPerPixel
public SessionViewportData(LatLon center, double meterPerPixel)
center
- the lat/lon coordinates of the screen centermeterPerPixel
- scale in meters per pixelpublic LatLon getCenter()
public double getScale()
public ViewportData getEastNorthViewport(Projection proj)
ViewportData
object (with projected coordinates).proj
- the projection to convert from lat/lon to east/north