I asked this question earlier, but not very clear.I'm running some Querys (which are all working the way I want them to) until applying a geometry using query.geometry = myGeometry. Here is a section of code...var queryLayer:String = rbeQueryLayer;
var queryTask:QueryTask = new QueryTask(queryLayer);
var query:Query = new Query();
queryTask.disableClientCaching = true;
query.outFields = queryFields.split(",");
query.returnGeometry = true;
queryTask.useAMF = false;
if(borderCheckBox.selected == true){
query.geometry = wvBorderGeom;
}
query.where = rbeQuery;
query.outSpatialReference = map.spatialReference;
queryTask.execute(query, new AsyncResponder(onRbeResult, onFault));
I have a checkBox that someone can check if they only want to display results within a certain state's border. So what I am doing is taking the geometry I have for the state and passing that as the geometry for the query if the checkBox is selected. I'm new to using queries, so is this the best way to do this?The weird part is that for most of my URL's this technique works fine, but for a select few (for example: http://rmgsc.cr.usgs.gov/ArcGIS/rest/services/nhss_usdata/MapServer/0) I get an error only when I apply the query.geometry. Error is: RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request"...text="Error #2032: Stream Error.So I guess my question is, is there a reason I would get an HTTP request error when the only change I am making to the query is the query.geometry?Thanks for any help!