Copyright © 2004 - 2006 DORSCH Consult
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is available from the Free Software Foundation (http://www.gnu.org).
$Date: 2006-07-22 10:30:39 +0200 (Sat, 22 Jul 2006) $
Table of Contents
Table of Contents
The DC Processing Extension provides several functions to process and convert data in ArcView 3.*.
The DC Processing Extension is available from http://dcwaterdesign.sourceforge.net. It is free software released under the terms of the GNU Lesser General License (LGPL) - the full source code is available (Open Source).
This manual describes version 1.2.9 of the DC Processing Extension.
A summary of changes in the different versions of the DC Processing Extension.
New function "Flip End Lines". See Section 1.1.23, “Flip End Lines”.
New function "Extend Lines" See Section 1.1.24, “Extend Lines”.
Bug fixes and improvements for the "Classify Node Connections" function.
Improved and extended documentation.
New function "Create Portable Project"
using a script by Juergen Evert (<JurgenEvert@aol.com>
).
See Section 1.3.1, “Create Portable Project”.
Bug fixes for connection classification.
Updated documentation
Sample dataset to test connection detail classification
in the sample
folder of the source tarball.
(Thanks to Ratiba Makansi)
Robustness improvements for connection classification and angle calculation.
Bug fix for the connection classification (script wasn't compiled).
ArcView version 3.0, 3.1, 3.2 or 3.3 is required in order to use the DC Processing Extension.
Some functions require the Spatial Analyst or 3D Analyst extensions.
How to install the DC Processing Extension using either the installer or manually.
The extension has to be loaded to your ArcView project before you can use it.
Load the Extension into ArcView (
-> )In the View GUI, there will be a new menu called "DC Processing" (If necessary, open a view to see it).
In additon, there will be a new menus called "DC Processing" in the Project and Table GUIs.
For more information on Extensions, see your ArcView Documentation.
Table of Contents
The functions provided by the DC Processing Extension.
Functions added to the View GUI by the extension.
allows to split a polylines theme by another polyline theme.
Activate two polyline themes. Start editing of the theme you want to split and select
from the menu.All attributes will be copied ignoring split rules so that you'll have to update shape related attributes manually.
allows to split a polyline theme by a point theme.
Make sure that the points are properly snapped.
Remember to set the split rules or update your shape related attributes after splitting.
Extract vertices from lines.
takes a polyline theme and creates a new point theme from its vertices.
All the attributes of the line are copied to the respecting points.
Useful to generate a DTM from contour lines, as the Spatial Analyst and 3D Analyst only take point data as DTM input.
allows the user to create 2-vertex-lines (like in a sewer network) from a point theme with unique IDs and a table (e.g. a DBF file) which contains all the line information: start node ID and end node ID.
The table should contain the following fields:
From_ID
To_ID
Diameter
The point theme should contain the following fields:
Nodeid
Node_Z
With
you can convert a 3D shapefile to a 2D shapefile. The dropped z-value will be added to a new attribute field. This way, it doesn't get lost. 3D shapes are not editable with the current ArcView versions.Choose "Create Center Points from Polygons" in the
menu.Choose the polygon theme you want to extract the center points from.
Enter the name of the new point theme.
All the attributes of the polygon theme will be copied to respective center points.
creates a new polyline theme containing the boundaries of the given polygon theme. The user is asked for a polygon theme and the name of the new polyline theme.
reads the grid values for every point in a point theme and stores it in a numerical field of the point table.
Important | |
---|---|
This function requires the Spatial Analyst Extension. |
creates a new point theme, where the points are located at the center of the respecting multipoint. All the attributes are copied.
The user is asked to select a multipoint theme from the current view and the output shapefile name.
Create a polygon theme containing square polygons from a point theme containing the centers of the polygons.
The user is prompted to enter the square length. All the attributes are copied.
Create a polyline theme containing cross-shaped polylines from a point theme containing the centers of the crosses.
The user is prompted to enter the cross length.
All the attributes are copied.
Converts the lines in an existing polyline theme to arrows. The arrow will stretch from the first point to the last point of the line.
Create a polygon theme frm a a TIN (Triangular Irregular Network).
Important | |
---|---|
This function requires the 3D Analyst. |
Linear interpolation of point values in a network (line-node topology).
Select polyline and point that form the network from the list of themes in the view.
Select the field to interpolate from the table of the point theme.
The interpolation takes place for all nodes where the value is 0 or NULL and upstream and downstream traces find values for interpolation.
The traces end where the network branches.
Create a new polyline theme by segmentizing an existing polyline theme.
The maximum and minimum segment length has to be specified.
All attributes are copied to the new theme's respective segments.
Lines that are too long will be split up into separate segments, but lines shorter than the minimum segment length will not be concatenated. The concatenation can be performed with the skeletonization function of the DC Water Design Extension..
The minimum segment is used to avoid those short lines that would be created if a line is just a little bit longer than the maximum segment length. If the last segment created by segmentation with the maximum segment length is shorter than the minimum segment length, the last two segments are merged again and split into one segment with the minimum segment length and the remainder.
Calculate angles for those nodes in the network that have one or two lines connected to it.
Node and line theme of the network have to be selected from the list of themes in the view.
A field from the node theme has to be selected to store the calculated node angle.
The angle can be used to rotate symbols (e.g. valves).
In case the two lines connected to a node don't form a straight line, the average of both angles is calculated as a compromise.
Classifies the connection types of different water supply network nodes in order to allow the automatic creation of a BoQ (Bill of Quantities).
The following set of themes is required to use this function:
Line theme (polyline)
Junction theme (point) with the following fields that will be overwritten:
Connection (integer)
DN1 (integer)
DN2 (integer)
DN3 (integer)
Valve theme (point)
The three themes have to be properly snapped (line-node topology).
To use this function, add your network's line, node and valve themes to the view.
Start editing the node theme.
Activate the three themes.
Select
from the menu.You will be asked to provide select a number field from the node theme to store the classification. Please select the "Connection" field.
To create a BoQ, you'll have to load the classified shapefile to
a relational database and execute the SQL scripts
create_dcboq_ddl.sql
and
fitting_boq.sql
. The scripts can be found in the
scripts
folder of the DC Processing Extension
source distribution.
The view "PositionView" will contain the BoQ.
A junction with two pipes connected that have the same diameter is not considered a special connection.
Caution | |
---|---|
The function considers every valve that is linked by one pipe to a junction by only one pipe to be part of the connection at the junction. The length of the pipe is not considered. To prevent valves from being accounted two times, you may have to introduce additional junctions to correctly assign the valve to a connection. Valves that are surrounded by junctions that are no special connections are not accounted for. The function assumes that your network only consists of "valid" connections. If your network contains invalid connection types this will most probably lead to classification errors. |
Note | |
---|---|
The function uses a snapping radius of 0.01. |
Flip all lines connected to end nodes (end lines) in a consistent direction. This is useful e.g. to determine the correct node angle for end caps in water supply networks.
All end lines will end at the end node.
Note | |
---|---|
Isolated lines (those lines having two end nodes) will be flipped randomly. |
Note | |
---|---|
This function uses a snapping radius of 0.01 map units. |
Extend selected lines by scaling around the end point. The scale factor is determined in such a way that the length increased by a a certain length. This length is specified in map units.
To use the function, start editing a line theme and select
from the menu.You will be asked to specify the length in map units by which the line shall be extended.
This function is most useful for straight lines with two vertices.
Tip | |
---|---|
Also allows negative scaling (shorten lines). When shortening lines make sure that the line length is greater than the length by which the line should be shortened. |
Functions added to the table GUI by the extension.
creates a unique ID for a selected field of a selcted theme in the active view.
The field type may be number or string.
Like the ArcView field calculator,
will only work on selected rows of a table which is editable. If there's no selection, the function will work on all records of the table.creates a unique ID for lines in a network. The IDs are based on the position of the lines in the network tree.
Sequential lines will be numbered in sequential order (1,2,3...). Branch lines will be indicated by "." and a new numbering starting from one: 4.1, 4,2, 4.2.1...
In case of loops, it is unpredictable at which point the loop will be closed. The IDs may look strange in these areas.
To use the function, have a string field of appropriate length ready.
Use the calculator to assign the value "" to all records.
Select your starting line and assign the value "1".
Make sure that the table is still editable and your field is selected.
From the
menu, select .Functions added to the project GUI by the extension.
Read a projectfile and copy all theme files (Shapefiles, images, images of catalogs, tables, etc.) to a separate folder.
Creates a new project file with relative paths.
If you save the new project in Arcview it gets absolute paths and will not be portable any more.
You can use the project on any Computer, copy the new projectfile to a laptop or burn it on CD.
Remove Extensions before, the extension file will be copied too, but may not work correctly.
Tip | |
---|---|
Reset the extensions to the system defaults. |
Caution | |
---|---|
Check for image catalogs, they may have a size of several Gigabytes. |
Check the layouts which aren't connected to views.
Note | |
---|---|
Please provide feedback regarding this function to
Juergen Evert |
Projection files are a feature introduced by ArcView 3.2 and ArcInfo 8. They are important when it comes to loading data into Geodatabases. The menu item "Copy Projection Files" lets the user select one projection file which will be copied to all the shapefiles in a folder and its subfolder which don't have a projection file.