|
POST
|
For future reference. I had similar problem this week, but it was not with the legend. I was using arcgis javascript api and trying to change the color (symbology) of the selected feature before sending the webmap json to the export webmap service. The problem was with the whole layerDefinition object. If it was present in the json, the layer was not shown in the exported map image. But if I removed the layerDefinition object, the layer was shown entirely in the final exported image. It seems that for the configuration inside layerDefinition to work, the service for which you are changing symbology (or label) needs to support dynamic layers as described in the docs: "... you can optionally choose to allow clients of the server to dynamically change layer appearance and behavior in your map service. Determining which layers will appear in a map, layer symbology, layer order and position, labeling, and more, can be achieved on the server through the use of dynamic layers." The solution for me was to turn on the dynamic layers support for the service I wanted to change the symbology. The steps for enabling dynamic layers support can be found here.
... View more
06-10-2019
01:07 PM
|
0
|
0
|
922
|
|
POST
|
This question has been asked for some time now. I had the same doubt today and it seems arcpy still doesn't have such a function, but here it goes an alternative: import os import arcpy def sdeConnections(): appdata = os.getenv('APPDATA') arcgisVersion = arcpy.GetInstallInfo()['Version'] arcCatalogPath = os.path.join(appdata ,'ESRI',u'Desktop'+arcgisVersion, 'ArcCatalog') sdeConnections = [] for file in os.listdir(arcCatalogPath): fileIsSdeConnection = file.lower().endswith(".sde") if fileIsSdeConnection: sdeConnections.append(os.path.join(arcCatalogPath, file)) return sdeConnections
... View more
03-25-2019
11:12 AM
|
1
|
0
|
1329
|
|
POST
|
This seems to be a good sample from the docs if anybody else is trying to do it: Update legend text with renderer | ArcGIS API for JavaScript 3.26
... View more
11-12-2018
08:15 AM
|
1
|
0
|
1436
|
|
POST
|
I have similar issue. After upgrading arcgis server (portal and datastore) from 10.4 to 10.5.1 some of theses services are missing. I recently had a problem to unregister datastore from arcgis manager because the service in Utilities\GeocodingTools was missing. After recreating the service the problem was solved. But I still have some of theses System\* services missing. Some people are having problem in the process of upgrading from version 10.4 to 10.5.1 (as seen here ArcGIS 10.4.1 to 10.5 Upgrade Failed: REST handler inaccessible... ), I'm wondering if this is related to these missing services.
... View more
11-07-2018
09:36 AM
|
0
|
0
|
3575
|
|
POST
|
Hi David, I 'solved' the problem. After rolling back to arcgis server version 10.4 I uninstalled it and installed the version 10.5.1. I had to do a lot of configuration after that, I had to republish our GPServers and Mapservers. I know that's not what you wanted to 'hear', sorry.
... View more
11-07-2018
09:23 AM
|
0
|
0
|
4336
|
|
POST
|
Yesterday I had the same issue when trying to upgrade our server from arcgis server 10.4 to version 10.5.1. The server had all the following components installed: - Portal for ArcGIS - ArcGIS Web Adaptor - ArcGIS Server - ArcGIS Data Store I had to upgrade each component following the order described in the manual you linked above. When reaching the same step 6 of the manual I had problem, as happened with you. Except that in my case, the manager page didn't open automatically so that I could continue the upgrade clicking the "Continue Server Upgrade" button. I tried to open the manager page manually, but found a page with two other options "Create new Site" and "Join Existing Site". At that point, I knew something went wrong but I still don't know what. I had noticed that port 6443 wasn't working too, because I tried to open manager using it but without success. I looked at the admin page you've mentioned and the Protocol configuration was set to 'HTTP and HTTPS'. What I didn't do was to change it to 'HTTP' and then change it back to 'HTTP and HTTPS'. Fortunatly, I had a way to roll back that server to the point before the upgrade started. So I did it. Now the components are still in version 10.4, again. Hopefully, the information you have provided will help us upgrade it with success.
... View more
03-07-2018
04:21 AM
|
0
|
2
|
4336
|
|
POST
|
I've realized that the images should be grouped into a single one in a raster dataset before publishing it as a server. At least the problem is registered now, if anynone has the same issue. To solve that I did the following: - I've created a Raster dataset in a FileGeodatabase. - Then I loaded those 1800 tiffs inside the raster dataset. - I registered the parent folder of the filegeodatabase as a data store in arcgis server. - Replaced all 1800 references in the mxd to a single one, the raster dataset. - Finally, I published it on arcgis server. - I've generated the map cache for the service. Finally, the Print widget of web appbuilder and the **Export Web Map** woked as expected.
... View more
03-02-2018
06:00 AM
|
0
|
0
|
1158
|
|
POST
|
Hello guys, I'm struggling with an issue I've encontered after publishing an ortophoto in our Arcgis Server. We don't have Image server extension so I had to publish it as a Mapserver. The mxd is full of references to geotiffs (1800 aproximately). I'm supposing this is the root of the problem. I have generated the cache for this mapserver and I can view it using Map Viewer of Portal Arcgis. But I can't generate an image of it using the default Arcgis PrintingTools (https://webadaptor.domain/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task). I have found that if I let the printing tools link blank in my Portal Arcgis Settings, the Print widget of Map Viewer will use another printing tool located at: https://webadaptor.domain/sharing/tools/newPrint/GPServer/Export%20Web%20Map (See attached image) That misterious tool will generate the image correctly, but I can't find it in the docs, so that I learn how to use it. The PrintingTools of my Arcgis Server won't generate the image and will give the following error response: {
"error":{
"code":400,
"message":"Unable to complete operation.",
"details":[
"Error executing tool. Export Web Map Task Job ID: [jobidhere] : ERROR 999999: Error executing function.
Not enough memory to create requested bitmap.
Failed to execute (Export Web Map).
Failed to execute (Export Web Map Task)."
]
}
} I've seen some public Arcgis Servers using that newPrint tool as a GPServer. Does anybody have some info about it?
... View more
02-22-2018
05:34 AM
|
0
|
1
|
1476
|
|
POST
|
I have solved the problem changing map.navigationMode to 'classic'. Previously, it was 'css-transforms'. It seems that css transforms aren't supported yet by html2canvas.
... View more
01-23-2018
04:33 AM
|
0
|
0
|
1912
|
|
POST
|
Hello, guys. I'm using js api 3.x and that html2canvas library to generate map image on the client side. If I add a feature to the map and generate the image, all goes well. But, if I add a feature to the map, pan the map a little, the feature doesn't show in the final image. If I zoom in or out and try to generate the image again, the feature is shown in the final image. Have any of you used successfully this library to generate map image? I can't use the Print widget to create the image on the server because I get an error with the message "Not enough memory to create requested bitmap". This error started after I publish a Mapserver of an orthophoto. Although I have generated the cache, it seems the server is not using the cache to create the image. EDIT: I have found that the issue happens only on google chrome, but it all works well on firefox. But, I still have no clue how to solve it on chrome.
... View more
01-23-2018
03:15 AM
|
0
|
1
|
2824
|
|
POST
|
Hello, Warren. We have a customized web appbuilder application that has protected widgets and protected maps. That function helpped me to login on our portal for arcgis without the need of the default popup of authentication. If the default popup works for you, you could just use something like this snippet: require([ 'esri/arcgis/Portal' ], function( arcgisPortal ) { var PORTAL_ARCGIS_URL = ''; function openAuthPopupIfUserNotSignedIn() { var portal = new arcgisPortal.Portal(PORTAL_ARCGIS_URL); portal.signIn().then(function(portalUser) { console.log(portalUser.credential); // portalUser.credential.token has what you need to make requests to protected resource, // if the user you provided has access to it. }, function(error) { console.err(error); }); } openAuthPopupIfUserNotSignedIn(); }); To test either this snippet or the previous function you could access your web appbuilder app and put them on the browser debugger. In both casses, after the authentication completes, the global object esri.id.credentials[0].token will have the token to use for subsequent requests to protected resources.
... View more
12-08-2017
03:36 AM
|
1
|
0
|
1363
|
|
POST
|
# Get token for the request ip curl -X POST http://domain/arcgis/tokens/generateToken -H 'content-type: application/x-www-form-urlencoded' -d "f=json&username=USER&password=PASSWORD&client=requestip&encrypted=false" # Get token for the specified referer curl -X POST http://domain/arcgis/tokens/generateToken -H 'content-type: application/x-www-form-urlencoded' -d "f=json&username=USER&password=PASSWORD&client=referer&referer=http://example.com.br&encrypted=false" # Get token for some other IP of you choice curl -X POST http://domain/arcgis/tokens/generateToken -H 'content-type: application/x-www-form-urlencoded' -d "f=json&username=USER&password=PASSWORD&client=ip&ip=XXX.XXX.XXX.XXX&encrypted=false" # Testing the token curl -H "Content-Type: application/json" -X GET "http://domain/arcgis/rest/services/SOME_SECURE_SERVICE/MAPSERVER?f=json&token=PUT_THE_TOKEN_HERE"
... View more
07-28-2017
10:15 AM
|
0
|
0
|
4074
|
|
POST
|
// This works for apps created with web appbuilder. function login(user, password){ var serverInfo = esri.id.serverInfos[0]; var userInfo = {}; userInfo.username = user; userInfo.password = password; esri.id.generateToken(serverInfo, userInfo).then(function (response){ response.server = serverInfo.server; response.userId = user; esri.id.registerToken(response); }); }
... View more
07-21-2017
01:15 PM
|
0
|
2
|
1363
|
|
POST
|
Hi, I would like to know if there is a way to change the color of a markerSymbol dynamically. I'm using marker symbol with a SVG path. The second question is if I can use a svg with multiple paths on markerSymbols.
... View more
04-03-2017
06:52 AM
|
0
|
0
|
1078
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-12-2018 08:15 AM | |
| 1 | 08-06-2020 10:57 AM | |
| 1 | 09-25-2019 07:31 AM | |
| 1 | 03-25-2019 11:12 AM | |
| 1 | 12-08-2017 03:36 AM |
| Online Status |
Offline
|
| Date Last Visited |
09-21-2021
07:41 AM
|