帖子
|
嗨,DoZ,这真的很奇怪。我又看了一下,看起来它在闰年之后的年份也有特别的问题。幸运的是,这很容易解决。if(format-date(${Ex8},'%Y') mod 4 = 0或format-date(${Ex8},'%Y') mod 4 = 1, date(decimal-date-time(${Ex8}) + ((365.25*18)- 1), date(decimal-date-time(${Ex8}) +((365.25*18))))这个公式检查它是闰年还是后年,看它是否能被4整除,或者它的余数是否为1。(我从1977年到2010年每年都检查,所以应该是好的)1977年到1981年的证明:类型名称标签计算日期Ex8示例8 Ann18Fix 18周年固定日期如果(格式化日期($ {Ex8} % Y)国防部4 = 0或格式化日期($ {Ex8} % Y)国防部4 = 1,日期(decimal-date-time ($ {Ex8}) +((365.25 * 18) - 1)),日期(decimal-date-time ($ {Ex8}) +((365.25 * 18))))日期Ann20Fix 20周年固定日期(decimal-date-time ($ {Ex8}) +(365.25 * 20))日期Ann30Fix 30周年固定如果格式化日期($ {Ex8} % Y)国防部4 = 0或格式化日期($ {Ex8} % Y)国防部4 = 1,date(decimal-date-time(${Ex8}) + ((365.25*30)- 1)), date(decimal-date-time(${Ex8}) + ((365.25*30)))) date Ann40Fix 40周年固定日期(decimal-date-time(${Ex8}) +(365.25*40))就像你说的,闰年没有被计算在内,这很奇怪。希望这能有所帮助!
...查看更多
13小时前
|
0
|
0
|
2
|
帖子
|
你已经很接近了,只是需要筛选一下名单。import arcpy keysList = [] valuesList = [] aprx = arcpy.mp. arcgisproject ("CURRENT") for lyt in aprx. listlayouts(): #筛选列表,仅为m在lyt. listelements ("MAPFRAME_ELEMENT"): #你想要的是地图帧中的地图名称,而不是地图帧本身keysList.append(lyt.name) valuesList.append(m.map.name) print(keysList) print(valuesList) print(valuesList)“结果”# #(“布局”,“布局”)(“程度”、“灰度”)可能是更清洁的字典:进口arcpy mapDict ={}约计= arcpy.mp.ArcGISProject(“当前”)在aprx.listLayouts lyt(): #过滤器只图帧m在lyt.listElements(“MAPFRAME_ELEMENT”):如果lyt.name mapDict: #你想要的名称映射的映射框架,而不是映射框架本身mapDict [lyt.name] .append (m.map.name)其他:mapDict [lyt.name] = [m.map.name]打印(mapDict)" '结果'' #{'布局':['范围','灰度']}有用的页面:布局类地图框架类希望这有助于!
...查看更多
周一
|
2
|
1
|
38
|
帖子
|
这是闰年的问题。(我不是100%确定这到底是如何工作的,但这是我解决这个问题的思考过程)具体来说,如果输入的年份是闰年,你必须通过减去一天来考虑差异。if(format-date(${Ex8},'%Y') mod 4 = 0, date(decimal-date-time(${Ex8}) + ((365.25*18)- 1)), date(decimal-date-time(${Ex8}) +((365.25*18))))公式解释:如果输入的年份能被4整除,则减去一天为闰年,否则按正常方式相加。这将产生以下2020年12月1日和1979年11月1日的结果,您将注意到,对于闰年,20周年和40周年纪念日显示错误。这是(据我所知),因为这些年份也能被4整除。要解决这个问题,只需使用这些字段的原始公式。总而言之,以下内容将对您有所帮助:类型名称标签计算日期Ex8例8日期Ann18Fix 18周年固定if(format-date(${Ex8},'%Y') mod 4 = 0, date(decimal-date-time(${Ex8}) + ((365.25*18)- 1)), date(decimal-date-time(${Ex8}) + (365.25*18))))) date Ann20Fix 20周年固定日期(decimal-date-time(${Ex8}) + (365.25*20)) date Ann30Fix 30周年固定if(format-date(${Ex8},'%Y') mod 4 = 0, date(decimal-date-time(${Ex8}) + ((365.25*30)- 1)),date(decimal-date-time(${Ex8}) + ((365.25*30)))) date Ann40Fix 40周年固定日期(decimal-date-time(${Ex8}) +(365.25*40))希望这有助于!
...查看更多
|
1
|
2
|
29
|
帖子
|
感谢@Ole_MariusGulbrandsen的关注。我使用Edge (Chromium)。层有所不同。我的项目地图有30个以上,但同样,这种延迟也出现在各个项目页面的可视化选项卡上。延迟30层是有意义的。对一个人来说不是。同样值得指出(也是最令人沮丧的)的是,这种延迟(在Visualization选项卡上)发生在记录为0的层中。认真地说,创建一个新的特征类,任意数量的字段,在填充任何记录之前,尝试设置一个默认的可视化。它是缓慢的,这是令人困惑的,因为它没有什么可以渲染的。不幸的是,除了创建一个空的功能类,我没有任何地图可以共享。
...查看更多
一周前
|
0
|
0
|
24
|
的想法
|
这个想法应该与我的在这里合并:拖动项目从内容窗格打开属性Ta…- yabo11.vip亚博agappEsri社区
...查看更多
2周前
|
0
|
0
|
18
|
帖子
|
我也遇到过这种情况
...查看更多
2周前
|
1
|
0
|
19
|
帖子
|
或者,如果你在Pro中打开它(将它添加到地图中),你应该能够在那里进行批量编辑。
...查看更多
2周前
|
0
|
0
|
13
|
帖子
|
我很抱歉,我写最初的回复太匆忙了,所以我没有尽我所能做到彻底。关于第一个问题,我认为有可能是您在做表格的时候没有保存WebMap,所以当您重新查看的时候它就不存在了。否则,就没有默认表单了。关于第二个问题:弹出窗口和表单是在两个不同的地方编辑的。我将首先回答AGOL方面的问题,然后是Pro方面的问题。(如果您从企业GDB发布服务,情况可能会发生变化,这涵盖了AGOL上的托管特性。)AGOL:所以,坏消息是你确实需要为每个映射、每个特性类配置表单,就我所知。不幸的是,您不能通过Item详细信息页面上的Visualization选项卡将表单配置为默认值。但是,你可以转换弹出窗口(也包括编辑弹出窗口),弹出窗口可以设置为默认值。为每个单独的地图配置弹出窗口的工作流程是相同的,但您在webmap中做,而不是在Item Details页面上。 Go to the item's detail page, then click on the Visualization tab Select the layer you want, then click the "Pop-ups" button. My current pop-up looks like this: Go to Fields List I don't want to see the State (Field2) in my popup, so I'm going to remove it from the list After making your changes, save in the upper left This has set the default pop-up for the layer. It can be customized in webmaps as desired. Pro: Right click your layer and press " Configure Pop-ups" Turn off/on the fields you want Export to AGOL Next steps: Once you have your layer, put it in your webmap, create a form from the pop-up, and don't forget to save. Saving through the Webmap: Click okay, then save the map Saving through the FieldMaps website: In this case, I want users to edit the State, but I don't want to see it after the fact. So I'm going to drag the field into the form, so it'll show up during collection, but not in the pop-up after collection. (You can of course make it so you can see things in the pop-u that aren't available during collection). Final result: Hope this helps!
...查看更多
2周前
|
0
|
0
|
12
|
的想法
|
经过一番搜索,从这个问题中找到了这个想法。Feature Weight只是移动标签。它不会让标签在特征类下绘制,而这正是这个Idea所要求的效果。在这个例子中,我有一个在PLSS标签下面绘制的无线电塔。(请注意,无线电塔的符号中包含“(FS)”字样。)增加特征的权重并没有达到将标签画在特征下面的预期效果;相反,引擎决定不画它。特征权重:0特征权重:1000描述:地图截图,显示6个PLSS乡镇。在一个乡镇标签的正下方画有一个无线电塔,用一个带有塔标志和“(FS)”字样的白圈表示。描述:相同的地图范围。 This time, the offending label does not draw at all, leaving that township entirely unlabeled. Right now, it seems the two* working solutions are to create a custom basemap and to convert the labels to annotation. Neither are dynamic. Creating a custom basemap is a lot more work than I would like to do, frankly. It'd work for things like PLSS, but I don't think it's an ideal solution for other, less standard data. Annotations are the next option. However, as AlderMaps pointed out, annotation requires you to convert for each scale you want. Ideally, I'd like a way to rearrange labels in the table of contents, so that the PLSS label draws under the radio towers, but over the roads, for example. Please add this functionality. *Actually, I suppose a third option would be to stack two linked maps on each other in a layout, but that seems extremely messy.
...查看更多
2周前
|
0
|
0
|
12
|
帖子
|
看来你说对了这个数字的来源。我最后找到/制作了一个计算器,以备将来使用。我很困惑,为什么当初始输入只有6.3度(11% ~~ 6.3度)时,直方图可以解释高达90度的值。
...查看更多
2周前
|
0
|
0
|
21
|
标题 | 荣誉 | 发布 |
---|---|---|
2 | 周一 | |
1 | 周一 | |
1 | 2周前 | |
1 | 3周前 | |
1 | 3周前 |