epanet.de / DC Water Design Extension / Manual
Basic quality control steps. These should applied e.g. when ArcView reports problems like "Segmentation violation".
Duplicate shapes often cause problems because they disturb the line-node topology. The "Find Duplicate Shapes" Extension can be used to identify and eliminate duplicate shapes.
The "Find Duplicate Shapes" Extension is available from http://www.jennessent.com.
Example 3.4. Find duplicate pipes
Load the "Find Duplicate Shapes" Extension
Open a view
Add the pipes theme to the view.
Click the button.
Select the pipes theme from the list.
Select dc_id as the ID field.
Click the button.
Select "Shapes are identical"
Click the button.
The extension can add a new field
(Set_ID) identifying sets
of duplicate shapes. This can be used to delete duplicates. When
asked if such a field should be added, click
.
Review the generated report. If there are duplicates, activate the pipes theme.
Select → from the table.
Select → from the menu.
Select the Set_ID
field.
Select → from the menu.
Review the duplicate records. Delete duplicates in such a way that each Set_ID only appears once.
Select → from the menu.
NULL values often cause problems and should be avoided wherever possible.
Shape fields as well as other fields in the table can contain NULL values. The following example shows how to delete NULL shapes, however, identifying NULL values in other fields follows the same pattern.
Example 3.5. Delete NULL shapes
Open the table of the shapefile to check.
Select the → from the menu.
Enter the following formula:
[Shape].isNull
Click the button.
Close the query dialog
If records have been selected, promote them by selecting → from the menu.
Review diameter and length to see if important pipes have been lost. Delete those records with NULL shapes.
Corrupted shapefiles will cause errors upon opening or editing in ArcView. The Shapechk command can be used to fix those shapefiles.
Shapechk is available on the internet: http://www.geocities.com/SiliconValley/Haven/2295/shapechk.zip.
Example 3.6. Fix pipes.shp corruption
Start Shapechk.
Click on the button.
Select the shapefile you want to check.
Click the button.
Click the button.
If asked to delete the existing index files, answer . Remember to rebuild the spatial index files using ArcView afterwards.
Click the button. Read the generated report and follow the instructions.
The following message indicates that there are no problems:
DBF tallied exactly with .dbf header and
shapefile