|
POST
|
Yes, I realized I was not a Professional or Professional Plus - thank you!
... View more
03-04-2025
09:41 AM
|
0
|
0
|
701
|
|
POST
|
I am an administrator for my organization, and have not opted out of beta programs per the security section in my organization settings. However, when I open the analysis pane in MapViewer, I don't see a tab for ModelBuilder - it is only available for those organizations in the early adopter program, or am I doing something wrong
... View more
03-04-2025
09:12 AM
|
0
|
2
|
708
|
|
POST
|
I published a feature class from Pro that consists of completely vertical lines (created from 2 points with same xy coords but one z value is the elevation, and the other z value is 0). These display fine in a scene in ArcGIS Pro, but do NOT display in the SceneViewer in ArcGIS Online when I publish as a feature service. I've done all the basic troubleshooting - it's z-enabled, symbology is correct, etc. etc. I can't really check the visualization in the MapViewer for obvious reasons, but since it displayed correctly in Pro I figured it would work in Online. Am I doing something wrong? Alternatively I could use the ground-based xy points, and extrude to the altitude, but I can't figure out how to extrude a point by an altitude value in the SceneViewer - it adjusts the width of the 3d symbol, but not the height.
... View more
12-11-2024
07:32 AM
|
0
|
3
|
773
|
|
POST
|
@SeanCulpan No resolution. Curious to hear your sad story of failure if it has to do with collaboration - I've been having major issues maintaining a functioning distributed collaboration environment between AGE and AGOL and am considering just updating AGOL data sources separately.
... View more
12-02-2024
08:53 AM
|
0
|
0
|
765
|
|
POST
|
Is it possible / is it in the roadmap to support custom batch geocoding solely in ArcGIS Online? Currently, if I make a locator service, it has to be published to Enterprise, and if Enterprise is behind the firewall, we can't even perform batch geocoding in AGOL. But for users who want to convert a CSV of location identifiers to a feature service using a customer locator service, you have to use Enterprise. It is possible to use AGOL? I can't be the first person to want this capability, so curious why its not in the roadmap, or simply a "we have no plans to implement this"
... View more
11-19-2024
08:44 AM
|
0
|
0
|
318
|
|
POST
|
I've been looking for a way to automate the creation of multipatch features based on updating feature services, and haven't found anything. When perusing the REST endpoints in AGOL recently, I saw the following at the base endpoint of a FeatureService. I have non been able to find any documentation for the "Create 3D Layer" though, and if it has ties to the Python API or AGOL UI.
... View more
11-19-2024
07:29 AM
|
0
|
0
|
536
|
|
POST
|
Anyone come to any solutions here - running into the same exact issue and tired of the sharing/unsharing hamster wheel
... View more
11-19-2024
07:13 AM
|
0
|
0
|
1159
|
|
POST
|
Thanks @ChristopherCounsell I was wondering if it was a threshold thing, but Esri told us with the M4 and that number of users we shouldn't be close. We also spoke with @MarianneFarretta on one of our support calls. We've looked at the DataStore metrics and the CPU is NOT plateauing, but still intermittently receive those errors - seems like a quota limit could be reached without stressing the datastore on an M4 though. Out of curiosity, when you say "view the number of request units and total against your organization", what exactly are you referring to? How would we do that?
... View more
11-06-2024
12:35 PM
|
0
|
1
|
770
|
|
POST
|
Hello, we currently have an M4 Premium DataStore in our organization - we have a custom JavaScript SDK application that is used by less than 1000 users simultaneously, though the application does implement cache busting using the request interceptor to get around the 30 second cache in ArcGIS Online layers. Intermittently, we get a 200 response from a REST query, where the content of the response is {"error":{"code":503,"message":"An error occurred.","details":[]}} Incidentally this response causes a CORS error because it doesn't have the appropriate headers, AND a JS SDK error (failure to load tile) because the SDK is expecting a valid PBF response. Ignoring for a moment the best practices around cache busting, what are we to make of this error? Is it related to load on the DataStore (currently an M4), at the API level, or something else entirely?
... View more
11-06-2024
09:52 AM
|
0
|
0
|
388
|
|
POST
|
Hello, we currently have an M4 Premium DataStore in our organization - we have a custom JavaScript SDK application that is used by less than 1000 users simultaneously, though the application does implement cache busting using the request interceptor to get around the 30 second cache in ArcGIS Online layers. Intermittently, we get a 200 response from a REST query, where the content of the response is {"error":{"code":503,"message":"An error occurred.","details":[]}} Incidentally this response causes a CORS error because it doesn't have the appropriate headers, AND a JS SDK error (failure to load tile) because the SDK is expecting a valid PBF response. Ignoring for a moment the best practices around cache busting, what are we to make of this error? Is it related to load on the DataStore (currently an M4), at the API level, or something else entirely?
... View more
11-06-2024
09:51 AM
|
0
|
0
|
434
|
|
POST
|
Hello, we currently have an M4 Premium DataStore in our organization - we have a custom JavaScript SDK application that is used by less than 1000 users simultaneously, though the application does implement cache busting using the request interceptor to get around the 30 second cache in ArcGIS Online layers. Intermittently, we get a 200 response from a REST FeatureService query, where the content of the response is {"error":{"code":503,"message":"An error occurred.","details":[]}} Incidentally this response causes a CORS error because it doesn't have the appropriate headers, AND a JS SDK error (failure to load tile) because the SDK is expecting a valid PBF response. Ignoring for a moment the best practices around cache busting, what are we to make of this error? Is it related to load on the DataStore (currently an M4), at the API level, or something else?
... View more
11-06-2024
09:49 AM
|
0
|
3
|
800
|
|
POST
|
I'm curious if anyone has a strategy to programmatically (search API, Python, etc.) get a list of all survey items in an organization (and hence all survey owners as well).
... View more
10-31-2024
08:39 AM
|
0
|
1
|
676
|
|
POST
|
@JakeSkinner Thanks - though this seems a little beefy for a lot of use cases. But my question is specific to large feature classes - I would like to use the following two methods: def truncate_portal_data(fl_url:str)->object:
"""Truncates a feature layer or able through the REST endpoint
Args:
fl_url (str): REST endpoint of the feature layer
Returns:
object: results object
"""
ids = fl_url.query(return_ids_only=True)['objectIds']
results = fl_url.edit_features(deletes=ids) if len(ids)>0 else {"results":"No features to delete"}
return results
def update_portal_data(df:pd.DataFrame, fl_url:str, truncate:bool=True, chunk_size:int=500)->object:
import numpy as np
from time import sleep
"""Adds features from a dataframe to a Portal / AGOL feature service.
Args:
df (pd.DataFrame): DataFrame from which to update features
fl_url (str): Feature service URL
truncate (bool, optional): Truncate table before updating. Defaults to True.
Returns:
object: results of update operation
"""
if truncate:
truncate_portal_data(fl_url)
numchunks = int(len(df)/chunk_size) or 1
chunks = np.array_split(df,numchunks)
for chunk in chunks:
fl_url.edit_features(adds=chunk.spatial.to_featureset())
sleep(5)
return True But my question is is there any reason your script is preferable over the much simpler API methods above for large feature classes?
... View more
10-22-2024
11:21 AM
|
0
|
0
|
1366
|
|
DOC
|
This is an excellent script - thought seems a little beefy for a simple truncate and append if your schema is the same. Seems like doing it with two methods is simpler. However I was trying to understand if this was supported in truncate/appending large feature classes in AGOL. def truncate_portal_data(fl_url:str)->object:
"""Truncates a feature layer or able through the REST endpoint even if sync is enabled
Args:
fl_url (str): REST endpoint of the feature layer
Returns:
object: results object
"""
ids = fl_url.query(return_ids_only=True)['objectIds']
results = fl_url.edit_features(deletes=ids) if len(ids)>0 else {"results":"No features to delete"}
return results
def update_portal_data(df:pd.DataFrame, fl_url:str, truncate:bool=True, chunk_size:int=500)->object:
import numpy as np
"""Adds features from a dataframe to a Portal / AGOL feature service.
Args:
df (pd.DataFrame): DataFrame from which to update features
fl_url (str): Feature service URL
truncate (bool, optional): Truncate table before updating. Defaults to True.
Returns:
object: results of update operation
"""
if truncate:
truncate_portal_data(fl_url)
numchunks = int(len(df)/chunk_size) or 1
chunks = np.array_split(df,numchunks)
return list(map(lambda x: fl_url.edit_features(adds=x.spatial.to_featureset()), chunks))
... View more
10-18-2024
07:28 AM
|
0
|
0
|
9348
|
|
POST
|
I'm curious what the best practices are for truncate and load for large datasets into ArcGIS Online feature services using Python. My inclination is to use a spatial data frame, the manager.truncate and edit_features methods on the featurelayer class. However is writing 100k records using edit_features supported? Should I break it up into chunks of 10k and load that way? Maybe wait 10 seconds between each load? Another patten (one I don't like is much) is using a CSV, shapefile, or something else and then doing the "overwrite layer" pattern. However in most cases I am querying the source data from an API or database elsewhere so its easier to create a SDF instead of a shapefile or CSV. Yet another is creating a new feature service from the data and choosing replace layer. The context here is I will sometimes get some unexplained errors using the edit_features method - it will just crash and say "json decode error".
... View more
10-16-2024
09:03 AM
|
0
|
2
|
1501
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-08-2025 11:33 AM | |
| 1 | 11-07-2023 08:32 AM | |
| 2 | 10-01-2025 06:52 AM | |
| 5 | 09-08-2025 07:31 AM | |
| 2 | 07-31-2025 08:39 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|