帖子
|
欢迎光临!它可能会帮助你解释你想要完成什么或你的目标是什么。这将帮助我们指引你走向正确的方向。当与ArcGIS在线托管服务交互时,我们使用REST。ESRI为我们创建了一个很棒的API,它将REST封装在python中。它被称为Python的ArcGIS API。我强烈建议您看一下API和一些教程。您可以从这里访问API参考:https://developers.arcgis.com/python/api-reference/在这里您可以访问API的指南。看一下入门部分。这将帮助您通过python登录到ArcGIS Online,并帮助您开始您的旅程。 https://developers.arcgis.com/python/guide/ Once you have familiarized your self with the ArcGIS API for Python. You want to take a look at the arcgis.features module. This module will allow you to work with the data in the hosted feature service. You can do things like access fields, properties, update, add data, delete data, append, calculate and more. Within the arcgis.features module there is a class called the FeatureLayer Class. You can directly query features with this class. arcgis.features module: https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html# FeatureLayer Class: https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#featurelayer If you have any questions, please do not hesitate to ask. There are no dumb questions. Hope this helps
…查看更多
08-19-202103:59点
|
0
|
1
|
246
|
帖子
|
我遇到了一个听起来与你的需求相似的帖子,看起来很有希望。//www.gobook3.com/thread/19876希望能有所帮助
…查看更多
02-21-202004:38点
|
0
|
1
|
1188
|
帖子
|
这里是下载工具箱的直接链接。确保下载Boundary_Realign文件夹,或者创建一个包含脚本和工具箱的文件夹。一旦代码的最终迭代完成,我们将更新工具箱,以便代码与它一起存储。https://drive.google.com/open?id=11onOCODMlGR3uRtNAfAMb1jzUl8mByDZ
…查看更多
01-28-202003:54点
|
0
|
0
|
168
|
帖子
|
您可以使用update来更改标签,这些标签可以在arcgis中的“Item”下找到。gis模块。arcgis。Gis模块- arcgis 1.6.2文档
…查看更多
09-24-2019家族
|
0
|
0
|
78
|
帖子
|
如果我理解正确的话。您正在寻找包含多个点(ServiceConnections)的多边形(CustomerLocations),您可以尝试在几何类中使用contains。本质上它是如何工作的,你有一个搜索光标遍历多边形,然后在多边形循环内嵌套另一个循环来比较几何。然后计算多边形中包含的点的数量,如果其大于1,则写入'MultipleConnectionsInParcel'字段。当使用搜索光标时,确保使用“SHAPE@”作为字段名之一,以便它使用几何图形。下面的代码片段展示了我如何使用搜索游标来比较两个特性类的几何形状。for buffersLoop在arcpy。哒。搜索游标(fatStructures, ["SHAPE@", Struc_Num]):在arcpy中查找photosLoop。哒。 SearchCursor ( photosFC , [ "SHAPE@" , Photo_Name ] ) : polyprint = arcpy . Geometry . contains ( buffersLoop [ 0 ] , photosLoop [ 0 ] )
…查看更多
09-20-2019日上午
|
0
|
0
|
445
|
帖子
|
我修改了一下你的代码,发现了一些错误。试试下面的代码,让我知道它是否有效。如果是这样,我们可以做一些文本格式化,让它看起来更漂亮。Import smtplib Import arcpy from email。哑剧演员。文本导入MIMEText格式。env。workspace = r "输入你的文件夹路径" listFiles = arcpy。ListFiles () # me是发件人的电子邮件地址# you是收件人的电子邮件地址msg = MIMEText (text, 'plain') msg ['From'] = me msg ['To'] = you msg ['Subject'] = " email " #邮件正文文本= ListFiles #通过SMTP服务器s = smtplib发送消息。SMTP ('smtp.escondido.org') sendmail ( me , [ you ] , msg . as_string ( ) ) s . quit ( )
…查看更多
09-20-201942我
|
0
|
3.
|
4857
|
帖子
|
当你说ArcGIS Pro文档你指的是一个ArcGIS Pro项目文件(.aprx),其中包含多个地图?编辑:我很确定你说的是。aprx文件,因为我看到你可以把地图导出为。mapx文件在ArcGIS Pro。然而,我还没有能够找到任何方法来保存一个地图在arcpy。我看了一下arcpy映射模块,它被设计用来访问.aprx文件中的信息:arcpy介绍。Map - arcpy | ArcGIS Desktop我也在地图类中查看了地图模块:Map - arcpy | ArcGIS Desktop我在文档中没有看到关于保存或导出为。mapx的地方。我也试着看看saveACopy()是否会工作,它没有。也许其他人更有洞察力?
…查看更多
09-20-2019上午09:41
|
1
|
2
|
1574
|
帖子
|
不用谢
…查看更多
09-20-201908:41我
|
0
|
0
|
2948
|
帖子
|
很抱歉这么晚才给你回复。我一直在尝试使用其他一些工具,试图为您找到解决方案。一旦组合了几何图形并且将属性限制在单行中,您还需要该行中的任何信息吗?我保全了你们的田地。尝试这个脚本,看看它是如何为您导入arcpy inFeatureClass = r "C:\Users\JohnDoe\Documents\ArcGIS\Projects\General\General。gdb\dissolve_polygon " outFeatureClass = r "C:\Users\JohnDoe\Documents\ArcGIS\Projects\General\General。gdb\dissolve_test" listFields = arcpy。ListFields (inFeatureClass)打印(“溶解多边形”)的方法。Dissolve_management (inFeatureClass, outFeatureClass)打印(“添加字段”)的addField在listFields:尝试:arcpy。AddField_management (outFeatureClass, addField . management)name, addField。type, "", "", addField。 length , "" , "" , "" ) except : continue
…查看更多
09-20-2019上午08:19
|
0
|
0
|
797
|
帖子
|
你想在邮件中发送什么样的信息?您还能分享您正在使用的代码吗?
…查看更多
09-19-201946我
|
0
|
0
|
4857
|
标题 | 荣誉 | 发布 |
---|---|---|
1 | 11-17-2018上午10:51 | |
1 | 11-18-2018上午08:05 | |
1 | 09-18-201946点 | |
1 | 09-20-2019上午09:41 | |
1 | 09-18-201905:14点 |
在线状态 |
离线
|
最近到访日期 |
11-16-202212:14我
|