AnsweredAssumed Answered

Query Problems when using query.geometry (Stumped).

Question asked by geonetadmin on Apr 26, 2011
Latest reply on May 11, 2011 by geonetadmin
Original User: cschafer5

Hi,

I am wanting to run a Query that only displays the results within a specified polygon. I am doing this using query.geometry. I am getting the results I am looking for from most of my URLs and some return an error back to me.

I have attached pictures to show the problem.

The two pictures with arrows shows what I want to happen. In the first picture I get the hit the cap of 500 and on the second picture I click my checkbox to add the WV polygon to the query.geometry and get results only within the state.

The other two pictures show what happens with some URLs. The one not bound to the state gives me the results I expect. The second, when bound to the state using query.geometry, returns an HTTP error.

I can't figure this one out. Is there a reason I would get an error when the only additional code between the two is the added geometry?

Here are the two URLs used in the example:
1 (works):
http://publicsafetytemplates.esri.com/ArcGIS/rest/services/EMCOP/PublicSafetyFeedSample/MapServer/0

2(Gives me an Error):
http://rmgsc.cr.usgs.gov/ArcGIS/rest/services/nhss_usdata/MapServer/0

Outcomes