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.

a newbie question in using ArcGIS Server REST service:

from ArcGIS Services Directory, I opened the page of one layer in a MapServer service, this layer has a long list of attributes/fields. however, in the response of Query_Layer operation, it only includes two attribute fields in each feature object.

I am wondering is this a configurable setting? if so, where to control this to return all attribute fields.

thanks! and let me if further details of this question are needed.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

In the Result Options box near the bottom of the page, there is an input for 'Return Fields (Comma Separated)'. Accordingly, you put in a comma delimited list of the fields you want included. Its the same thing for all of the web api's as well, there is a property where you set what fields get returned to the client.

I think by default, it only returns OBJECTID and Display Field.

share|improve this answer
    
thanks...my carelessness looking at return_options... –  Simon Jun 11 '12 at 18: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.