POST
|
That is an excellent resource! Thank you very miuch. I have no specific use cases, but we set up Open Data Portals for clients and I simply wanted to be educated.
... View more
04-14-2016
01:01 PM
|
0
|
2
|
549
|
POST
|
I have been unable to find a comprehensive document that describes all of the query parameters that can be used to query Open Data datasets. There is a section of the documentation that identifies the keyword, q, and group_id parameters. By experimenting with the interface, I can find the following additional parameters sort_by=[updated_at | name | relevance] sort_order=[asc] (trying desc or dsc did not appear to affect the results) Special value of q=* to return all datasets Is there any official documentation of the full set of supported query parameters for filtering the datasets?
... View more
04-05-2016
11:44 AM
|
0
|
4
|
2762
|
POST
|
We recently encountered an error where iOS devices were failing to log into a newly set up AD FS endpoint with a rather cryptic error: "The required parameter RelayState was missing or invalid". The error was appearing in the AD FS event logs on the window server. It appears that this error is usually caused by the SAML cookies exceeding the 4kb cookie limit , which results in a truncated cookie being sent to the endpoint, which is certainly invalid. ADFS 2.0 Web SSO not working in current versions of Safari for Windows or iOS It turned out that the workaround to the problem was to uncheck the settings under Enterprise Login advanced settings Encrypt Assertion Enable Signed Request Propagate logout to Identity Provider For some reason, enabling all of these options resulted in cookies that were too large and caused the failures. Hopefully this information can help others who run into the same issue.
... View more
03-29-2016
01:53 PM
|
1
|
0
|
3380
|
POST
|
The Open Data Portal documentation seems to be clear that only hosted data items are marked as being owned by an organization. However, we have clients that develop their own data sets and are the authoritative sources for that data. Are there any plans to provide signed services in the future? Something where the ArcGIS Online organization has a public key and ArcGIS Server services are signed with a private key so that ownership of the services can be established and reflected in the Open Data Portal data manager?
... View more
01-05-2016
12:10 PM
|
0
|
0
|
2215
|
POST
|
I've installed Portal onto an Amazon-hosted Server (not using the Esri AMIs, but just a regular Windows instance). The installation process seemed to finish without any problems and I was able to set up the Web Adapter along with a self-signed certificate for testing. The Portal is using the built-in Identity Store. The problem is that I cannot log into the web interface. If I try to go to, say, https://localhost/portal/home/content.html, I get redirected to the Sign in page, enter my credentials, the authentication appears to succeed as the browser starts to load the content page, but then I am redirected back to the sign in page. I have tried logging in with port the portal administrator account that was set up during installation and a regular user account. The strange thing is that I am able to log into the portal directory without a problem and can view the user accounts at https://localhost/portal/sharing/community/users/<username>. I can update the user account information and create new users from the directory as well. The log files do not show any immediately useful information as to why the web interface is not able to keep the user's login active. Any suggestions?
... View more
10-05-2015
10:05 AM
|
0
|
0
|
2525
|
POST
|
I have a python script tool that I publish as a geoprocessing service. There are several places in my code where I want to split the longName of a layer into its components using the python split() method: prefix = lyr.longName.split("\\")[0] However, when the script tool is published, the code transformation that ArcGIS Server applies detects the "\\" string as a path and assigns it to an g_ESRI_variable that causes the code to fail. Here is code that exists in ArcGIS server extracted/ folder g_ESRI_variable_2 = os.path.join(arcpy.env.packageWorkspace, u'arctoolbox') .... prefix = lyr.longName.split(g_ESRI_variable_2)[0] Is there a way to indicate that a particular string literal should be let alone? Or perhaps an alternative way of performing the split that will not trigger the path replacement?
... View more
07-15-2014
05:50 AM
|
0
|
0
|
2012
|
POST
|
It shouldn't be an issue. I'd just sort of try some things at this point, one of which would be to save the image as a PNG. I'd also do some diagnostic messaging just in case: if web_map_object.has_key("staticLegend"): legendPath = os.path.join(template_path, "legends", web_map_object["staticLegend"]) arcpy.AddMessage("Setting legend to {0} -- is file? {1}".format(legendPath, os.path.isfile(legendPath))) staticLegend.sourceImage = legendPath Solved! The call to os.path.isfile was returning false, which put me on the right track. The critical difference between the development server and the production server was that, on the production server, the folder of MXD templates is located on a different drive than the AGS install (Drive 😧 ). Although the relative path to the file was correct, it was not getting joined to the drive letter correctly, which caused python to look for the file relative to the current working directory of drive D:, as stated in python's os.path.join docs. The path that was created was "D: path\\to\\my\\image.jpg", but needed to be "D:\\path\\to\\my\\image.jpg". Thanks for all of your help; even though everything I had posted was not related to the underlying problem at all! 🙂
... View more
06-20-2014
10:44 AM
|
0
|
0
|
630
|
POST
|
Hmm. The only way other you'd get that particular error message is if arcgis either could not find or could not open the image file. Can it cause a problem if I try to set the sourceImage to a different file format than was originally saved in the MXD, e.g. create a PICTURE_ELEMENT from a PNG and then set the sourceImage to a JPEG?
... View more
06-19-2014
12:43 PM
|
0
|
0
|
630
|
POST
|
Does the map document have data-driven pages enabled? Is the picture element set to either 1) use a field as the image path or 2) use an attachment as the image source? If so, that is the reason you can't set the image path. Data Driven Pages are not enabled and the Picture Source is set to "Simple Path". I did notice that the MXD on the production server had the "Save Image as Part of Document" option checked while the test server MXD did not. I unchecked that option on the production MXD, but received the same error.
... View more
06-19-2014
10:13 AM
|
0
|
0
|
630
|
POST
|
This question is cross-posted here. I recently ran into this issue after I published a Geoprocessing Task to a production server. My geoprocessing python code is an enhanced Web Map Print service that loads a map via the arcpy.mapping.ConvertWebMapToMapDocument function and either sets the sourceImage of a PICTURE_ELEMENT or moves it off of the page. The published GP Service works correctly on a development server, but returns the following error when running on the production server. Unable to complete operation. Error executing tool.: Traceback (most recent call last): File "<ags_folder>\PythonWebPrint.GPServer\extracted\v101\my_toolboxes\service.py", line 643, in <module> main() File "<ags_folder>\PythonWebPrint.GPServer\extracted\v101\my_toolboxes\service.py", line 634, in main (message, output_file, image_files) = execute(web_map_json, output_format, layout_template, layout_template2, georef_info, quality) File "<ags_folder>\PythonWebPrint.GPServer\extracted\v101\my_toolboxes\service.py", line 482, in execute staticLegend.sourceImage = legendPath File "c:\program files\arcgis\server\arcpy\arcpy\arcobjects\_base.py", line 87, in _set return setattr(self._arc_object, attr_name, cval(val)) IOError: Cannot set path based on current settings. Failed to execute (PythonWebPrint). Failed to execute (Python Web Print). Here is the relevant python code: elements = arcpy.mapping.ListLayoutElements(mxd, 'PICTURE_ELEMENT', "StaticLegend") if len(elements) > 0: # Get the picture staticLegend = elements[0] if web_map_object.has_key("staticLegend"): legendPath = os.path.join(template_path, "legends", web_map_object["staticLegend"]) staticLegend.sourceImage = legendPath else: # Cannot actually delete things, so just move it off the page staticLegend.elementPositionX = -100 I have verified that the correct file path is being used, and that the file exists and that the folder and file permissions are identical to the MXD files being loaded by the arcpy.mapping.ConvertWebMapToMapDocument function. Any ideas as to the source of or how to fix this issue, or other diagnostics that I can perform?
... View more
06-19-2014
06:53 AM
|
0
|
6
|
2555
|
POST
|
I just had to do this myself today. Here's what I ended up with. It creates the InfoWindow first and passes it via the Map constructor options rather than setting it after the map is created. This assumes you have an element with an id of "map" in your DOM. This may not be correct if the InfoWindow domNode really has to be attached to map.root.
define(["dojo/dom-construct", "esri/dijit/InfoWindow", "esri/map"],
function(domConstruct, InfoWindow, Map) {
var infoWindow = new InfoWindow({}, domConstruct.create("div", null, "map"));
infoWindow.startup();
var map = new Map("map", {
infoWindow: infoWindow
});
}
);
... View more
04-02-2013
07:02 PM
|
0
|
0
|
897
|
POST
|
If I load the new 3.4 API from http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/ the last line of this file defines the "esri/jsapi" module as define("esri/jsapi", [..., "esri/tasks/query", ...], function () { return {}; }); However, the AMD docs state that the query module should be referenced as "esri/tasks/Query". http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/query-amd.html Since the web server is not case-sensitive, but the dojo loader is, I am getting a "multipleDefine" error from the dojoLoader if I try to reference "esri/tasks/Query" in my own AMD modules. I can work around the problem by referencing "esri/tasks/query" in all of my code, but this is contrary to the documentation.
... View more
04-02-2013
08:52 AM
|
0
|
1
|
781
|
POST
|
I am trying to load an initial set of features into a FeatureLayer immediately after the map and FeatureLayer are loaded via the FeatureLayer.selectFeatures(query) call. The FeatureLayer has a scale range that is outside of the initial map scale. The selectFeatures call is successful and the selectedFeatures property has the list of features. However, once the map is zoomed in past the scale range threshold, the FeatureLayer's resume() method is called from evaluateSuspension() method with evt.firstOccurence = true. I don't quite follow the flow of events after this point, but presumably, calling the initialize() method on the layer._mode object clears out any selected features. The end result is that selected features are cleared from the FeatureLayer and do not display on the map. I've worked around the issue by calling the private FeatureLayer._resume() and FeatureLayer._suspend() methods from my onLoad event handler but before I call the initial selectFeatures(). This works, but I'd like to avoid calling internal methods. Also, calling the non-private resume() and suspend() methods do not work because the Layer.canResume() function always returns false because this.visibleAtMapScale is false. Any suggestions on how to perform a initial selectFeature() on a FeatureLayer?
... View more
01-31-2013
11:57 AM
|
0
|
1
|
699
|
POST
|
I will take a look. Will post back with what I find...if it is a bug, can you create your nav toolbar before the map loads? Yes, I've worked around it by creating the navigation toolbar earlier in the application startup process, so no problem there. Just thought that this seemed close enough to be a real bug to report -- I would expect the navigation toolbar could properly initialize itself regardless of the map's loaded status. Thanks!
... View more
09-20-2011
01:23 PM
|
0
|
0
|
258
|
POST
|
Can anyone confirm if this is a real bug in the Javascript API?
... View more
09-20-2011
11:55 AM
|
0
|
0
|
258
|
Title | Kudos | Posted |
---|---|---|
1 | 06-13-2017 10:02 AM | |
1 | 01-04-2017 07:28 AM | |
1 | 11-29-2016 02:29 PM | |
2 | 04-13-2018 12:23 PM | |
5 | 10-17-2016 12:45 PM |
Online Status |
Offline
|
Date Last Visited |
04-04-2022
10:14 PM
|