|
POST
|
Hi @berniejconnors They were replaced by more recent images. I just wonder why only few map services have this behaviour and others dont. Have an idea of the cause?
... View more
06-27-2023
12:42 PM
|
0
|
4
|
1655
|
|
POST
|
Hi @EdZabrensky I had a look in the serviceconfiguration.json and the supportedImageReturnTypes is set to "URL" What should be the normal value? I dont know where this parameter can be changed and how it was changed for that service if it was...
... View more
06-27-2023
12:38 PM
|
0
|
1
|
1657
|
|
POST
|
Hi, I have noticed that some of my dynamic MapServices published on Enterprise 10.6.1 are automatically caching the map images and legend symbols in the arcgisoutput directory of the service. For instance, _ags_map2f122ea0f38e4d31b3d5d40371eee940.png is an example of a cached map image and _ags_legend_f171075727684b9793028c338688ded8.png is an example of cached legend symbol. The cache parameter of the service is disabled but a lot of png are cached in that directory each time someone use the map service in a map. In the web app builder map, I can see in the developer tools that the requests are made to the cached png instead of the dynamic map service. Why is this happening? How can I stop that? Thank you!
... View more
06-27-2023
07:03 AM
|
0
|
10
|
2055
|
|
POST
|
The solution I have found with Postgres EXTRACT(WEEK FROM mydatefield) = EXTRACT(WEEK FROM CURRENT_DATE) + 1 AND EXTRACT(YEAR FROM mydatefield) = EXTRACT(YEAR FROM CURRENT_DATE)
... View more
06-21-2023
01:09 PM
|
0
|
0
|
1241
|
|
POST
|
Hi, Is there a way to export the feedbacks and comments of a project discussion? I have take a look in the Data model but it seems they are not stored in a UrbanDatabase. Is it correct? Ideally, I would like to export the positionned pins along with the comments. Thank you.
... View more
04-12-2023
11:09 AM
|
0
|
1
|
781
|
|
POST
|
Good day @MaxNilsson , Splitting our city territory in smaller zones with a different urban model for each is an option that we are considering. We would prefer exploring other solutions before going that way. Thank you for your suggestion, Maxime
... View more
02-07-2023
06:43 AM
|
0
|
0
|
1137
|
|
POST
|
Good day @Till_Schmid , Yes, the loading time issue that our urban users reported is for displaying the projects list in the overview. When we stay in the urban overview, we can open/close the list without loading time (except the initial loading time), but if we open a project, when we go back to the overview, displaying the projects list again can take a lot of time. In my experience, the loading time can vary during the day from 20-30s to more than a minute. Our organization is mainly using urban during meeting between, promoters, urbanists and city council, so this waiting time is noticed. Thank you very much for your support. I would be glad to provide further details if needed. Maxime
... View more
02-07-2023
06:38 AM
|
0
|
1
|
1137
|
|
POST
|
Hi, I am looking for a way to clone projects from UrbanDesignDatabases to the model UrbanDatabase when the project is completed and will not be edited anymore. I tryed the Add from feature layer from the model configuration menu, selecting a UrbanDesignDatabases and the UrbanEvents layer. Howerver, the scenarios and the project design context were not cloned. Adding future buildings from UrbanDesignDatabase does not works neither. The reason for doing this is that we have over 130 projects in our Urban model all within UrbanDesignDatabases. As we add more and more projects, we experience a longer loading time when we are moving from a project to another. We would like to test if the loading time can be improved if we migrate our closed projects in the model UrbanDatabase. Thank you for your advices with this! Greeting, Maxime
... View more
02-06-2023
01:26 PM
|
0
|
5
|
1237
|
|
POST
|
Sorry, this is a typo error in my code. The library is requests and it is installed by default with python3. Yes I can share an online notebook that reproduce the problem. I am using Google Colab, I hope this is correct with you? I just want to add that my UrbanModel is private, and I can access its private UrbanDatabase projects but not its private UrbanDesignDatabases, which I think it's not normal. Maybe there is some limitations with the oauth2 token of "client_credential" type (esri doc). As I want to automatize some routines with the Urban API, having to sign in manually with a username/password before is not convenient. Thanks again for taking the time helping me, it's really appreciated! P.S.: I'll share you a link to Collab in private soon if it's ok.
... View more
02-02-2023
07:37 AM
|
1
|
0
|
2479
|
|
POST
|
Hi, I am trying to use oauth2 with python in order to get a token that will allow me to query content in my organization with the arcgis library. Everything works correctly, except the fact that when I sign in to ArcGIS Online with the oauth2 token, I only have access to the public items. I am administrator in my organization and I have created my oauth2 application in developers.arcgis.com In python I am using the following code to get a token using the clientId and clientSecret import request
import arcgis
def get_client_oauth2_token(portal_url, client_id, client_secret):
url = "{}/sharing/rest/oauth2/token".format(portal_url)
params = {
'client_id': client_id,
'grant_type': "client_credentials",
'client_secret': client_secret
}
r = requests.post(url, params=params, verify=True)
return r.json()
token = get_client_oauth2_token("https://www.arcgis.com", "my_client_id", "my_client_secret")["access_token"]
gis = arcgis.gis.GIS("https://www.arcgis.com", token=token, referer="https")
items = gis.content.search("", item_type="Map Service", max_items=100)
for item in items:
print("{} - {}".format(item.id, item.access)) Only public items are returned. I dont receive any error. What is wrong with my oauth2 authentification here? Thank you for your help!
... View more
02-01-2023
06:06 AM
|
0
|
0
|
731
|
|
POST
|
The oauth2 application is created by me (DemersM) from the dashboard in developers.arcgis.com I use the Client ID and Client Secret from that oauth2 application above to get a token like this: import requests
from sgqlc.operation import Operation
from sgqlc.endpoint.http import HTTPEndpoint
from . import urban_api_schema as schema
def get_client_oauth2_token(portal_url, client_id, client_secret):
url = "{}/sharing/rest/oauth2/token".format(portal_url)
params = {
'client_id': client_id,
'grant_type': "client_credentials",
'client_secret': client_secret
}
r = requests.post(url, params=params, verify=True)
return r.json()
def query_urban_design_db_projects(endpoint_url, urban_model_id, token):
endpoint = HTTPEndpoint(endpoint_url, {"Authorization": "Bearer " + token, "Content-type": "application/json", "Accept": "application/json"})
op = Operation(schema.Query)
projects = op.urban_model(urban_model_id=urban_model_id).urban_design_databases.projects(
paging={"limit": 100}
)
attributes = projects.attributes()
attributes.event_name()
result = endpoint(op)
errors = result.get("errors")
if errors:
raise Exception(errors)
return result
token = get_client_oauth2_token("https://www.arcgis.com", "my_client_id", "my_client_secret")["access_token"]
projects = query_urban_design_db_projects("https://urban-api.arcgis.com/graphql", "703144ba056e43e59f373b971431a562", token)
print(projects) Thanks again for your help!
... View more
01-31-2023
07:46 AM
|
0
|
0
|
2488
|
|
POST
|
Thank you so much for sharing this! I will definately go that way!
... View more
01-30-2023
11:31 AM
|
0
|
0
|
2220
|
|
POST
|
Hi, We want to remove a set of mapServices that are hosted on ArcGIS Enterprise. We would like to know if some items in ArcGIS Online were created using those mapServices before pulling the plug. Is there a way to scan ArcGIS Online content using a specific url so items that were added "from the web" could be find? Thank you!
... View more
01-30-2023
11:12 AM
|
1
|
2
|
2255
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 06-03-2024 10:33 AM | |
| 2 | 05-14-2025 10:45 AM | |
| 1 | 04-12-2022 07:00 AM | |
| 1 | 02-26-2025 05:37 AM | |
| 1 | 01-30-2023 11:12 AM |
| Online Status |
Offline
|
| Date Last Visited |
a month ago
|