帖子
|
我没有安装ArcMap,不能测试。如果你没有看到这种行为,这可能是ArcMap社区的一个问题。
...查看更多
周一
|
1
|
0
|
64
|
帖子
|
如果你赋值给一个变量,消息不会显示:
...查看更多
周一
|
0
|
0
|
79
|
帖子
|
听起来像是您为该字段定义了一个域,并且没有将分割策略设置为“重复”:属性域介绍- arcgis Pro |文档
...查看更多
周一
|
1
|
0
|
71
|
帖子
|
是的,有时候arcpy在Result对象、geoprocessing xyz对象和“纯”xyz对象之间的转换可能会很棘手。在这种情况下,您可以使用提取的sr的工厂代码创建一个新的SpatialReference: m = arcpy.mp.ArcGISProject("current")。activeMap extent = m.f uttcamera . getextent () map_sr = m.a spatialreference map_point = arcpy.PointGeometry(arcpy.Point(extent. xmin,extent. ymin), map_sr) #错误map_sr = arcpy.SpatialReference(map_sr. factorycode) map_point = arcpy.PointGeometry(arcpy.Point(extent. xmin,extent. ymin), map_sr) #工作
...查看更多
周一
|
0
|
0
|
13
|
帖子
|
ContentManager的advanced_search方法有一个max_items参数,遗憾的是在参数表中没有记录。将其设置为高值可能会有所帮助。从arcgis。gis import gis gis = gis ("home") users= gis.users.search(max_users=1000) query = " OR ".join([f"owner:{u。用户名}" for u in users]) results1 = gis.content.advanced_search(query)["results"] results2 = gis.content。Advanced_search (query, max_items = 200000)["results"] len(results1) # 100 len(results2) # 190189
...查看更多
周一
|
0
|
1
|
17
|
帖子
|
arcpy的方法是:导入arcpy fc = "C:\Temp\ProjectModel. "gdb\TempAvgs_ExportFeatures1" fields = ['GeologicUnit', 'Analyte'] unique_combination = {arcpy.da中的行对行。搜索Cursor(fc, fields) } for unit, analyte in unique_combinations: print(unit, analyte) # create a layer with all rows of that values combination sql = f"GeologicUnit = {unit} AND Analyte = {analyte}" # add single quotes around {unit} and {analyte} if those fields are strings layer = arcpy.management.MakeFeatureLayer(fc, f"{unit}_{analyte}", sql) # do your geoprocessing on this layer arcpy.analysis.Intersect([layer, some_other_layer], f"Intersect_{unit}_{analyte}")
...查看更多
周六
|
1
|
1
|
56
|
帖子
|
使用特征到点来获得一个点特征类与你的多边形的质心。将csv拖到映射中(或使用表到表将其转换为gdb tale)使用Add Join或Join Field将表连接到点。如果您使用Add Join,则将该层导出到一个新的特性类中以使连接永久存在。
...查看更多
周四
|
1
|
1
|
52
|
帖子
|
对于点fc,我是在第9行上使用长度还是面积?那么在多边形边界上的点呢-严格来说它们在两个多边形的边界上?嗯。如果你的选区不互相重叠,那么一个点只会在一个多边形上,除非它在边界上,就像你说的。因此,要么使用您的原始代码(取第一个相交多边形),要么在点周围创建一个小缓冲区并使用Area()。注意,我们相交的是缓冲区,而不是$特征://加载其他特征集var fs = FeatureSetByName($datastore, " roads . highwaymgr . electoralpartitions ") //从fs中获取与当前相交的所有特征$feature var f_buffer = Buffer($feature, 1 "meters") var i_fs = Intersects(fs, f_buffer) //找到与$feature var greatest = 0 var name = null相交的特征的ElectDiv (var i_f in i_fs) {var current = Area(intersection (f_buffer,I_f)) if(current <= greatest) {continue} greatest = current name = I_f。但这可能仍然会返回与First(i_fs)相同的结果。您还可以按某列对交叉多边形进行排序并返回First()。 For example, if you have a field ElectoralDivisions.Population and you want to return the name of the polygon with the highest population when the point is on the border of 2 polygons: // load the other featureset var fs = FeatureSetByName($datastore, "Highways.HIGHWAYMGR.ElectoralDivisions") // get all features from fs that intersect the current $feature var i_fs = Intersects(fs, $feature) // sort the intersecting features by population, descending var sorted = OrderBy(i_fs, "Population DESC") // return the name of the intersecting feature with the highest population var greatest_pop = First(sorted) if(greatest_pop == null) { return null } return greatest_pop.Name I've updated the field ElectDiv to the name field. Are the changes below ok? Yeah, looks good
...查看更多
周四
|
0
|
0
|
17
|
帖子
|
好吧,至少我们找到了……您可以要求WMS的作者禁用WMS上的时间,或者提供参数来自行执行。如果他们没有,你可能不得不忍受时间滑块。
...查看更多
周四
|
0
|
0
|
8
|
帖子
|
https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/make-feature-layer.htm该工具要求您输入单个路径和单个层名。所以你必须在循环中执行:for path, name in zip(full_fcs, serials): arcpy.management。MakeFeatureLayer(路径、名称)
...查看更多
一周前
|
1
|
1
|
79
|
标题 | 荣誉 | 发布 |
---|---|---|
1 | 昨天 | |
1 | 周一 | |
1 | 周一 | |
1 | 周一 | |
1 | 周六 |