Package org.ka2ddo.yaac.gui.rastermap
Class RasterMapEntry.PinPoint
java.lang.Object
org.ka2ddo.yaac.gui.rastermap.RasterMapEntry.PinPoint
- All Implemented Interfaces:
Serializable
- Enclosing class:
- RasterMapEntry
This class contains one association between a pixel in the image and its latitude/longitude
position on the planet.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
ix
public int ixRaster image pixel X coordinate. -
iy
public int iyRaster image pixel Y coordinate. -
mLat
public double mLatCorresponding latitude in fractional degrees North. -
mLon
public double mLonCorresponding 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 coordinateiy
- raster image pixel Y coordinatemLat
- corresponding latitude in fractional degrees NorthmLon
- corresponding longitude in fractional degrees East
-
-
Method Details
-
read
Load this PinPoint from a binary file.- Parameters:
dis
- DataInput to read the PinPoint from- Throws:
IOException
- if read fails
-
write
Save this PinPoint to a binary file.- Parameters:
dos
- DataOutput to write the PinPoint to- Throws:
IOException
- if write fails
-
toString
Returns a string representation of the object.
-