|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.c5corp.c5dem.Dem
com.c5corp.c5dem.DemTable
public class DemTable
Extention of com.c5corp.c5dem.Dem adding a table of UtmCoordinatePairElev objects describing xy coordinates for a Dem. Interpolates UTM coordinates over a java image compatible 2D array of UtmCoordinatePairElev objects, with null values for points not repesented in the DEM grid).
Constructor Summary | |
---|---|
DemTable(java.io.File file)
Constructs a DEM from an input file specified in java.io.File file |
|
DemTable(java.lang.String inputfile)
Constructs a DEM from an input file specified in String inputfile |
|
DemTable(java.net.URL url)
Constructs a DEM from a java.net.URL |
Method Summary | |
---|---|
double |
averageDemElevation()
averageDemElevation() calculates the average elevation of this area. |
void |
convertToVerticalFeet()
covertToVerticalFeet() changes the internal representation of data in the dem from Meters to Feet, (or leaves the units unchanged if they are already in Feet. |
void |
convertToVerticalMeters()
covertToVerticalMeters() changes the internal representation of data in the dem from Feet to Meters, (or leaves the units unchanged if they are already in Meters. |
short |
get_elevation_unit()
public short get_elevation_unit() is a method of Dem.java that is overridden in this class. |
PreciseUTMcoordPair |
getNEcorner()
Returns the NE corner of the table |
PreciseUTMcoordPair |
getNWcorner()
Returns the NW corner of the table |
UtmCoordinatePairElev |
getPoint(int easting,
int northing)
Teturns a UtmCoordinatePairElev object from table representing the closest point (snapped to grid) to the easting and northing provided. |
UtmCoordinatePairElev |
getPoint(java.awt.Point point)
public UtmCoordinatePairElev getUTMdataPoint(Point point) returns a UtmCoordinatePairElev object from table representing the Point. |
UtmCoordinatePairElev |
getPoint(short x,
short y)
public UtmCoordinatePairElev getUTMdataPoint(short x, short y) returns a UtmCoordinatePairElev object from table representing the x and y. |
UtmCoordinatePairElev[][] |
getPoints(int easting,
int northing,
int easting_meters,
int northing_meters)
returns a UtmCoordinatePairElev[][] object where the sw_corner is easting, northing, the size of easting_meters east and northing_meters north. |
PreciseUTMcoordPair |
getSEcorner()
Returns the SE corner of the table |
PreciseUTMcoordPair |
getSWcorner()
Returns the SW corner of the table |
UtmCoordinatePairElev[][] |
getTable()
Returns the table of UTMcoodinatePairElev points for the dem. |
UtmCoordinatePairElev |
getUTMdataPoint(int x,
int y)
Deprecated. This method is deprecated, its functionality replaced by the public UtmCoordinatePairElev getPoint(short x, short y) method. |
UtmCoordinatePairElev |
getUTMdataPoint(java.awt.Point point)
Deprecated. This method is deprecated, its functionality replaced by the public UtmCoordinatePairElev getPoint(Point point) method. |
java.awt.Point |
getXYofUtmPoint(UtmCoordinatePair target)
Returns a java.awt.Point describing the x,y location of the given UtmCoordinatePair target within the tabular representation of the points. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DemTable(java.net.URL url)
url
- The URL for a DEMURL
public DemTable(java.io.File file)
java.io.File file
file
- a DEM Filepublic DemTable(java.lang.String inputfile)
String inputfile
inputfile
- String containing a path to the DEMMethod Detail |
---|
public UtmCoordinatePairElev[][] getTable()
public UtmCoordinatePairElev[][] getPoints(int easting, int northing, int easting_meters, int northing_meters)
easting
- the UTM easting valuenorthing
- the UTM norting valueeasting_meters
- meters to the eastnorthing_meters
- meters to the north
public UtmCoordinatePairElev getUTMdataPoint(java.awt.Point point)
public UtmCoordinatePairElev getPoint(Point point)
method.
point
-
public UtmCoordinatePairElev getUTMdataPoint(int x, int y)
public UtmCoordinatePairElev getPoint(short x, short y) method.
x
- x valuey
- y value
public UtmCoordinatePairElev getPoint(java.awt.Point point)
point
- UtmCoordinatePairElev object from table representing the Point
public UtmCoordinatePairElev getPoint(short x, short y)
x
- x valuey
- y value
public UtmCoordinatePairElev getPoint(int easting, int northing)
easting
- the UTM eastingnorthing
- the UTM northing
public PreciseUTMcoordPair getSWcorner()
public PreciseUTMcoordPair getNWcorner()
public PreciseUTMcoordPair getNEcorner()
public PreciseUTMcoordPair getSEcorner()
public short get_elevation_unit()
public void convertToVerticalFeet() and
public void convertToVerticalMeters() toggle this value to represent
feet (1) or meters (2) after converting the values in the table to
the indicated unit.
- Overrides:
get_elevation_unit
in class Dem
- Returns:
- Data Element 9 - Code defining unit of measure for elevation coordinates throughout the file
public java.awt.Point getXYofUtmPoint(UtmCoordinatePair target)
target
-
getTable()
public void convertToVerticalFeet()
public short get_elevation_unit(), a method of Dem.java that
is overridden in this class. public short get_elevation_unit() returns
1 if the vertical units are in feet.
public void convertToVerticalMeters()
public short get_elevation_unit(), a method of Dem.java that
is overridden in this class. public short get_elevation_unit() returns
2 if the vertical units are in Meters.
public double averageDemElevation()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |