Select to view content in your preferred language

How to Read Meta Data of each layer in a map service?

1058
3
Jump to solution
08-19-2013 06:42 AM
ZachLiu1
Deactivated User
I know the Meta Data or Item Description of the map service can be read  through REST API. But is there a way I can get access to the Meta Data/Item Description of each layer of the service?
1 Solution

Accepted Solutions
JeffJacobson
Frequent Contributor
Unless they added this feature at 10.2, you will need to use a Server Object Extension to access layer metadata.

Note that the use of a Server Object Extension is only an option for your own ArcGIS Servers.

View solution in original post

0 Kudos
3 Replies
BhavdeepSachdev
Deactivated User
You can always append "?f=json" at the end of the rest api url and parse the resulting json in javascript.
Of course you'll have to send an ajax request to fetch the json.

e.g.
http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/0

can be retrieved as json by appending the ?f=json
http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/0?...
0 Kudos
JeffJacobson
Frequent Contributor
Unless they added this feature at 10.2, you will need to use a Server Object Extension to access layer metadata.

Note that the use of a Server Object Extension is only an option for your own ArcGIS Servers.
0 Kudos
ZachLiu1
Deactivated User
Really thanks Jeff!:)
0 Kudos