|
POST
|
Hi All, I’m working on an image mosaic dataset which is published by reference to the image server and portal from an sde. This main image mosaic is updated by other referenced site mosaics every day. We have found out that some sites do not show in the published image service (main image mosaic). However, the mosaic dataset has no problem showing all sites in ArcGIS Pro from the sde. We do synchronization and caching after new rasters are added. So the question is, why do some of the newly added rasters NOT show up in the image service (although the attribute table is updated) but they all show up in ArcGIS Pro from the sde? Is there a bug in Manage Map Server Cache Tiles tool in ArcGIS Pro v2.8? Any idea or help is appreciated. Thank you.
... View more
07-06-2021
12:03 AM
|
0
|
0
|
700
|
|
POST
|
@WGIMaps , Is it possible to share some samples of the google sheet? Does the google sheet get overwritten or appended when updated every hour?
... View more
06-24-2021
06:16 PM
|
0
|
0
|
865
|
|
POST
|
Hi @MikeMacRae, To update field values of a hosted feature layer's original table, you can use feature sets and spatial dataframe of the feature layer as follows: # updating feature layer's attribute table
hfl = gis.content.get("feature layer item id")
hflayer =hfl.layers[0]
#for multiple rows
fset = hflayer.query()
for f in (fset.features):
f.attributes['myfield'] = 'any value'
hflayer.edit_features(updates = fset.features)
or
#for a single specific row
fset = hflayer.query(where="OBJECTID = 1")
fset.features[0].attributes['myfield'] = 'any value'
hflayer.edit_features(updates = fset.features) to update the joined tables of a feature layer, you can use the following script: for table in hfl.tables:
if table.properties.name == "myTableName":
table.calculate(where="OBJECTID = 1", calc_expression={"field": "myField", "value" : 1}) to access the fields of a table: for table in hfl.tables:
for field in table.properties.fields:
print(field.name) I hope these give you more insights and are helpful. ====================================================================== Please give a like if helpful and Accept as Solution if it's answered your query.
... View more
06-16-2021
07:07 PM
|
3
|
2
|
5610
|
|
POST
|
@Anonymous User, It looks like some python packages such as pandas not installed properly. Clone the python environment in ArcGIS Pro > Project > Python > Manage Environment > Clone. Uninstall and install the pandas package in the cloned environment if this didn't work you would need to update or reinstall ArcGIS Pro.
... View more
06-15-2021
05:55 PM
|
0
|
1
|
860
|
|
POST
|
@Anonymous User , You can use the following script to get the existing portal services in a list. Then compare it with the url list from json. from arcgis import GIS
gis = GIS("portal url", username, password, verify_cert=False)
# for feature layers
fcs = gis.content.search("*", item_type="Feature Layer", max_items=100)
portal_service_urls = [fc.url for fc in fcs]
.....
json_urls = [...]
# Compare the 2 lists
set(portal_service_urls) & set(json_urls) I hope that helps.
... View more
06-14-2021
06:21 PM
|
1
|
0
|
2218
|
|
POST
|
@OhtoNygren Have you checked on the Recursive option in Iterate Rasters before running the model? You also need to go one level up the folders containing the rasters.
... View more
06-02-2021
07:02 PM
|
0
|
0
|
1959
|
|
POST
|
Hi @BenPearse , You can use Union in ArcGIS Pro or ArcMap. Analysis Tools > Overlay > Union https://pro.arcgis.com/en/pro-app/latest/tool-reference/analysis/union.htm then use Select (from Analysis Tools > Extract) or do a definition query on the output to filter out road.
... View more
04-21-2021
05:54 PM
|
0
|
0
|
2556
|
|
POST
|
@yovavzo Did you check my new reply? https://community.esri.com/t5/geoprocessing-questions/field-calc-pro-2-7-reduce-wkt-length-by-rounding-truncating/m-p/1046716#M25436
... View more
04-14-2021
12:43 AM
|
0
|
1
|
2568
|
|
POST
|
@yovavzo , You changed the code I provided, in your Code Block, that's why you're getting the error. I also tried it on your dataset and I'm getting the right output. Input: MULTIPOLYGON (((198102.99230000004 666117.40980000049, 198102.99230000004 656117.40980000049, 208102.99230000004 656117.40980000049, 208102.99230000004 666117.40980000049, 198102.99230000004 666117.40980000049))) Output: MULTIPOLYGON (((198102.992 666117.410, 198102.992 656117.410, 208102.992 656117.410, 208102.992 666117.410, 198102.992 666117.410)))
... View more
04-13-2021
06:09 PM
|
0
|
1
|
4121
|
|
POST
|
@yovavzo , The following script should work: %Expression:
re.sub(compiling, mround, !SHAPE.wkt!)
%Code Block:
import re
compiling = re.compile(r"\d*\.\d+")
def mround(wkt):
return "{:.3f}".format(float(wkt.group()))
... View more
04-13-2021
01:05 AM
|
0
|
3
|
4207
|
|
POST
|
@KarenRobine1 , There is a Sync capability in ArcGIS Python API, when enabled in a feature layer, you can then create replicas for offline use and sync the updates back to the server to update features. you also have the option to unregister a replica (sort of disabling offline updates). The following link provides a guide with some examples about how to use replicas: https://developers.arcgis.com/python/guide/checking-out-data-from-feature-layers-using-replicas/ I hope that helps. Mehdi
... View more
03-26-2021
07:00 PM
|
0
|
1
|
2921
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-16-2021 09:38 PM | |
| 1 | 03-17-2024 06:09 PM | |
| 1 | 11-10-2020 04:59 PM | |
| 1 | 02-08-2021 09:29 PM | |
| 1 | 02-17-2021 04:47 PM |