Class NetTinMap

java.lang.Object
hec.map.MapObject
hec.map.nettin.NetTinMap
All Implemented Interfaces:
ElevationMap, MapObjectInterface, Serializable

public class NetTinMap extends MapObject implements Serializable, MapObjectInterface, ElevationMap
See Also:
  • Constructor Details

    • NetTinMap

      public NetTinMap(MapIdentifier id)
    • NetTinMap

      public NetTinMap()
  • Method Details

    • load

      public void load() throws IOException
      Description copied from interface: MapObjectInterface
      Method to tell the Map Object to load its data into memory
      Specified by:
      load in interface MapObjectInterface
      Specified by:
      load in class MapObject
      Throws:
      IOException - Description of Exception
    • unload

      public void unload()
      Description copied from interface: MapObjectInterface
      Method to tell the Map Object to unload, because the map is done
      Specified by:
      unload in interface MapObjectInterface
      Specified by:
      unload in class MapObject
    • loadAsciiWriteBin

      protected void loadAsciiWriteBin(HecFile fileIn, HecFile fileOut)
    • loadBin

      public void loadBin(HecFile fileIn)
    • getNodes

      public NodeContainer getNodes()
    • getEdges

      public EdgeContainer getEdges()
    • getTriangles

      public TriangleContainer getTriangles()
    • getMaximumElevation

      public double getMaximumElevation()
      Specified by:
      getMaximumElevation in interface ElevationMap
    • getMinimumElevation

      public double getMinimumElevation()
      Specified by:
      getMinimumElevation in interface ElevationMap
    • getNoDataValue

      public double getNoDataValue()
      Description copied from interface: ElevationMap
      Returns the value that represents an UNDEFINED elevation in the map.
      Specified by:
      getNoDataValue in interface ElevationMap
    • getElevation

      public float[] getElevation(double[] northing, double[] easting)
      Description copied from interface: ElevationMap
      Retruns an array of elevations for an array of northin/easting points. Northing/Easting array values are paired northing[0],easting[0], etc to make one point. Throws an invalid value exception if the northing/easting arrays are not the same size.
      Specified by:
      getElevation in interface ElevationMap
      Returns:
      array of elevation points. The elevation value elevation[n] was derived using the point (easting[n],northing[n]).
    • getElevation

      public float getElevation(WorldPt pt)
      Description copied from interface: ElevationMap
      Returns the elevation at the given World point. If there is no elvation defined, the the "No Data Value" is returned.
      Specified by:
      getElevation in interface ElevationMap
    • crop

      public void crop(WorldRect wr)
      temp(?) method to crop tin and save to new file
    • mapIdentifierEquals

      public boolean mapIdentifierEquals(MapIdentifier mapid)
      check to see if the Map specified by the MapIdentifier mapid is the same map as this one. nettin files create a binary version of the ascii file so the test needs to check both the .net and the .netbin extensions.
      Overrides:
      mapIdentifierEquals in class MapObject
      Parameters:
      mapid -
      Returns:
      true if the mapid references the same map file as this map.