|
POST
|
I have created a FeatureLayer based on a featureCollectionObject (i.e. not from a service URL), and I would like to perform a spatial query on it. The documentation claims that it "does not support queries that need to be performed on the server, e.g. queries with a where clause or non-extent based spatial queries." So according to this, it should support an extent based spatial query. However, when I construct my query: var query = new Query(); query.geometry = pointToExtent(map, evt.mapPoint, 20); and try to execute, I get the following error message: "FeatureLayer::selectFeatures - query contains one or more unsupported parameters." I have tried changing the query.spatialRelationship attribute (from the default INTERECTS to CONTAINS or WITHIN) but that doesn't help. There are no other aspects to the query - no where clause or time clause or anything other than the geometry (which I've set to an extent). Can someone help me execute this query correctly?
... View more
01-08-2014
08:23 AM
|
0
|
2
|
1176
|
|
POST
|
I have also created a FeatureLayer from a featureCollectionObject. I am trying to perform an extent-based spatial query (which according to the documentation is supported), but I keep getting the "FeatureLayer::selectFeatures - query contains one or more unsupported parameters" error. My question is: what do I need to do to create an "extent-based" spatial query? Do I have to change the spatialRelationship attribute of the query to a specific string? the geometry attribute is already set to an extent. Thanks! Rahul, if you're creating the FeatureLayer not from a url as you mention but from a featureCollectionObject, then you should look at the restrictions associated with this FeatureLayer constructor (link) * Does not support queries that need to be performed on the server, e.g. queries with a where clause or non-extent based spatial queries.
... View more
01-08-2014
08:00 AM
|
0
|
0
|
2159
|
|
POST
|
Hi, I published a map service with feature access to our internet ArcGIS for Server 10.1. So in my services directory, there are two services, the "FeatureServer", and the "MapServer", but in my server manager, there is just one service, the "Map Service." I would like to know if it is possible, and how would I do the following: 1. Secure the feature service to only allow specified users to update, edit, delete features. Do this by attaching a role to the service, since I have connected my ArcGIS server instance to our Windows Domain. This way if a user tries to access an application using the feature service, the IdentityManager dijit can handle the token and authentication. 2. Leave the map service unsecured, so any user can query or view the features associated with the data. Through ArcGIS manager, I can only secure the single Map Service, which would affect the FeatureServer and MapServer, so am wondering if there is another way to do this. Thanks!
... View more
11-21-2013
06:01 AM
|
0
|
0
|
588
|
|
POST
|
Basically I'm trying to populate some info window content with the attributes from another feature service. I wasn't able to get it working use either of those suggestions. Any others I might try? Tracy: This code doesn't seem to work as intended either: function getContent(graphic) {
var facID = graphic.attributes.FacilityID;
console.log(facID);
var queryTask = new esri.tasks.QueryTask("http://myserver:6080/arcgis/rest/services/EON/Assets/MapServer/0");
var query = new esri.tasks.Query();
query.where = "LocationID = '" + facID + "'"
query.outFields = ['*'];
queryTask.execute(query,success,failure);
}
function success(data){
var attributes = data.features[0].attributes;
var name = attributes.FullName;
var flDaily = attributes.FlDaily;
var artcc = attributes.BoundaryATRCCComputerID;
var url = attributes.URL2;
var type = attributes.UseType;
var content = name + "<ul><li><b>Daily Flight: </b>" + flDaily.toString() + "</li><li><b>ARTCC: </b>" + artcc + "</li><li><b>Type: </b>" + type + "</li></ul><a href = '" + url + "'>More Info </a>"
template.setContent(content);
}
function failure(error){
console.log(error);
}
} The first info window doesn't display anything, and each subsequent info window displays what the first info window should have. I'm calling it like this: template = new esri.InfoTemplate();
template.setTitle("Code: ${FacilityID}");
template.setContent(getContent); Rene, unfortunately your suggestion didn't seem to fix the problem. function getContent(graphic) {
facID = graphic.attributes.FacilityID;console.log(facID);
var deferred = esri.request({
url: "http://myserver:6080/arcgis/rest/services/EON/Assets/MapServer/0/query",
content:{
where: "LocationID = '" + facID + "'",
outFields: "*",
f: "json"
},
callbackParamName: "callback",
handleAs: "json"});
deferred.then(
function(response) {
console.log("Success: ", response);
deferred.callback("testing");
}, function(error) {
console.log("Error: ", error);
});
return deferred.promise;
} The deferred.then section works, but trying to return deferred.promise still generates an error. Any other thoughts?
... View more
10-04-2013
09:42 AM
|
0
|
0
|
2455
|
|
POST
|
I am following the instructions here: My function: function getContent(graphic) {
var deferred = new dojo.Deferred();
facID = graphic.attributes.FacilityID;
console.log(facID);
deferred = esri.request({
url: "http://myserver.com/arcgis/rest/services/EON/Assets/MapServer/0/query",
content:{
where: "LocationID = '" + facID + "'",
outFields: "*",
f: "json"
},
callbackParamName: "callback",
load: function(fset) {
console.log(fset);
deferred.callback("blahhh");
},
error: function(error) {
deferred.errback("Error occurred while generating profile");
}
});
return deferred;
} generates an error at the "return deferred" line. The error is "Uncaught NotFoundError: An attempt was made to reference a Node in a context where it does not exist." What do I need to do to make this work?
... View more
10-04-2013
07:29 AM
|
0
|
8
|
7736
|
|
POST
|
Shucks - I really like that idea. Unfortunately I'm running 10.1 not 10.2. Any other suggestions? Jay
... View more
09-16-2013
10:05 AM
|
0
|
0
|
725
|
|
POST
|
Is replacing the arcgisserver/directories and arcgisserver/config-store folders with the same folders from another server that you want to, in essence, "replicate" supported? For example, my IT department wants to rebuild one of my server, and I was hoping I could just copy those directories with my old configuration somewhere, reinstall the server software and create a new site, and then overwrite the new arcgisserver directories with my old ones to have all the map services and configurations retained? Is this possible? Are there specific steps I have to follow? Thanks, Jay
... View more
09-16-2013
08:04 AM
|
0
|
3
|
1147
|
|
POST
|
Was anyone able to figure out a solution to this. I can't access a ArcGIS 10.1 for server secured service through IE 8 (get the same "unable to access the authentication service" error). However, I CAN access the service through Chrome or Firefox. This leads me to believe the issue doesn't have to do with server configuration, but instead with a bug between the identity manager, REST API, and IE. Any know how to get around this? Thanks, Jay
... View more
06-26-2013
12:20 PM
|
0
|
0
|
3406
|
|
POST
|
I was not able to reproduce the behavior with the service you sent. So this causes me to wonder if its a server configuration issue? The user store on our ArcGIS Server is Windows Domain (role store is built-in however). This means that I have secured our service with a custom role I created through ArcGIS for server manager, but the role is comprised of several domain users. Is the authentication store for the server on which the wildfire service is running Windows domain or is the user store built in? I'm thinking maybe the issue has to do with IE connecting through ArcGIS for Server to Windows Server authentication. Thanks for your help! I'd really like to figure this issue out! Jay
... View more
06-21-2013
06:10 AM
|
0
|
0
|
977
|
|
POST
|
Confirmed that this same issue holds to using ArcGIS Online or ArcGIS for Organiziations. I can view and interact with arcgis online or AGOL map services pointing to server 10.1 secured services when using Firefox or Chrome. But when using IE, I still get the same error - "unable to access the authentication service" once I submit the credentials. Since users have no control over ArcGIS Online code base, this is a confirmed issue with IE, Identity Manager, and Server 10.1 secured services. Is this a known bug that is being worked on - since IE is the primary approved browser in most large organizations, this functionality should be addressed soon. Unless I am missing something?
... View more
06-19-2013
09:09 AM
|
0
|
0
|
977
|
|
POST
|
I've seen several threads trying to address an issue regarding using the identity manager to access secured services on Server 10.1 and getting an error "Unable to access the authentication service" http://forums.arcgis.com/threads/74598-Identity-Manager-for-server-10.1 http://forums.arcgis.com/threads/63690-Secure-Services-over-https None of these have been able to properly resolve the error. Here's my problem. In Chrome and Firefox, the app works. The identity manager prompts the user for credentials, and once those credentials are accepted the map service displays the data. Same app in IE 8: the identity manager prompts the user for credentials, but then returns an error, "unable to access the authentication service" I have followed the instructions in http://forums.arcgis.com/threads/74598-Identity-Manager-for-server-10.1, adding the relevant lines to proxy.config and the init() function in the app. Can someone definitively resolve why this is happening? I'm using JS API 3.4 or 3.5, all ArcGIS resources, Esri APIs, basemaps, CSS files, web pages are accessed through https (in fact IE doesn't like to send un/pw over http and generates an error). In server security, the user store is windows domain, role store is built-in, authentication tier is GIS server, and authentication mode is tokens. It works in Chrome and Firefox, so nothing seems wrong with the configuration! What do I need to do to have it work in IE8 too! Help!
... View more
06-19-2013
08:50 AM
|
0
|
3
|
2880
|
|
POST
|
Thanks! I got it working - I had to add a FeatureLayer twice - one in selection mode with the popup template to handle the query and infoWindow contents, and a second time in ONDEMAND mode to simply show the data when one loads the map. Seems a bit unnecessary that I have to add the same layer twice to handle this functionality, but if that is the preferred way to do it then so be it! Thank you so much for your help! Jay
... View more
05-07-2013
09:49 AM
|
0
|
0
|
2314
|
|
POST
|
Thanks! That's a good tip - I just tried doing that and it still didn't work for me. Would you mind posting your code? Jay
... View more
05-07-2013
09:30 AM
|
0
|
0
|
2314
|
|
POST
|
I was under the impression that all this was handled under the hood, and no real additional coding was necessary. Otherwise you'd have to set a search radius and loop through all the results to show in the popup right? I tried following the demo at http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/widget_popupfl.html and I still don't get paging...but the Popup dijit reference page shows properties "pagingControls" and "pagingInfo" (both default to true), that should elegantly handle the paging, right? Jay
... View more
05-07-2013
07:33 AM
|
0
|
0
|
2314
|
|
POST
|
I have never understood how to implement a paging infoWindow using the Popup class in any of the infoWindows? Now that popups are the default infoWindow for v 3.4 of the JS API, I was wondering if someone could post some code on how to ensure that the infoWindow / popup will have paging options when click on a location with multiple markers. Thanks!
... View more
05-06-2013
12:56 PM
|
0
|
9
|
3300
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 02-23-2026 11:00 AM | |
| 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 |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|