-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Find out how to include metadata into geospatial layers saved in GeoServer #234
Comments
I think that in order to share metadata information for a particular layer in WFS, that information needs to be appended to the file at its source as there aren't any specific fields offered in the layer publishing section of GeoServer management. On inspection, the fields I can see in the layer preview when using the WFS service are the same ones visible for a general shapefile/GeoPackage: I haven't explored much of the standards for metadata sharing in WMS/WMTS/WFS/WCS, so this could be a There does exist an alternative means using a metadata link, but I get the impression this might only work for WMS and WMTS layers: |
@Zeitsperre Could you create a step-by-step guide on how to prepare a geopackage dataset so that the metadata information appears on GeoServer? Could be included in the pavics-sdi docs. If you need a deadline, I suggest end of February. |
See how to add metadata using Fiona: Only thing remaining would be to match that with an appropriate metadata standard. |
I've been working on this issue this afternoon and have come up against quite a few complications. It looks like, although the GeoPackage metadata standard is ISO certified, very few tools have been built to support it.
If you're as curious as I am, we could try making some examples using the development version of Fiona (with the understanding that when v2.0 is released, we return to our documentation to revise it). Thoughts? |
Good news: There is allegedly a community module available within GeoServer for modifying layer metadata (including bulk modifications) (https://docs.geoserver.org/2.19.x/en/user/community/metadata/index.html). Will keep poking around to see if I can find it (perhaps it's in a community-based repository?). @tlvu what is the current procedure for adding modules to our GeoServer instances? |
Found it: https://mvnrepository.com/artifact/org.geoserver.community/gs-metadata There's a warning concerning some missing Java dependencies that could potentially break our instance when running this plugin. The fix is in a newer version of GeoServer, but the workaround is described here: https://osgeo-org.atlassian.net/browse/GEOS-10078 |
If building Fiona from source is not painful, then yes, we could experiment with the master. I would be surprised if the mechanism we'll be relying on changed between now and 1.9. If the build is tricky, let's wait for the next release. To be clear, what I want us to be able to do is
|
Yes, that would be ideal. Newer GDAL (>=3.0) allows for interfacing with the metadata fields using the ISO standards, but again there are very few tools currently supporting it. At the very least, the metadata plugin allows for bulk categorization using a template (useful for organisation name, contact info, etc.). I think we agree that the last we want to do is personalize non-exportable metadata in our GeoServer for 40+ layers. |
Agreed. I see two issues:
|
Very simple if already bundle in the docker image we use, we just have to activate it: https://github.com/bird-house/birdhouse-deploy/blob/0329715a6f6ee81f5435257c98ea5b8eaee8acc1/birdhouse/default.env#L83-L85 We might be lucky, there is a "metadata" plugin available here https://github.com/kartoza/docker-geoserver/blob/034d477e02da3df637f68ef2b824ff0c18bcf26a/build_data/community_plugins.txt#L31 Hope it is the same as "gs-metadata". |
@tlvu Can you enable |
@Zeitsperre there is no OK will enable this on my test VM and let you have access once it's done. |
Here you go: https://lvupavics.ouranos.ca/geoserver, same admin passwd as prod since I synced prod data. Data back from around October 2021 when I upgraded Geoserver. Let me know if enough or you need more recent data sync from prod. Hope this screenshot is what you are looking for: |
@Zeitsperre Geoserver data synced with prod. You have latest data from prod on https://lvupavics.ouranos.ca/geoserver/. |
QGIS 3.24 can export metadata to GPKG. It appears as an XML document stored in the "tags".
|
…oserver GeoServer: enable metadata-plugin for modifying layer metadata, including bulk modifications See plugin documentation at https://docs.geoserver.org/2.19.x/en/user/community/metadata/index.html Related to issue Ouranosinc/pavics-sdi#234 Add new "Metadata" tab in Layer Edit page: ![Screenshot 2022-01-25 at 00-25-45 GeoServer Edit Layer](https://user-images.githubusercontent.com/11966697/150916419-fce99147-2903-414b-8b83-551709ef87d6.png)
I've created a dataset using geopandas and saved it as a geopackage. This geopackage was then uploaded to GeoServer, and we can then access it using a WFS interface from QGIS. However, there is no accompanying metadata.
I'd like to know how to include information such as
Identifier, Title, Type, Language, Abstract, Keywords
so that users of the WFS endpoint know what they're getting and where it's coming from.
The text was updated successfully, but these errors were encountered: