Transfer Polygon Attributes

Running programmatically

Transfers the attributes from one polygon layer (source) to another (target) based on their spatial location (overlay). The user specifies the method for transferring the attributes of each field of the source polygon attribute table.



Transfer Methods:

The Source dataset has two polygons A and B. The Target dataset has a single polygon - Z. The portion of the Target polygon that intersects with polygon "A" of the Source layer is polygon X, and the portion that intersects with polygon B is polygon Y.

population_Z = population_A * area_X / area_A + population_B * area_Y / area_B

rainfall_Z = (rainfall_A * area_X + rainfall_B * area_Y ) / area_Z

IF area_X / area_Z > area_Y / area_Z THEN soiltype_Z = soiltype_A

IF area_X / area_Z < area_Y / area_Z THEN soiltype_Z = soiltype_B



Source Data

Transfer Methods


Running Programmatically

(Go to TOP)


Expression Explanation
Function Name TransferAttributes
<Source Dataset> A String representing the input layer. Must be of Polygon type.
<Target Dataset> A String representing the layer to be merged. Must be of Polygon type.
<output dataset> A String - the full name of the output layer.
<Transfer Fields< A String representing a list (separator ";") of the fields to transfer together with the method for each field. Valid values - "Count", Value", "Type". Example: "Field1 Value; Field2 Type; Field3 Count"

Running the function

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[ETGWPath, "TransferAttributes", "Source Dataset", "Target Dataset", "output dataset", "Transfer Fields"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "TransferAttributes" "Source Dataset"  "Target Dataset" "output dataset" "Transfer Fields"
.NET using ETGWOutX.dll TransferAttributes(Source Dataset, Target Dataset, output dataset, Transfer Fields)
ArcPy arcpy.TransferAttributes(Source Dataset, Target Dataset, "output dataset" , "Transfer Fields")


(Go to TOP)