Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am using ArcGIS Server 9.3.1 SP 1. I want to be able to determine the capabilities of each published layer, specifically I am looking for all layers with query capabilities.

Being familiar with ArcGIS Server 10 I thought I could programmatically inspect the capabilities list on the layer response page. For example, Average US Household Size has MAP, QUERY, and DATA capabilities.

However it appears that ArcGIS Server 9.3.1 does not publish layer capabilities through the REST API. I think that I could get this information by scraping the HTML for the layer resource and looking for the list of supported operations in the HTML.

<a href="/ArcGIS/rest/services/Demographics/USA_Average_Household_Size/MapServer/1/query">Query</a>

But this seems like brittle code.

How would you programmatically determine if a layer supports the query capability via the ArcGIS Server 9.3.1 REST API?

share|improve this question
add comment

1 Answer

Here is an article that shows how to get all the service layer's information:

How to Get ArcGIS Server Layer Information

share|improve this answer
    
Unfortunately, the REST API at 9.3.1 does not expose the layer's capabilities on in JSON response as far as I can tell. –  Ryan Taylor Mar 25 '12 at 15:42
1  
You're right, this will work only with the 10 API, the 10 API will return the parameter: '"capabilities" : "Map,Query,Data"' –  Khattab Mar 25 '12 at 20:03
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.