Esri / geoportal-server

Geoportal Server is a standards-based, open source product that enables discovery and use of geospatial resources including data and services.
https://gptogc.esri.com/geoportal
Apache License 2.0
244 stars 149 forks source link

ArcGIS MapServer layers not added as separate records #43

Closed mbertrand closed 10 years ago

mbertrand commented 10 years ago

Added this ArcGIS 10 service as a resource:

Saved, set as approved, synchronized content. None of the available layers on the server were added as separate records. However the metadata record for the resource itself lists the layers in the abstract:

<dct:abstract> <rdf:value rdf:resource="mxd.comments">DARMC (Atlas of Roman and Medieval Civilization)</rdf:value> <rdf:value rdf:resource="mxd.subject">DARMC (Atlas of Roman and Medieval Civilization)</rdf:value> <rdf:value rdf:resource="service.layername">Roman Empire</rdf:value> <rdf:value rdf:resource="service.layername">Bishoprics ca. 600</rdf:value> <rdf:value rdf:resource="service.layername">Cities & Settlements</rdf:value> <rdf:value rdf:resource="service.layername">Other Features</rdf:value> <rdf:value rdf:resource="service.layername">Aqueduct</rdf:value> <rdf:value rdf:resource="service.layername">Bath</rdf:value> ......etc

Is there a way to create a record for each layer?

mrclBIE commented 10 years ago

I would like to do the same! So is there any workaround yet?

Regards, mrclMD

mhogeweg commented 10 years ago

suppose we add this capability, what would you do with a layer once you find it?

and is this instead of or in addition to the entire service entry?

mbertrand commented 10 years ago

For my particular use case, I would want to be able to find the layer via a text/spatial search, then get enough metadata from the layer record to be able to display it in an independent app (ie the service MapServer URL, layer id/name, bounding box, projection).

marcgr commented 10 years ago

I would like to echo the desire to harvest individual layer metadata from ArcGIS MapServices. We have several projects where this would be a useful addition and really help with helping users know what data is available in various services, some of which can be quite large.

Minimally having the layer description, preview and open as .lyr file would be great. It would be ideal if ESRI would include in map service publishing the ability to include a layers metadata from its item description when publishing a map service to get the source, keywords, etc.

Marc

pandzel-zz commented 10 years ago

I have implemented harvesting layers from the map service. There are few issues, though, I would like to clarify:

  1. Only regular layers are harvested not group layers. Of course, regular layers inside group layers will be harvested,
  2. For each layer, Dublin Core metadata is being created; each metadata has identifier equal to the REST url of the layer, title, description (if available), dct:references and bounding box,
  3. Once harvested, all layers appear on the search results but with the limited set of links:
    • nmf, and lyr are unavailable - this is because it seems like getting nmf or lyr is onnly available for the service as a whole but not for a single layer,
    • 'add to map' is unavailable (for now) if the map viewer is an ArcGIS online map.