Hi List, I’m using geoserver for quite a long time and i am very happy with it. This is the first time a have to use the CSW-extension and i ran into a couple of issues.
1.) Enabling CSW in a workspace does not work for me (tested with 2.11.5, 2.12.1/2, 2.13-beta) When i enable CSW in a workspace (e.g. test) and fill out the form, an almost correct csv.xml will be created in the data/workspace/test/ but with the same <name></name>-tag as the csw.xml in the data-root. When i restart geoserver i get an error in the log: Failed to load the service configuration in directory: /var/lib/tomcat8/apps/geoserver-2.11.5/data/workspaces/test with loader for interface org.geoserver.csw.CSWInfo java.lang.IllegalArgumentException: service with name 'My GeoServer CSW' already exists in workspace 'null' When i stop tomcat and change the <name></name>-tag of the workspace-csw.xml, geoserver starts, does not complain, but CSW is not enabled in the workspace even when the workspace-csw.xml shows <enabled>true</enabled>. The csw-getCapabilites-request shows the information of the data-root-csw.xml and the data-root-global.xml in both requests (root and workspace). The getRecords-Request works fine in the workspace (and the workspace-records are hidden in the root-request when workspace is isolated in 2.13-beta). 2.) Maybe related: customizing the MD_Metadata.properties Is it possible having an own MD_Metadata.properties per workspace or per layer? 3.) date-definition in the MD_Metadata.properties Where exactly do i have to define this metadata-tag? I tried to modify the featuretype.xml of the layer but this value will not be mapped and got deleted when i modify the layer info. <metadata> <entry key="cachingEnabled">false</entry> <entry key="date">2018-03-03</entry> </metadata> 4.) Is it possible to map values from the workspace-settings.xml in MD_Metadata.properties. This would be quite useful, because i would have the possibility to map all the ResponsibleParty-Info to the records. My MD_Metadata.properties in the root-csw-directory is ugly "static" at the moment and the information is only valid for 1 workspace: @fileIdentifier.CharacterString=if_then_else(isNull(prefixedName), name, prefixedName) identificationInfo.AbstractMD_Identification.citation.CI_Citation.title.CharacterString=if_then_else(isNull(title), name, title) identificationInfo.AbstractMD_Identification.descriptiveKeywords.MD_Keywords.keyword.CharacterString=keywords identificationInfo.AbstractMD_Identification.abstract.CharacterString=abstract $dateStamp.Date= if_then_else ( isNull("metadata.date") , '2017-10-00', "metadata.date") hierarchyLevel.MD_ScopeCode.@codeListValue='http://purl.org/dc/dcmitype/Dataset' $contact.CI_ResponsibleParty.individualName.CharacterString='Someone' $contact.CI_ResponsibleParty.organisationName.CharacterString='Org' $contact.CI_ResponsibleParty.positionName.CharacterString='Director' $contact.CI_ResponsibleParty.contactInfo.CI_Contact.phone.CI_Telephone.voice.CharacterString='+XX XX XXXXXXX' $contact.CI_ResponsibleParty.contactInfo.CI_Contact.address.CI_Address.deliveryPoint.CharacterString='Street' $contact.CI_ResponsibleParty.contactInfo.CI_Contact.address.CI_Address.city.CharacterString='City' $contact.CI_ResponsibleParty.contactInfo.CI_Contact.address.CI_Address.postalCode.CharacterString='XXXX' $contact.CI_ResponsibleParty.contactInfo.CI_Contact.address.CI_Address.country.CharacterString='Coutry' $contact.CI_ResponsibleParty.contactInfo.CI_Contact.address.CI_Address.electronicMailAddress.CharacterString='y@b.c' distributionInfo.MD_Distribution.transferOptions.MD_DigitalTransferOptions.onLine.CI_OnlineResource%.linkage.URL=list('${url.wfs}','${url.wms}') distributionInfo.MD_Distribution.transferOptions.MD_DigitalTransferOptions.onLine.CI_OnlineResource%.protocol.CharacterString=list('OGC:WFS','OGC:WMS') distributionInfo.MD_Distribution.transferOptions.MD_DigitalTransferOptions.onLine.CI_OnlineResource%.name.CharacterString=name Thank you and regards, Jörg
signature.asc
Description: Message signed with OpenPGP
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users