jwo.landserf.process
Class SurfNetwork

java.lang.Object
  |
  +--jwo.landserf.process.SurfNetwork

public class SurfNetwork
extends Object

Calculates a Wolf-Pfaltz Surface Network based on rasters containing elevation and surface features.

Version:
1.8.0, 26th April, 2002.
Author:
Jo Wood

Constructor Summary
SurfNetwork(RastSurf elev, RastSurf feat, float easting, float northing, int type)
          Creates a ridge or channel from the given starting position over the given surface with the given slope tolerance.
SurfNetwork(RastSurf elev, RastSurf feat, GUIFrame guiFrame)
          Sets up a surface network for storing surface topology.
 
Method Summary
 void addPath(float easting, float northing, int type)
          Adds a given path from the given coordinates to the surface network.
 void findNetwork()
          Creates a surface network by (i) identifying surface specific passes; (ii) tracing ridge lines between passes in peaks and channel lines between passes and pits.
 GraphNetwork getMSN()
           
 VectorMap getVectorMap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SurfNetwork

public SurfNetwork(RastSurf elev,
                   RastSurf feat,
                   float easting,
                   float northing,
                   int type)
Creates a ridge or channel from the given starting position over the given surface with the given slope tolerance.

Parameters:
elev - Raster containing surface elevation.
feat - Raster containing feature or blank surface.
easting - Easting of starting position of ridge/channel.
northing - Northing of starting position of ridge/channel.
type - Type of feature to trace. Either SurfParam.RIDGE or SurfParam.CHANNEL.

SurfNetwork

public SurfNetwork(RastSurf elev,
                   RastSurf feat,
                   GUIFrame guiFrame)
Sets up a surface network for storing surface topology. It stores pits, passes and peaks as points, and joins them together with channels and ridges (lines). Based on Pfaltz (1976) and Wolf (1992) surface networks.

Parameters:
elev - Raster containing surface elevation.
feat - Raster containing surface features.
Method Detail

findNetwork

public void findNetwork()
Creates a surface network by (i) identifying surface specific passes; (ii) tracing ridge lines between passes in peaks and channel lines between passes and pits.


addPath

public void addPath(float easting,
                    float northing,
                    int type)
Adds a given path from the given coordinates to the surface network.

Parameters:
easting - Easting of starting position of ridge/channel.
northing - Northing of starting position of ridge/channel.

getVectorMap

public VectorMap getVectorMap()

getMSN

public GraphNetwork getMSN()