Select to view content in your preferred language

Transferring Attributes during a Construct Polygons Operation

549
2
09-20-2022 12:40 PM
Labels (3)
JTBatSLO
New Contributor

Greetings, 

I have several hundred closed polyline features which contain attribute values that I would like to transfer to the resulting polygon features created during a (batch) Construct Polygons tool operation. The feature class schemas are identical for the fields I wish to transfer, however I cannot seem to override the polygon feature's Template Properties, which seem to dictate any inherited values upon feature creation. 

Does anyone have an idea about how to accomplish this goal?

I am comfortable with Python & Field Mappings, but am not finding an ArcPy function for ConstructPolygons?

Additionally, the "Feature To Polygon"  gp tool indicates that the "attributes" parameter is no longer supported...I'm confused, was this functionality perhaps migrated to an extension bundle?

Thank you!

0 Kudos
2 Replies
ZacharyUhlmann1
Frequent Contributor

Hi @JTBatSLO - I am not familiar with the Construct Polygons tool.  Do you have multiple features within a single feature/shapefile or multiple feature classes?  If the former, obviously that may be easier.  Let me know and I may have some suggestions.

0 Kudos
JohnWatt
Frequent Contributor

A Spatial Join might work if the polygons don't overlap.  You can specify 'boundary touches' or 'share a line segment with' as match options (but 'intersect' might work too).https://pro.arcgis.com/en/pro-app/latest/tool-reference/analysis/spatial-join.htm

Alternatively you could try running the Identity GP tool to give the output polygons the attributes of the lines - but may need some intermediate steps eg buffer lines to get polygons, dissolve to tidy things up afterwards.

https://pro.arcgis.com/en/pro-app/2.8/tool-reference/analysis/identity.htm

 

0 Kudos