j3d.org Code

org.j3d.loaders.dem
Class DEMTypeBRecord

java.lang.Object
  extended by org.j3d.loaders.dem.DEMRecord
      extended by org.j3d.loaders.dem.DEMTypeBRecord

public class DEMTypeBRecord
extends DEMRecord

Representation of the DEM File format Type B record.

The definition of the file format can be found at: http://edcwww.cr.usgs.gov/glis/hyper/guide/1_dgr_dem

Version:
$Revision: 1.1 $
Author:
Justin Couch

Field Summary
 int columnNumber
          The column ID of DEM profile stored in this record (element 1).
 int[] elevations
          The elevation values stored in this record (element 6).
 double firstPositionX
          The X coord of the ground planimetric coordinates of the first elevation of this profile (element 3).
 double firstPositionY
          The Y coord of the ground planimetric coordinates of the first elevation of this profile (element 3).
 boolean isDataOnly
          Flag to say if this record only contains elevation values or if it is the header record for this column.
 double localElevationDatum
          Elevation of the local datum for the profile (element 4).
 double maxElevation
          Maximum elevation of this profile (element 5).
 double minElevation
          Minimum elevation of this profile (element 5).
 int numColumns
          The number of columns covered by this record (element 2).
 int numRows
          The number of rows covered by this record (element 2).
 int rowNumber
          The row ID that this record belongs to (element 1).
 
Fields inherited from class org.j3d.loaders.dem.DEMRecord
ARC_SECONDS, EASTING, FEET, METERS, NORTHING, RADIANS, X, Y, Z
 
Constructor Summary
DEMTypeBRecord()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isDataOnly

public boolean isDataOnly
Flag to say if this record only contains elevation values or if it is the header record for this column. If this is data only, then none of the other values will be set, except the elevation points.


rowNumber

public int rowNumber
The row ID that this record belongs to (element 1). Starts at 1.


columnNumber

public int columnNumber
The column ID of DEM profile stored in this record (element 1). Starts at 1.


numRows

public int numRows
The number of rows covered by this record (element 2).


numColumns

public int numColumns
The number of columns covered by this record (element 2).


firstPositionX

public double firstPositionX
The X coord of the ground planimetric coordinates of the first elevation of this profile (element 3).


firstPositionY

public double firstPositionY
The Y coord of the ground planimetric coordinates of the first elevation of this profile (element 3).


localElevationDatum

public double localElevationDatum
Elevation of the local datum for the profile (element 4). The values are in the units of measure given by element 9 of the Type A record in this file.


minElevation

public double minElevation
Minimum elevation of this profile (element 5). The values are in the units of measure given by element 9 in logical record type A and are the algebraic result of the method outlined in element 6 of this record.


maxElevation

public double maxElevation
Maximum elevation of this profile (element 5). The values are in the units of measure given by element 9 in logical record type A and are the algebraic result of the method outlined in element 6 of this record.


elevations

public int[] elevations
The elevation values stored in this record (element 6). Elevations are expressed in the units of resolution from element 15 of record type A. A value in this array would be multiplied by the "z" spatial resolution (element 15, record type A) "and added to the " elevation oflocal datum for the profile (element 4 of this record) to obtain the elevation for the point.

Constructor Detail

DEMTypeBRecord

public DEMTypeBRecord()

j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org