使用 python 脚本将属性从面要素类(包含线要素)传输到线要素类
有没有人尝试使用 python 脚本将属性从多边形要素类传输到线要素类。我已经使用 Spatialjoin 和 Identity 完成了此操作,但输出通常是另一个要素类。我需要获取多边形属性并将它们传输到线要素类。请帮忙...
Has anyone tried to trasfer attributes from a polygon feature class to a line feature class using python script. I have done it with Spatialjoin and Identity, but the output is often another feature class-. I need to get polygon attributes and transfer them to the line feature class. Please help...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从你的陈述来看,我认为你有ArcGIS Desktop..
识别多边形和线要素之间的公共ID。
然后根据共同的id进行加入。将线要素作为输入,将多边形作为连接要素。
验证连接,然后导出线要素。它将创建一个具有多边形所有属性的新线要素。
练习这些步骤后,您可以轻松找到 python 代码。
From your statement, i think you have the ArcGIS Desktop..
Identify the common id between the poly and line feature.
then do join based on the common id. have the line feature as input and polygon as join features.
Verify the join, and then export the line feature.. it will create a new line feature with all attributes from polygon..
After you practice these steps, you can easily find the python codes.