Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [query-task]

a QueryTask executes a query operation on a layer resource of a map service exposed by the ArcGIS Server REST API.

0
votes
0answers
24 views

Accessing Feature Service via ArcGIS REST API to Customize App in Operations Dashboard?

Beginner here Just learned how to construct url to access the feature services needed to build the customized app I envision in Operations Dashboard, but struggling to find a tutorial/resources ...
1
vote
0answers
37 views

ArcGIS JavaScript API find the polygon a point belongs

I have a shapefile containing polygons and whenever a user searches an address I store latitude and longitude of the location. I want to know which polygon this address belongs and I have id assigned ...
1
vote
1answer
265 views

How to include a single quote / apostrophe in an ArcGIS Server REST API query string

This is similar to How do I query a string in Arcobjects that has a single quote in it? but in my case the apostrophe is actually in the word I'm searching for: &where=locality = 'O'CONNELL' This ...
1
vote
2answers
178 views

Query (Return) All Points In Query Task and Query Object

Using ArcGIS JavaScript API 3.21 I need to grab all Points on a Server. The code works for me with Query.where clause at query.where = "FeederID = 'RMT001'"; but as I said I need to get all ...
2
votes
1answer
342 views

What is the difference between QueryTask and featureLayer.queryFeatures

For fetching data from a feature layer, I've been using QueryTask service, var deferred = new Deferred(); var queryTask = new QueryTask(featureLayerurl) var query = new Query(); ...
2
votes
0answers
40 views

QueryTask problem in Android ArcGIS [closed]

I use ArcGIS in my Android app. I use query task for search in mapserver and show a feature by another color. I mean when a feature find should change color.my code work right but can not change ...
0
votes
1answer
431 views

ArcGIS API for Javascript QueryTask not working

I'm trying to use query tasks to extract attributes of a feature based on what was selected from a filtering select list(setVal = "Chain Lakes Provincial Recreation Area"). But I get the error ...
0
votes
2answers
261 views

ArcGIS JS API Multiple Select In Where Clause of Query()

I have a simple query like query.where = "NAME = 'Renfrew'"; which works perfectly on QueryTask(). Now I would like to select array of points like query.where = "NAME = 'Central Branch' AND NAME = ...
0
votes
1answer
112 views

Creating queries in Portal for ArcGIS that do not have to be predefined?

I am trying to figure out if there is a way to make a query widget in Portal for ArcGIS that is more free form. I want to know if there is a way a user can type in queries that are not predefined. Or ...
0
votes
1answer
123 views

FindTask does not work - 304 not modified

I use 3.16 and I have got some problem. When I try to execute FindTask require(["esri/tasks/FindTask", "esri/tasks/FindParameters"], function (FindTask, FindParameters) { ...
3
votes
1answer
387 views

Using both query.where and query.geometry with queryTask

I am using a QueryTask to select data from a Feature Service and pass the attribute values to a dGrid. I am using a where statement (query.where) to select only certain polygons from this service and ...
1
vote
0answers
90 views

Shape comparison language (SCL) - get shapes which intersect extent border

I am trying to write a SCL string for my ArcGIS query, which should return only shapes which are intersected by a border of a rectangular shape (extent). So far the closest I've got is the following: ...
1
vote
1answer
531 views

Converting Esri Leaflet featureCollection to JSON?

I've followed the Esri Leaflet sample code found here: http://esri.github.io/esri-leaflet/api-reference/tasks/query.html //Querying features near a latlng var latlng = L.latLng(45.51, -122.70); var ...
1
vote
0answers
129 views

ArcGIS javascript - update a queryTask result on extent change

I have an application that runs a queryTask on a map service layer and returns various feature results in a div when they click on a table of contents. However, I'd like it to automatically update ...
0
votes
3answers
941 views

ArcGIS Javascript API - carrying out multiple query tasks

I have carried out a QueryTask on a map service that returns a polygon when I input a postcode. Within the same service there is an additional layer that allows the user to query a local authority ...
0
votes
1answer
445 views

Graphic Layer graphics redraw incorrectly after map zoom event

I have a web map application which adds arrows onto street segments signifying direction as a Graphics Layer. The direction of each arrow is calculated by this process: 1) build an array of the street ...
1
vote
2answers
651 views

connect query to click event

I have a value that is passed to a query, and a button that will execute the search function. The click event doesn't seem to work. The query works, but it's supposed to run once the button is ...
3
votes
1answer
593 views

Feature Layer Vs Query Task

I'm using ArcGIS Javascript API, and I need to query the GIS and show the results on the map. Currently I have used a Query Task by specifying the layer, the "where" statement, graphic symbol, ...
3
votes
0answers
179 views

Feature layers don't appear in print result?

I have a problem when I print my map, when I display the result I find only one feauture of twenty. the result does't contain all features. I used esri/dijit/PrintTask verifier: function(){ //...
1
vote
1answer
311 views

Perform non-spatial queries on DB tables of a RDBMS connected with arcgis

Is it possible to use the arcgis infrastructure so as to perform queries on DB tables that do not contain spatial information? For example, considering I have a RDBMS where I have a table namely "...
0
votes
1answer
1k views

How to format an attribute of type esriFieldTypeDate from a FeatureSet Graphic

Hoping someone can tell me if I'm going about this wrong, but I'm executing a QueryTask / Query on a map service and getting back a FeatureSet as expected. Within the attributes of each Graphic, I ...
2
votes
1answer
1k views

ESRI Javascript API QueryTask error handling

I'm struggling to find the proper way to handle errors in a QueryTask. Particularly if the user clicks outside the feature layer. My current QueryTask looks at a field (bare_earth) populated with ...
0
votes
1answer
283 views

ArcGIS Silverlight QueryTask Fails After Upgrade to ArcGIS Server 10.2.2

Our ArcGIS Server was upgraded to 10.2.2 yesterday and the QueryTasks in my Silverlight code fail with Error Code '400': 'Unable to complete operation.' The REST services are online and running and I'...
3
votes
1answer
2k views

How to make query task synchronous in ArcGIS JSAPI

I am using ArcGIS JS API version 3.6. I want to make query task synchronize. While executing query task reaming code will wait until completion of query task. For example I have shared my code here ...