Hello Nuno,
That is not the solution either
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE
ServiceExceptionReport SYSTEM
"http://inspire.ine.pt:8080/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1" > <ServiceException>
The requested Style can not be used with this layer. The style
specifies an attribute of
gn:name/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text/@xlink:href
and the layer is: gn:NamedPlace
</ServiceException></ServiceExceptionReport>
Regards
Francisco
Cumprimentos,
Francisco Caldeira
Serviço de Georreferenciação
Av. A. José de Almeida – 1000-043 Lisboa
Tel.+351 218426100 / ext.1438
[email protected] | www.ine.pt <http://www.ine.pt/>
_______________________________
cid:[email protected]
From: Nuno Oliveira [mailto:[email protected]]
Sent: quinta-feira, 18 de janeiro de 2018 15:26
To: [email protected]
Cc: Francisco Caldeira
Subject: Re: [Geoserver-users] Appschema and Sld for WMS
The property name path:
<TextSymbolizer>
<Label>
<ogc:PropertyName>gn:NamedPlace/gn:name/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text/@xlink:href</ogc:PropertyName>
</Label>
should be:
<TextSymbolizer>
<Label>
<ogc:PropertyName>gn:name/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text/@xlink:href</ogc:PropertyName>
</Label>
gn:NamedPlace/ should be removed from the path since the path needs to be
relative to the root entity.
Hopefully this should work :)
On 01/18/2018 02:58 PM, Francisco Caldeira wrote:
Hello Nuno,
I went to confirm again, and the message is:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE
ServiceExceptionReport SYSTEM
<http://inspire.ine.pt:8080/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd>
"http://inspire.ine.pt:8080/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1" > <ServiceException>
The requested Style can not be used with this layer. The style
specifies an attribute of
gn:NamedPlace/gn:name/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text/@xlink:href
and the layer is: gn:NamedPlace
</ServiceException></ServiceExceptionReport>
My sld now look like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
xsi:schemaLocation= <http://www.opengis.net/sldStyledLayerDescriptor.xsd>
"http://www.opengis.net/sld StyledLayerDescriptor.xsd"
xmlns= <http://www.opengis.net/sld> "http://www.opengis.net/sld"
xmlns:ogc= <http://www.opengis.net/ogc> "http://www.opengis.net/ogc"
xmlns:xlink= <http://www.w3.org/1999/xlink> "http://www.w3.org/1999/xlink"
xmlns:gn= <http://inspire.ec.europa.eu/schemas/gn/4.0>
"http://inspire.ec.europa.eu/schemas/gn/4.0"
xmlns:xsi= <http://www.w3.org/2001/XMLSchema-instance>
"http://www.w3.org/2001/XMLSchema-instance">
<!-- a Named Layer is the basic building block of an SLD document -->
<NamedLayer>
<Name>GN Geographical Names</Name>
<UserStyle>
<!-- Styles can have names, titles and abstracts -->
<Title>GN.NamedPlaced</Title>
<Abstract>Label place name</Abstract>
<!-- FeatureTypeStyles describe how to render different features -->
<!-- A FeatureTypeStyle for rendering polygons -->
<FeatureTypeStyle>
<Rule>
<Name>GN.NamedPlaced.name</Name>
<Title>Label with no outline</Title>
<Abstract>A arial 10pt label </Abstract>
<TextSymbolizer>
<Label>
<ogc:PropertyName>gn:NamedPlace/gn:name/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text/@xlink:href</ogc:PropertyName>
</Label>
<Font>
<CssParameter name="font-family">Arial</CssParameter>
<CssParameter name="font-size">10</CssParameter>
</Font>
<LabelPlacement>
<PointPlacement>
<AnchorPoint>
<AnchorPointX>0.5</AnchorPointX>
<AnchorPointY>0.5</AnchorPointY>
</AnchorPoint>
<Displacement>
<DisplacementX>0</DisplacementX>
<DisplacementY>0</DisplacementY>
</Displacement>
</PointPlacement>
</LabelPlacement>
</TextSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
Regards
Francisco
Cumprimentos,
Francisco Caldeira
Serviço de Georreferenciação
Av. A. José de Almeida – 1000-043 Lisboa
Tel.+351 218426100 / ext.1438
[email protected] | www.ine.pt <http://www.ine.pt/>
_______________________________
cid:[email protected]
--
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
-------------------------------------------------------
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.
"Confidencialidade: Esta mensagem (e eventuais ficheiros anexos) � destinada
exclusivamente �s pessoas nela indicadas e tem natureza confidencial. Se
receber esta mensagem por engano, por favor contacte o remetente e elimine a
mensagem e ficheiros, sem tomar conhecimento do respectivo conte�do e sem
reproduzi-la ou divulg�-la.
12345
Confidentiality Warning: This e-mail message (and any attached files) is
confidential and is intended solely for the use of the individual or entity to
whom it is addressed. lf you are not the intended recipient of this message
please notify the sender and delete and destroy all copies immediately."
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users