Class RasterMapEntry.PinPoint

java.lang.Object
org.ka2ddo.yaac.gui.rastermap.RasterMapEntry.PinPoint
All Implemented Interfaces:
Serializable
Enclosing class:
RasterMapEntry

public static class RasterMapEntry.PinPoint extends Object implements Serializable
This class contains one association between a pixel in the image and its latitude/longitude position on the planet.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    Raster image pixel X coordinate.
    int
    Raster image pixel Y coordinate.
    double
    Corresponding latitude in fractional degrees North.
    double
    Corresponding longitude in fractional degrees East.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Construct an empty PinPoint.
    PinPoint(int ix, int iy, double mLat, double mLon)
    Construct a PinPoint with raster image to lat/lon mapping.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Load this PinPoint from a binary file.
    Returns a string representation of the object.
    void
    Save this PinPoint to a binary file.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • ix

      public int ix
      Raster image pixel X coordinate.
    • iy

      public int iy
      Raster image pixel Y coordinate.
    • mLat

      public double mLat
      Corresponding latitude in fractional degrees North.
    • mLon

      public double mLon
      Corresponding longitude in fractional degrees East.
  • Constructor Details

    • PinPoint

      public PinPoint()
      Construct an empty PinPoint.
    • PinPoint

      public PinPoint(int ix, int iy, double mLat, double mLon)
      Construct a PinPoint with raster image to lat/lon mapping.
      Parameters:
      ix - raster image pixel X coordinate
      iy - raster image pixel Y coordinate
      mLat - corresponding latitude in fractional degrees North
      mLon - corresponding longitude in fractional degrees East
  • Method Details

    • read

      public void read(DataInput dis) throws IOException
      Load this PinPoint from a binary file.
      Parameters:
      dis - DataInput to read the PinPoint from
      Throws:
      IOException - if read fails
    • write

      public void write(DataOutput dos) throws IOException
      Save this PinPoint to a binary file.
      Parameters:
      dos - DataOutput to write the PinPoint to
      Throws:
      IOException - if write fails
    • toString

      public String toString()
      Returns a string representation of the object.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the object.