POST
|
I've had a closer look - it's not an OGC or other added service. It's definitely related to our ArcGIS Online content. The below screenshot captures the window coming up as we try to add a feature service from our AGOL environment, and when we click Cancel (because entering credentials does nothing) we get the layers added to the map with broken sources and the following error.
... View more
07-23-2023
06:27 PM
|
0
|
2
|
574
|
IDEA
|
To me it sounds like an option in the layers list to show/highlight geofences in a similar way that "Markup" can be turned on and off. Turn on the "Geofence Locations" option and it highlights all the geofence locations, meaning the buffered area based on the source points/lines/polygons - not the feature location (unless it has a buffer of "0"). Hope that makes sense.
... View more
07-20-2023
08:23 PM
|
0
|
0
|
778
|
POST
|
When opening ArcGIS Pro with one of our organisational feature services or tile services, we "sometimes" get the below looking window appearing. You can't actually login through it (won't recognise our ArcGIS Online user credentials) and when you click Cancel, it loads the project with our custom basemap layers in ArcGIS Online sources broken whilst other feature services are ok. We are logged in to ArcGIS Online through ArcGIS Pro already and still are despite clicking Cancel, so not sure whats going on (as you can see at the top of the screenshot).
... View more
07-17-2023
10:28 PM
|
1
|
4
|
712
|
IDEA
|
One use case I can think of for us is that some maps have quite a lot of activity with many varied symbols, some of which may make it hard to see which line is your tracking history. Being able to customise your track will make it easier to see where you have been. This is also a "maybe" use case - people with colour blindness may want to vary symbology to suit their specific vision requirements?
... View more
07-17-2023
06:08 PM
|
0
|
0
|
428
|
IDEA
|
Ahhh - I forgot to scroll up - forgot it was fixed in 3.2, thus 3.1 testing was pointless.
... View more
07-16-2023
07:03 PM
|
0
|
0
|
488
|
IDEA
|
Nope - I still can't make it work either. Example below. No Distinct expression: With Distinct expression: Tried it with a text field as well with the same results. I don't see how this has been fixed. Will try reopen my support ticket.
... View more
07-16-2023
06:48 PM
|
0
|
0
|
833
|
POST
|
Would it be worth checking what you have set in your ArcGIS Online Organisation > Settings > Map > Basemap gallery
... View more
07-11-2023
10:12 PM
|
0
|
1
|
390
|
POST
|
Worth reading through this - it looks like Tracker functionality is being rolled into Field Maps. Deprecation Notice for Explorer, Collector, and Tracker (esri.com)
... View more
07-11-2023
07:16 PM
|
1
|
0
|
538
|
POST
|
Can you provide more information? Based on the assumption that you are working in the ArcGIS Online Map Viewer, have the layer table open and have selected records that way - the short answer would be no. There is no calculate attribute option that can be applied to records in Map Viewer. You would need to either use the Update data option through the layer item details page, or alternatively, through ArcGIS Pro.
... View more
07-09-2023
05:24 PM
|
0
|
0
|
403
|
POST
|
I think you're nearly there - I tried to recreate what you're doing and here's the changes I made: 1. First of all, ensure you've limited the Iterate Fields to only use numeric field types (it will fail trying to evaluate Value = 0 if it's a text field). If you only have numeric data in your table, then this won't be an issue. 2. Insert a String variable and enter your expression using the %Value% in-line variable there. Feed this into the Table Select as the Expression, and that should be job done.
... View more
07-06-2023
05:31 PM
|
1
|
1
|
464
|
BLOG
|
Handy info to have. Thanks for the update. It's good to get a little insight into how things are considered once they hit the Ideas board.
... View more
07-05-2023
05:26 PM
|
1
|
0
|
333
|
POST
|
Help - I'm trying to get the path to the "Routes" sub-layer of the Network Analysis layer created on Line 2, but can't figure out how to pass that information through to the correct variable (feature class identified at Line 52 and used at Lines 62 & 86). I suspect I'm not using the arcpy.Describe function correctly. What should I be using instead? # Create route analysis layer and solve routes
RAL = arcpy.na.MakeRouteAnalysisLayer(
network_data_source = nd_path,
layer_name = nd_layer_name,
travel_mode = travelmode,
sequence = "USE_CURRENT_ORDER",
time_of_day = None,
time_zone = "LOCAL_TIME_AT_LOCATIONS",
line_shape = "ALONG_NETWORK",
accumulate_attributes = None,
generate_directions_on_solve = "DIRECTIONS",
time_zone_for_time_fields = "LOCAL_TIME_AT_LOCATIONS",
ignore_invalid_locations = "SKIP"
)
print ("Route analysis layer created")
# Get the layer object from the Route Analysis Layer result object.
# The route layer can now be referenced using the layer object.
layer_object = RAL.getOutput(0)
# Get the names of all the sublayers within the route layer.
sublayer_names = arcpy.na.GetNAClassNames(layer_object)
# Stores the layer names that we will use later
routes_layer_name = sublayer_names["Routes"]
# Instantiate a ServiceArea analysis object.
service_area = arcpy.nax.ServiceArea(nd_path)
print ("Service area set")
# Get the desired travel mode for the analysis.
nd_travel_modes = arcpy.nax.GetTravelModes(nd_path)
travel_mode = nd_travel_modes[travelmode]
print ("Travel mode acquired")
# Set properties.
service_area.timeUnits = arcpy.nax.TimeUnits.Minutes
service_area.defaultImpedanceCutoffs = [5, 10, 15]
service_area.travelMode = travel_mode
service_area.outputType = arcpy.nax.ServiceAreaOutputType.Polygons
service_area.geometryAtOverlap = arcpy.nax.ServiceAreaOverlapGeometry.Split
print ("Network Analysis properties set. Adding locations...")
# Unrelated code removed...
print ("Routes calculated")
arcpy.CheckInExtension("Network")
print ("Network Analyst license checked-in")
####################### Append data #######################
datasets = arcpy.ListDatasets(feature_type='feature')
datasets = [''] + datasets if datasets is not None else []
for ds in datasets:
for fc in arcpy.ListFeatureClasses(feature_dataset=ds):
path = os.path.join(arcpy.env.workspace, ds, fc)
if (str(os.path.splitext(fc)[0])[:6]) == "Routes": ##### <<<<< This finds the Routes sublayer in the geodatabase\network dataset and assigns it to variable 'fc'
print ("Routes found - start append process")
# Variables - do not update
fcpath = arcpy.Describe(fc) ###### <<<<<<<< This is where I am trying to get the path to variable 'fc'
fc = str(fcpath) # Path to Feature Class
fsItemId = outfsID # Feature Service Item ID to update
layerIndex = sublayerID # Layer Index
# Create UUID variable for GDB
gdbId = str(uuid.uuid1())
# Function to Zip FGD
def zipDir(dirPath, zipPath):
'''Zip File Geodatabase'''
zipf = ZipFile(zipPath , mode='w')
gdb = os.path.basename(dirPath)
for root, _ , files in os.walk(dirPath):
for file in files:
if 'lock' not in file:
filePath = os.path.join(root, file)
zipf.write(filePath , os.path.join(gdb, file))
zipf.close()
print("Creating temporary File Geodatabase")
gdb = arcpy.CreateFileGDB_management(arcpy.env.scratchFolder, gdbId)[0]
# Export feature class to temporary File Geodatabase
fcName = os.path.basename(fc) ###### <<<<<<<< So that I can use the pathway here
fcName = fcName.split('.')[-1]
print(f"Exporting {fcName} to temp FGD")
arcpy.conversion.ExportTable(fc, gdb + "\\" + fcName) # Current error from results below: Creating temporary File Geodatabase Exporting <geoprocessing describe data object object at 0x000001AE661C6070> to temp FGD Script failed - email notification sent to gis@fpc.wa.gov.au Exception: Failed to execute. Parameters are not valid. ERROR 000732: Input Table: Dataset <geoprocessing describe data object object at 0x000001AE661C6070> does not exist or is not supported ERROR 000354: The name contains invalid characters Failed to execute (ExportTable).
... View more
06-29-2023
05:52 PM
|
0
|
0
|
319
|
POST
|
It's interesting. It was definitely working for me locally - just not when run server based. I've found an alternate solution now using the FeatureLayer module. Updated code below. # Variables - update these lines
SDPRoutes = "https://services3.arcgis.com/1GMgEwgl0qHnrBQf/arcgis/rest/services/Distances_Table/FeatureServer/0" # Feature service containing routes to be updated
import arcpy, time, os
from arcgis.gis import GIS
from arcgis.features import FeatureLayer
# Overwrite Output
arcpy.env.overwriteOutput = True
arcpy.CheckOutExtension("Network")
print ("Network Analyst license checked-out")
# Create GIS object
print("Connecting to AGOL")
### Access the stored password with keyring and sign into the GIS # https://community.esri.com/t5/arcgis-online-blog/connect-to-the-gis-in-python-scripts-without/ba-p/889867
import keyring
pw = keyring.get_password("ArcGISOnline", "MyUserName")
gis = GIS("https://fpcwa.maps.arcgis.com", "MyUserName", pw)
print("Connected to the GIS")
# Create temporary FGDB
sdproutesgdb = arcpy.CreateFileGDB_management(arcpy.env.scratchFolder, "sdproutes")
print ("Temp FGDB created")
arcpy.env.workspace = arcpy.env.scratchFolder + "\\sdproutes.gdb"
print ("Workspace set to temp FGDB")
fl = FeatureLayer(SDPRoutes)
fs = fl.query()
ExistingSDPRoutes = fs.save(arcpy.env.workspace, "ExistingSDPRoutes")
print ("Existing SDP Route distances exported")
ExistingSDPRoutes = arcpy.management.CalculateField(
in_table = ExistingSDPRoutes,
field = "Name",
expression = '!Name!.split("_")[0]',
expression_type = "PYTHON3",
code_block = "",
field_type = "TEXT",
enforce_domains = "NO_ENFORCE_DOMAINS"
)
... View more
06-27-2023
10:24 PM
|
1
|
1
|
392
|
POST
|
Hi brains trust. I'm writing a python script that uses a feature service (table) as an input for an Export Table tool. I have the code working perfectly on my PC but not on the server where I intend to schedule it. They are running the same versions of Pro and python. The code is below, along with the error I'm getting. Is there a better way to do this (like I mentioned, this works fine on my PC). # Variables - update these lines
SPDRoutes = "https://services3.arcgis.com/1GMgEwgl0qHnrBQf/arcgis/rest/services/Distances_Table/FeatureServer/0" # Feature service containing routes to be updated
import arcpy, time, os
# Overwrite Output
arcpy.env.overwriteOutput = True
import keyring
pw = keyring.get_password("ArcGISOnline", "MyUserName")
arcpy.SignInToPortal("https://fpcwa.maps.arcgis.com", "MyUserName", pw)
print("Connected to the GIS")
# Create temporary FGDB
sdproutesgdb = arcpy.CreateFileGDB_management(arcpy.env.scratchFolder, "sdproutes")
print ("Temp FGDB created")
arcpy.env.workspace = arcpy.env.scratchFolder + "\\sdproutes.gdb"
print ("Workspace set to temp FGDB")
# Compare existing SDP Routes to Updated SDP Harvest Plan
ExistingSDPRoutes = arcpy.conversion.ExportTable(
in_table = SPDRoutes,
out_table = arcpy.env.workspace + "\\ExistingSDPRoutes",
where_clause = "",
use_field_alias_as_name = "NOT_USE_ALIAS",
field_mapping = 'Name "Name" true true false 1024 Text 0 0,First,#,Plantation SDP Route Distances,Name,0,1024;Total_Length "Total_Length" true true false 0 Double 0 0,First,#,Plantation SDP Route Distances,Total_Length,-1,-1;GlobalID "GlobalID" false false true 38 GlobalID 0 0,First,#,Plantation SDP Route Distances,GlobalID,-1,-1;CreationDate "CreationDate" false true true 8 Date 0 0,First,#,Plantation SDP Route Distances,CreationDate,-1,-1;Creator "Creator" false true true 128 Text 0 0,First,#,Plantation SDP Route Distances,Creator,0,128;EditDate "EditDate" false true true 8 Date 0 0,First,#,Plantation SDP Route Distances,EditDate,-1,-1;Editor "Editor" false true true 128 Text 0 0,First,#,Plantation SDP Route Distances,Editor,0,128'
)
print ("Existing SDP Route distances exported") Exception: Failed to execute. Parameters are not valid. ERROR 000732: Input Table: Dataset https://services3.arcgis.com/1GMgEwgl0qHnrBQf/arcgis/rest/services/Distances_Table/FeatureServer/0 does not exist or is not supported Failed to execute (ExportTable).
... View more
06-27-2023
06:20 PM
|
0
|
3
|
418
|
Title | Kudos | Posted |
---|---|---|
1 | 08-16-2023 07:35 PM | |
1 | 04-23-2023 05:11 AM | |
1 | 04-25-2023 06:09 PM | |
3 | Monday | |
1 | a week ago |
Online Status |
Online
|
Date Last Visited |
2 hours ago
|