Class SessionReader.SessionViewportData

    • Constructor Detail

      • SessionViewportData

        public SessionViewportData​(LatLon center,
                                   double meterPerPixel)
        Construct a new SessionViewportData.
        Parameters:
        center - the lat/lon coordinates of the screen center
        meterPerPixel - scale in meters per pixel
    • Method Detail

      • getCenter

        public LatLon getCenter()
        Get the lat/lon coordinates of the screen center.
        Returns:
        lat/lon coordinates of the screen center
      • getScale

        public double getScale()
        Get the scale in meters per pixel.
        Returns:
        scale in meters per pixel
      • getEastNorthViewport

        public ViewportData getEastNorthViewport​(Projection proj)
        Convert this viewport data to a ViewportData object (with projected coordinates).
        Parameters:
        proj - the projection to convert from lat/lon to east/north
        Returns:
        the corresponding ViewportData object