[Geoserver-users] INSPIRE validator throws error about LayerNames...

Hi, We are deploying some layers on a GeoServer 2.17.0 instance in order to be conforming to the INSPIRE specification.

The INSPIRE validator (https://inspire.ec.europa.eu/validator) throws errors about the layer name nomenclature of all our published layers. It throws the following message:

The following layers do not have a correct name according with the harmonised layer names given in the INSPIRE collection: ‘AM:AirQualityManagementZone, EF:Air_EnvironmentalMonitoringFacilities, …’.

It seems as the validator is expecting names such as “AM.AirQualityManagementZone”, with the “.” separator, not with the “:” separator.

GeoServer always adds, in a global WMS GetCapabilities request, the namespace prefix to the output name:

xxx/geoserver/ows?service=wms&version=1.3.0&request=GetCapabilities

… you get “AM:AirQualityManagementZone

but the default behavior in a WMS GetCapabilites request using a local workspace changes:

xxx/geoserver/am/ows?service=wms&version=1.3.0&request=GetCapabilities

… you get “AirQualityManagementZone”, by default, the layer name without prefix (You could add it checking a specific checkbox in the namespace settings panel). It is right, so you could add the “AM.” text to the GeoServer Layer name to finally get the desired “AM.AirQualityManagementeZone” identifier.

Is there any setting to change the prefix-name separator? or is it possible to change the default global prefix layer naming bevavior?

thanks in advance
best regards

I have got a workaround, I will move all these layers to one unique workspace, by example “inspire”, and then I will add the prefix “xxx.” name to all of them.

Best
Regards

En miércoles, 10 de junio de 2020 12:16:56 CEST, A Huarte via Geoserver-users geoserver-users@lists.sourceforge.net escribió:

Hi, We are deploying some layers on a GeoServer 2.17.0 instance in order to be conforming to the INSPIRE specification.

The INSPIRE validator (https://inspire.ec.europa.eu/validator) throws errors about the layer name nomenclature of all our published layers. It throws the following message:

The following layers do not have a correct name according with the harmonised layer names given in the INSPIRE collection: ‘AM:AirQualityManagementZone, EF:Air_EnvironmentalMonitoringFacilities, …’.

It seems as the validator is expecting names such as “AM.AirQualityManagementZone”, with the “.” separator, not with the “:” separator.


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

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

Dear all,
this is a known limitation that will eventually get fixed: https://osgeo-org.atlassian.net/browse/GEOS-8927

Kind regards,
Nuno Oliveira

···

Regards,
Nuno Oliveira

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

Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer

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

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


Con riferimento alla normativa sul trattamento dei dati
personali (Reg. UE 2016/679 - Regolamento generale sulla
protezione dei dati “GDPR”), si precisa che ogni
circostanza inerente alla presente email (il suo contenuto,
gli eventuali allegati, etc.) è un dato la cui conoscenza
è riservata al/i solo/i destinatario/i indicati dallo
scrivente. Se il messaggio Le è giunto per errore, è
tenuta/o a cancellarlo, ogni altra operazione è illecita.
Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to
which it is addressed and may contain information that
is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European
Regulation 2016/679 “GDPR” - copying, dissemination or
use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you
have received this email by mistake, please notify
us immediately by telephone or e-mail.

Hi, thank you very much Nuno for your response.

I am experimenting myself implementing a new global setting with the prefix separator to use in all prefixed resource names in GeoServer (Layers, GroupLayers, Styles…), as you know the current ‘:’ separator is hardcoded in many locations in the code.

https://github.com/geoserver/geoserver/compare/master…ahuarte47:master_prefix-separator

I have already got that WMS and WFS requests run properly (I am using the ‘.’ character as INSPIRE specification defines), but I have not fixed yet all issues (I have errors in WPS requests that use Layers as input parameters, or the LayerPage panel crashes when loading).

It is an experiment, I know I am changing many code, but I share it if it is useful.

Best regards
Alvaro

En lunes, 22 de junio de 2020 13:39:03 CEST, Nuno Oliveira nuno.oliveira@anonymised.com escribió:

Dear all,
this is a known limitation that will eventually get fixed: https://osgeo-org.atlassian.net/browse/GEOS-8927

Kind regards,
Nuno Oliveira

On Wed, Jun 10, 2020 at 11:39 AM A Huarte via Geoserver-users <geoserver-users@lists.sourceforge.net> wrote:

I have got a workaround, I will move all these layers to one unique workspace, by example “inspire”, and then I will add the prefix “xxx.” name to all of them.

Best
Regards

En miércoles, 10 de junio de 2020 12:16:56 CEST, A Huarte via Geoserver-users <geoserver-users@lists.sourceforge.net> escribió:

Hi, We are deploying some layers on a GeoServer 2.17.0 instance in order to be conforming to the INSPIRE specification.

The INSPIRE validator (https://inspire.ec.europa.eu/validator) throws errors about the layer name nomenclature of all our published layers. It throws the following message:

The following layers do not have a correct name according with the harmonised layer names given in the INSPIRE collection: ‘AM:AirQualityManagementZone, EF:Air_EnvironmentalMonitoringFacilities, …’.

It seems as the validator is expecting names such as “AM.AirQualityManagementZone”, with the “.” separator, not with the “:” separator.


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

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


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

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

Regards,
Nuno Oliveira

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

Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer

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

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


Con riferimento alla normativa sul trattamento dei dati
personali (Reg. UE 2016/679 - Regolamento generale sulla
protezione dei dati “GDPR”), si precisa che ogni
circostanza inerente alla presente email (il suo contenuto,
gli eventuali allegati, etc.) è un dato la cui conoscenza
è riservata al/i solo/i destinatario/i indicati dallo
scrivente. Se il messaggio Le è giunto per errore, è
tenuta/o a cancellarlo, ogni altra operazione è illecita.
Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to
which it is addressed and may contain information that
is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European
Regulation 2016/679 “GDPR” - copying, dissemination or
use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you
have received this email by mistake, please notify
us immediately by telephone or e-mail.