Extract channel widths
•RivEX can generate river cross sections (channel widths) for any point on the network if your datasets conform to the following specifications:
o Your river network was created from a polygon layer such that the river network represents the "skeleton" of the polygon.
o You have the polygon layer that represents the river. Each polygon should have a unique numeric ID.
o Your locations where you wish to compute the cross section are snapped points with a unique numeric ID.
If your network was digitised by hand or is a vector network generated from a raster stream network then these networks will not work with this tool as you need the polygon representation of a river and the river network must be the central "skeleton" of the polygon layer.
•To help you understand why this tool works best with river networks that are generated from polygons I will discuss the issue using a UK based example. In the UK, the national mapping agency Ordnance Survey have MasterMap, an extremely detail dataset which provides a digital framework for all other UK datasets. One of it's layers is the Topographic layer and a component of this are polygons that represent water bodies (lakes, rivers, ponds, canals etc.). The Environment Agency have used the topographic layer to extract out the centreline and built the Detailed River Network (DRN) of England and Wales. Thus the polylines that make up the river network lie inside the polygon at the centre. It is this spatial relation between the network and the polygon layer that RivEX can use to compute a cross section for any location. In the image below it is clear that the river network (red line) is the topological skeleton of the river polygon and a line perpendicular to this skeleton would generate a sensible cross section.
•When you run the tool you will be presented with dialog below. You need to provide a point layer (which has been snapped to the network) with an unique point ID field, the polygon layer and it's unique ID field. The channel widths output file name should not include the ".shp" extension. You can optionally choose to transfer the widths back to your point layer.
•Click OK causes the tool to validate the inputs and then compute the channel widths. The tool first identifies points that fall within a river polygon. This information is written back to your point dataset as a simple Yes \ No field called InPolygon. If this field already exists then RivEX will create a new field.
•RivEX will also create a field called PolygonID which records the unique polygon ID that the point falls within. If this field already exists then RivEX will create a new field. Only points where InPolygon = "Y" are processed.
•RivEX will then create an empty polyline Shapefile in Output sub-folder in the RivEX_Workspace with the output name you specified. If you have run this tool before then you are likely to have an existing dataset with the same name in the output directory and you will be prompted for its deletion.
•The channel width dataset will have 4 fields: a unique ID (ID), the point ID (PointID), the polygon ID (PolygonID) and the width of the cross section (Width).
•If you have chosen to transfer the channel width lengths back to the point layer then RivEX will attempt to create a new field called ChanWidth. If this field exists then it will be overwritten.
•A typical output is shown below. Points that fell outside the polygons are rejected during processing therefore it is possible to have less channel width lines than there are points.
•The tool works by initially identifying the intersecting polyline and polygon. If it has these two bits of information it continues with processing. RivEX then works out which segment of the polyline the point is intersecting. It then constructs a line 0.001m long at a perpendicular to the segment at the point. It then extends this line from both ends until it touches the polygon boundary thus generating a cross section width.
•A scenario you should be aware of is when your network is built from polygons and lines. In the screen shot below a sampling point on the network falls within the polygon of a larger channel. This point is on a small stream\drain that had no polygon representation but because of it's proximity to the larger channel it is recognised as a point snapped to the network and in a river polygon which is generating an unsuitable cross section. Such cross sections can be identified by sorting the table by width as are they usually much long.