> Script Details
Points to Lines
report inappropriate content
Sep 13 2004
Status of work
ArcScripts is intended for the free exchange of scripts and tools related to ESRI software products. Please alert the moderator if this script is a demo, trial-version, or an advertisement for a retail product.
Form driven tool to convert a DBF of X Y & ID values to a polyline shapefile. Polylines are generated and assigned the ID of the points that were used to construct them. The ID can then be used to relate back to other tabular information if desired.
Within each ID grouping, the rows/points must be in the order in which you wish to connect them in the output line.
Option to generate line fragments where each pair of consecutive points with the same ID are a seperate feature, or to generate merged lines where all consecutive points with the same ID are used to construct one continuous line feature.
The input column names are dynamically selected in the form and the ID field can be a string or any numeric type. The output shapefile will have an “ID” field with the same name and type as found in the input DBF file.
Verison 1 of this tool attempted to utilize a delimited text file rather than a DBF table and, although it did work, it was much less dynamic and flexible than Version 2. To convert a delimited text file to a DBF file I suggest using ArcMap. Add a text file with supported delimiters (tab or comma, or see also text, files in the ArcMap help for additional options) as a table or as an event theme, then right-click on the layer in the TOC and choose Data > Export Data… and export the tabular information to a DBF. You can also accomplish this task using MS Excel but be aware of that Excel will not support more than 65536 rows and so will truncate longer tables.
See Points to Lines-v2.doc for installation instructions.
If you want the old version email me and I'll send it to you or post it again.
9-13-04 Version 2.1 bug "Property OleObjectBlob in frmPoints2Lines had an invalid file reference" is fixed. Basic testing in 9.0 and 8.3 successful. (2986)
8-23-04 Version 2.1 released to work in ArcGIS 9.0. 2.1 not tested on ArcGIS 8.3 but it should work. (2857)
4-17-03 Verison 2 uploaded (342)
2-25-03 ORIGINALLY UPLOADED
Resource Data Inc.