Transfers the selected attributes from a polygon dataset to the target polyline dataset. If a polyline intersects the boundary between two polygons, it is split and each part of the polyline gets the attributes of the appropriate polygon. The original attributes of the polylines are updated after splitting using user defined attribute update rules for each field. Address and continuous ranges split rules are supported.
Original polylines overlayed with the polygon dataset
Resulting polylines lebeled with the attributes transferred from the polygons
Expression | Explanation |
---|---|
Function Name | TransferAttributesPolygonsToPolylines |
<input dataset> | A String representing the input layer. Must be of Polyline Type. |
<Reference Dataset> | A String representing the reference layer. Must be of Polygon Type |
<output dataset> | A String - the full name of the output layer. |
{Update Rules} | A String representing a list (separator ";") of fields and update rule for each field. Example: "Field1 AddressRange Field2; Field3 Copy; Field4 Proportion" |
{Transfer Fields} | A String representing a list of the fields which attributes will be transfered. If empty, all polygon attributes will be transfered. |
ETGWPath used in the table below is the full path to ETGWRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETGeo Wizards\ETGWRun.exe")
Language | Syntax |
---|---|
Python | subprocess.call([ETGWPath, "TransferAttributesPolygonsToPolylines", "input dataset", "Reference Dataset", "output dataset", "Update Rules", "Transfer Fields"]) |
.NET using ETGWRun.exe | StartInfo.FileName = ETGWPath StartInfo.Arguments = "TransferAttributesPolygonsToPolylines" "input dataset" "Reference Dataset" "output dataset" "Update Rules" "Transfer Fields" |
.NET using ETGWOutX.dll | TransferAttributesPolygonsToPolylines(input dataset,Reference Dataset, output dataset, Update Rules,Transfer Fields) |
ArcPy | arcpy.TransferAttributesPolygonsToPolylines(input dataset, Reference Dataset, output dataset,"Update Rules", "Transfer Fields") |
Notes:
<> - required parameter
{} - optional parameter
The argument separator for StartInfo.Arguments is space. If a string might contain a space, you need to double quote it.