帖子
|
虽然Field对象的类型属性值与Add Field工具的field_type参数使用的关键字不完全匹配,但所有Field对象的类型值都可以用作该参数的输入。不同的字段类型映射如下:Integer到LONG, String到TEXT, SmallInteger到SHORT。如果field.name == x,则field.name == x。type == "String"
…查看更多
4小时前
|
0
|
1
|
13
|
帖子
|
有两种主要的方法来添加附件到一个功能:使用属性面板在ArcGIS Pro手动添加附件到单个功能:添加或删除文件附件- ArcGIS Pro |文档使用工具添加附件添加附件到多个功能:要使用添加附件工具,您需要一个附件匹配表,您可以在前面的步骤中生成附件匹配表(数据管理)-ArcGIS Pro | Documentation匹配表不是附件表。匹配表与功能类没有关联。你看到的行为是完全正确的。匹配表只是一个中间步骤,在添加附件工具中使用后可以删除它。让我们看一个简单的示例,了解如何向一个特性类添加多个附件。假设你有一个多边形特征类。这个特征类有一个名为LotID的文本字段,其值如“LotA”、“LotB”等。现在您想在这些批次中添加一些报告。为特性类启用附件。 Enable Attachments (Data Management)—ArcGIS Pro | Documentation Put the reports you want to attach into a folder, name them according to the LotID values -> "LotA.pdf" Generate the Match Table Generate Attachment Match Table (Data Management)—ArcGIS Pro | Documentation use LotID as key field, output match table can be anywhere (but not the attachment table!) The Match Table should look like this: LotID Path LotA C:/reports/LotA.pdf LotB C:/reports/LotB.pdf Add the attachments to the feature class Add Attachments (Data Management)—ArcGIS Pro | Documentation Use the table you generated in the previous step as match table, use LotID as join field The Match Table is unneccessary now, you can delete it. For more on how to work with attachments, take a look at the docs: An overview of the Attachments toolset—ArcGIS Pro | Documentation
…查看更多
4小时前
|
0
|
0
|
1
|
帖子
|
Var大小= $feature。height * 6.66 return '
昨天
|
0
|
0
|
38
|
帖子
|
pole_fc = "TestPoints2" sub_fc = "TestPoints" line_fc = "TestLines" common_field = "IntegerField" #读取极点形状pole_dict = {id:形状为id,形状在arcpy.da。SearchCursor(pole_fc, [common_field, "SHAPE@"])) #开始用arcpy.da插入fc行。InsertCursor(line_fc, ["SHAPE@"]) as i_cursor: #用arcpy.da遍历子fc。搜索Cursor(sub_fc, [common_field, "SHAPE@"]) as s_cursor: for id, shape in s_cursor: # get the corresponding pole, skip if not found try: pole = pole_dict[id] except KeyError: continue # construct and insert the new line line_shape = arcpy.Polyline(arcpy.Array([pole.firstPoint, shape.firstPoint]), pole.spatialReference) i_cursor.insertRow([line_shape])
…查看更多
昨天
|
1
|
0
|
39
|
帖子
|
Var大小= $feature。返回“
昨天
|
0
|
2
|
63
|
帖子
|
我想合并2个或更多的点层在一个特征类到1层。你说你想用编辑选项卡中的交互式合并工具来做这件事,所以我假设你指的是点特征,而不是图层。特征是特征类中的一行。层是ArcGIS Pro中特征类的表示(用于符号、标签、选择等)。抱歉,如果这听起来很挑剔,但这就是其他人假设您想要合并功能类的原因。无论如何,Dan的答案非常接近:你不能合并点,只能合并多点。因此,您必须首先将您的点特征类转换为多点特征类:使用成对溶解工具将您的点特征类转换为新的多点特征类。工具箱->分析->成对叠加->成对溶解选择所有字段作为溶解字段,确保“创建多部分特征”复选框被标记为选中新特征类中的所有特征,并在编辑选项卡中运行交互式爆炸工具。这个新特征类是一个多点特征类,你可以在这里合并你的点特征。
…查看更多
昨天
|
0
|
0
|
16
|
帖子
|
这里我们有一个无聊的旧的随机配色方案,用于我们的唯一值:当我们选择一些唯一值并改变配色方案时,新方案只适用于选定的类别:但它仍然是随机的。要使它成为一个斜坡,我们必须改变方案:了解更多:颜色方案- arcgis Pro |文档
…查看更多
周二
|
0
|
5
|
77
|
帖子
|
要访问AGOL,请使用url https://www.arcgis.com。不要使用保留名称(Portal)作为变量名。这里没有问题,因为您不再需要调用Portal()了,但是如果您让它成为一种习惯,那么使用其他表达式时可能会遇到问题。var p = Portal("https://www.arcgis.com") var cities = FeatureSetByPortalItem(p, "0218468f0d8f40daa9b5aa79b88ca961", 1, ['admin4_en2', 'primary_destination', 'parentglobalid'])
…查看更多
周二
|
0
|
0
|
21
|
帖子
|
cim.popupInfo.mediaInfos
…查看更多
周一
|
0
|
0
|
44
|
帖子
|
PopupInfo有一个TableMediaInfo对象列表。l_cim = l.getDefinition("V2") media = arcpy.cim.CIMPopup.CIMTableMediaInfo() media.fields = ["Field"] popup = arcpy.cim.CIMPopup.CIMPopupInfo() popup。mediaInfos = [media] l_cim。popupInfo = popup l.setDefinition(l_cim)
…查看更多
周一
|
1
|
0
|
54
|
标题 | 荣誉 | 发布 |
---|---|---|
1 | 昨天 | |
1 | 周一 | |
1 | 周一 | |
1 | 周一 | |
1 | 周六 |