This project is an ArcGIS Server Object Extension (SOE) that allows a map service to publish the metadata for its individual layers to the user.
- ArcGIS Server 10.1.
- Microsoft .NET Framework 3.5
- Microsoft Visual Studio 2010.
- ArcGIS ArcObjects SDK (for ArcGIS version 10 or higher).
- Open the solution file in Visual Studio 2010.
- Build the solution. The compiled output for the SOE and installation program will be written to the bin folder.
There is a bug in ArcGIS Server 10.1 that causes the value of f to be ignored and always set to json
. I managed to work around this problem for all output formats except for html
. You can still get HTML output from this extension, but you must set f to htm
instead of html
.
Note that once Esri fixes this bug, setting f to html
will work once again without any code changes.
Retrieves a an array of of layer ids.
http://YourServer/ArcGIS/rest/services/YourMap/MapServer/exts/LayerMetadata/validLayers?f=format
- f: Options are
json
andpjson
.
Retrieves a grouped list of layer IDs. The output will have one property corresponding to each unique data source (feature class). The value of each property is an array of integers corresponding to all of the layer IDs that share that data source.
http://YourServer/ArcGIS/rest/services/Shared/YourMap/MapServer/exts/LayerMetadata/layerSources?f=format
- f: Options are
json
andpjson
.
Retrieves the metadata document for the specified layer.
http://YourServer/ArcGis/rest/services/YourMap/MapServer/exts/LayerMetadata/metadata/layerId/?f=format
- layerId: An integer corresponding to a feature layer ID in the map service.
- f: The output format. Valid options are
xml
,htm
,json
andpjson
.
Retrieves the metadata document for the specified layer.
http://YourServer/ArcGIS/rest/services/YourMap/MapServer/exts/LayerMetadata/getMetadata?layer=layer&f=format
- layer: An integer corresponding to a feature layer ID in the map service.
- f: The output format. Valid options are
xml
,htm
,json
andpjson
.
Layer Metadata SOE JavaScript Client
ArcGIS Server 10.1 server only adds the ability to publish a single metadata document per map service.
What this SOE will do is pubish one metadata document for each LAYER in a map service.
- kitzilla Raster support code.