Coder Social home page Coder Social logo

wsdot-gis / layermetadatasoe Goto Github PK

View Code? Open in Web Editor NEW
4.0 6.0 3.0 327 KB

An ArcGIS Server Object Extension that adds the ability to publish layer metadata from a Map service

License: The Unlicense

C# 100.00%
metadata arcgis-server soe server-object-extension

layermetadatasoe's Introduction

Layer Metadata Server Object Extension

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.

License

Unlicense

Prerequisites

  • ArcGIS Server 10.1.
  • Microsoft .NET Framework 3.5

Compilation

Requirements

  • Microsoft Visual Studio 2010.
  • ArcGIS ArcObjects SDK (for ArcGIS version 10 or higher).

Instructions

  1. Open the solution file in Visual Studio 2010.
  2. Build the solution. The compiled output for the SOE and installation program will be written to the bin folder.

Usage

Note about the f parameter and a bug in ArcGIS Server 10.1.

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.

validLayers

Retrieves a an array of of layer ids.

http://YourServer/ArcGIS/rest/services/YourMap/MapServer/exts/LayerMetadata/validLayers?f=format

Parameters

  • f: Options are json and pjson.

layerSources

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

Parameters

  • f: Options are json and pjson.

metadata

Retrieves the metadata document for the specified layer.

http://YourServer/ArcGis/rest/services/YourMap/MapServer/exts/LayerMetadata/metadata/layerId/?f=format

Parameters

  • layerId: An integer corresponding to a feature layer ID in the map service.
  • f: The output format. Valid options are xml, htm, json and pjson.

getMetadata

Retrieves the metadata document for the specified layer.

http://YourServer/ArcGIS/rest/services/YourMap/MapServer/exts/LayerMetadata/getMetadata?layer=layer&f=format

Parameters

  • layer: An integer corresponding to a feature layer ID in the map service.
  • f: The output format. Valid options are xml, htm, json and pjson.

Related projects

Layer Metadata SOE JavaScript Client

F. A. Q.

ArcGIS Server 10.1 has metadata capabilities. Aren't you wasting your time writing this?

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.

Contributors

layermetadatasoe's People

Contributors

jeffjacobson avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.