|
IDEA
|
It would be handy if there was an Empty Recycle Bin button, instead of having to manually select and delete items already in the recycle bin. We've got nearly 1000 items in the recycle bin after a bit of a python mishap (nothing lost that wasn't supposed to be thankfully), but now to delete all the items permanently, it seems I need to select and delete them in batches of 60 (limit displayed on the Contents page) with no "Select All" option. Also couldn't figure out how to delete from the recycle bin using python. Would be happy to try that out if someone can guide me.
... View more
01-05-2025
10:04 PM
|
7
|
2
|
1881
|
|
BLOG
|
Awesome to hear how you've managed to innovate with Survey123 and drones together to essentially eliminate climbing from the process. I'd love to see more about how multiple surveys talk to one another. Still very new to Survey123 and I know it's far more capable than I can even imagine right now based on stories like this.
... View more
12-23-2024
09:52 PM
|
1
|
0
|
2953
|
|
POST
|
Note to other tinkerers. I tweaked the code as per below to use print statements instead of arcpy.AddMessage, but essentially is just the same, exporting an .xlsx with a list of webmaps and their feature services (as feature service URL's only). I then exported an item report from ArcGIS Online and used Vlookup using the service URL to get more information on each layer. from arcgis.gis import GIS
from arcgis.mapping import WebMap
import arcpy
import pandas as pd
def main():
# logs into active portal in ArcGIS Pro
gis = GIS('pro')
print("Logged into {} as {}".format(arcpy.GetActivePortalURL(), gis.properties['user']['username']))
# creates list of items of all map image, feature, vector tile and image services (up to 10000 of each) in active portal
services = (gis.content.search(query="", item_type="Map Service", max_items=10000) +
gis.content.search(query="", item_type="Feature Service", max_items=10000) +
gis.content.search(query="", item_type="Vector Tile Service", max_items=10000) +
gis.content.search(query="", item_type="Image Service", max_items=10000))
print('Searching webmaps in {}'.format(arcpy.GetActivePortalURL()))
# creates list of items of all webmaps in active portal
web_maps = gis.content.search(query="", item_type="Web Map", max_items = 10000)
# Create an empty data frame to store the data
df = pd.DataFrame(columns=['Web Map', 'Service URL'])
# loops through list of webmap items
for item in web_maps:
# creates a WebMap object from input webmap item
web_map = WebMap(item)
# accesses basemap layer(s) in WebMap object
basemaps = web_map.basemap['baseMapLayers']
# accesses layers in WebMap object
layers = web_map.layers
# loops through basemap layers
for bm in basemaps:
# tests whether the bm layer has a styleUrl(VTS) or url (everything else)
if 'styleUrl'in bm.keys():
for service in services:
if service.url in bm['styleUrl']:
services.remove(service)
elif 'url' in bm.keys():
for service in services:
if service.url in bm['url']:
services.remove(service)
# loops through layers
for layer in layers:
# Add a new row to the data frame for each service used in the web map
if hasattr(layer, 'styleUrl'):
df.loc[len(df)] = [item.title, layer.styleUrl]
elif hasattr(layer, 'url'):
df.loc[len(df)] = [item.title, layer.url]
# Save the data frame to an Excel file
df.to_excel(r'C:\temp\web_maps.xlsx', index=False)
print("Finished")
if __name__ == "__main__":
main() I then also played with the coding posted here (Solved: Re: Where's the spatial reference information? - Esri Community) to print a list of feature services in ArcGIS Online and their WKID's which I could copy/paste into excel and also perform a Vlookup to the item report from ArcGIS Online to get more info for each layer. from arcgis.gis import GIS
# Connect to AGOL
agol = GIS("home")
# Search for all items in AGOL
items = agol.content.search(query="", max_items=10000)
# Iterate through each item
for item in items:
try:
# If it is a feature service or vector tile package
if item.type in ("Feature Service", "Vector Tile Package"):
# Print the WKID of the SRS
print("Item ID: {0}, WKID: {1}".format(item.id, item["spatialReference"]))
else:
print("Skipping Item ID: {0}, Type: {1}".format(item.id, item.type))
except Exception as e:
print("Failed to process item ID: {0}, Error: {1}".format(item.id, str(e)))
... View more
12-23-2024
09:46 PM
|
1
|
0
|
3922
|
|
POST
|
This has proven very helpful - I've been trying to find a way to bulk export spatial reference information for our ArcGIS Online content for a while and glad I finally stumbled on this code. Nothing else I have found or tried to create myself has worked for feature services - only feature classes.
... View more
12-23-2024
09:01 PM
|
1
|
0
|
5738
|
|
IDEA
|
Awesome! Glad it helped! I've found that Flight Mode helps with a couple of things in Field Maps (like working offline with maps that contain arcade expressions).
... View more
12-17-2024
04:51 PM
|
0
|
0
|
2003
|
|
BLOG
|
@GlenShepherd Good idea with the included URL! I haven't had a chance to really play with Geofences yet so not across the capabilities and limitations, but if a URL can be included, no reason it shouldn't work the way you describe. Not really any different to a URL in a popup or in Survey123.
... View more
12-16-2024
05:35 PM
|
1
|
0
|
1864
|
|
BLOG
|
@GarrettCarlson1 I don't think you can get the form to automatically open upon entering a geofence. I'd be very surprised if someone could make that happen. Based on my understanding of Field Maps, you still need some sort of manual interaction with either the Edit or Add functions to open the smart form.
... View more
12-16-2024
04:55 PM
|
0
|
0
|
1879
|
|
IDEA
|
A good idea. In the meantime, what if you put your device in flight mode and search using the "Editing" or "Read-Only" options I can see there. Might return everything that is on the device and hide the ones not loaded from the web?
... View more
12-16-2024
04:48 PM
|
0
|
0
|
2063
|
|
POST
|
HI brains trust. I'm hoping someone can help me here. I've been reading all the literature, googling, etc and not getting far. I have a GeoJSON URL from tracertrak that shows the Last Known Location data for a tracking system. When I view the URL in the browser, I see the JSON data as expected. I followed the Esri instruction to publish a GeoJSON as a hosted layer, which generated a JSON file in ArcGIS Online and a hosted layer showing the data, but it's static once published. I then found more instructions that said to load it directly into the WebMap and add a refresh interval, but when I do this, it adds as a table with no attributes and no data (or any other properties). What am I missing? I also used the Add Data function in Experience Builder to add it to a map and it loaded fine, but obviously this is temporary and can't be customised, so not overly useful (just dots on a screen with popups).
... View more
12-13-2024
12:04 AM
|
0
|
2
|
2357
|
|
IDEA
|
@JesseWickizer we've just upgraded to 3.3 and I've already given the visible scale bar settings a whirl. They work a treat (once I get my head around the Max/Min scale values for like the 1 millionth time in my career...).
... View more
12-10-2024
09:19 PM
|
0
|
0
|
3486
|
|
BLOG
|
Great idea! The more I do with Arcade, the more I realise it can do soooooo much more. The Intersects function is really handy.
... View more
12-10-2024
09:18 PM
|
1
|
0
|
2059
|
|
IDEA
|
Background: In our organisation, we rely on users to self define their offline areas (instead of using pre-defined offline areas in Field Maps Designer). We do this due to the mobile nature of our workforce and many overlapping work areas. For the most part, this is fine, but the problem occurs when something requires an offline area (usually meaning all offline areas) to be redownloaded. This can be quite a time consuming process of removing, navigating and redownloading all offline areas that a person may have. IDEA: In Field Maps, maps with offline areas have (in addition to Sync and Remove) a Reset button. This would essentially remove the offline area and download a fresh copy with the same name, extent and level of detail settings without requiring the user to set these options again manually. This would really help with getting rid of Sync errors as fixes are implemented, and make it a lot more user friendly for our field staff.
... View more
12-10-2024
05:13 PM
|
5
|
0
|
742
|
|
IDEA
|
That looks like a handy feature. The 2nd on 2 days that I've come across that we're missing out on because of our organisations delayed update process. Hopefully we'll be on 3.4 within the next month though so I'll give it a try when we are!
... View more
12-03-2024
02:30 PM
|
0
|
0
|
3536
|
|
IDEA
|
In ArcGIS Pro, when setting up scale bars, you have the following options available: Fitting strategy Description Adjust division value Preserves the number of divisions and tries to preserve the scale bar width by adjusting the division value. Manual resizing of the scale bar is allowed. Adjust number of divisions Preserves the division value and tries to preserve the scale bar width by adjusting the number of divisions. Manual resizing of the scale bar is allowed. Adjust divisions and division value Preserves the number of subdivisions and tries to preserve the scale bar width by adjusting the number of divisions first then the division values. Manual resizing of the scale bar is allowed. Adjust width Preserves the division value and number of divisions, and adjusts the scale bar width if the map scale changes. Manual resizing of the scale bar is not allowed. Fixed bar width Allows you to set the width of the bar in page units using the Scale Bar Width box. This width does not include other parts of the scale bar such as numbers and unit labels. The scale bar width is preserved and the numeric values update to reflect the scale. Manual resizing of the scale bar is not allowed. The problem I find is that many of our maps have such variable scales, that no single existing setting gives a nice outcome all the time (typically when using a Map Series). Some examples below show how the scale bar responds at different scales based on the Fitting Strategy selected. Adjust divisions and division values Adjust number of divisions (my preferred option for a nice looking scale bar) IDEA: When using "Adjust division values" or "Adjust divisions and division values", allow the option to round intervals to a user specified value (e.g. nearest 10, 50, 100, 200, 500, 1000, 5000, etc) AND/OR allow the user to create specific interval values (in a list) for the scale bar to use at different scales (in a similar way to the way the map scales can be customised as per the below screenshot) Having this level of control would mean that regardless of my map scale (1:5,000 or 1:40,000), my scale bar will present nicely configured division intervals and will still fit within the specified space on the layout (fixed width). With this sort of function, I could generate maps that look like the below instead of the above.
... View more
12-02-2024
04:53 PM
|
9
|
8
|
3596
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 4 | 2 weeks ago | |
| 6 | 2 weeks ago | |
| 2 | 2 weeks ago | |
| 2 | 2 weeks ago |
| Online Status |
Offline
|
| Date Last Visited |
Tuesday
|