Re: [Geoserver-users] CSW questions and maybe issues

2018-03-08 Thread Andrea Aime
On Tue, Mar 6, 2018 at 3:21 PM, Jörg Roth  wrote:

> 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 -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 -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
> true.
>
> 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).
>
>
This looks like a but, I'd suggest to open a ticket for this one, see
https://osgeo-org.atlassian.net/projects/GEOS/summary


> 2.) Maybe related: customizing the MD_Metadata.properties
>
> Is it possible having an own MD_Metadata.properties per workspace or per
> layer?
>

Nope, this is not currently possible, as far as I know at least.
This would be a feature request, see:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


>
> 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.
>
>   
> false
> 2018-03-03
>   
>

I don't know how to answer this one off the top of my head, sorry!
Hopefully someone else will chime in. :-)


>
> 4.) Is it possible to map values from the workspace-settings.xml in
> MD_Metadata.properties.



Same answer as 2)

Cheers
Andrea


==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.
--
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 

[Geoserver-users] CSW questions and maybe issues

2018-03-06 Thread Jörg Roth
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 
-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 -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 true.

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.

  
false
2018-03-03
  

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 XXX'
$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=''
$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