[Geoserver-users] Geoserver style

Does anybody knows why the style below, which I’ve just copied from Geoserver documentation fails?

Error: line 23: cvc-complex-type.2.4.a: Invalid content was found starting with element ‘Font’. One of ‘{“http://www.opengis.net/sld”:Graphic, “http://www.opengis.net/sld”:Priority, “http://www.opengis.net/sld”:VendorOption}’ is expected.

I’ve only replaced the PropertyName from “name” to “diameter”

Thanks.

JJ.

<StyledLayerDescriptor xmlns=“http://www.opengis.net/sld” xmlns:ogc=“http://www.opengis.net/ogc” xmlns:xlink=“http://www.w3.org/1999/xlink” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” version="1.0.0"xsi:schemaLocation=“http://www.opengis.net/sld StyledLayerDescriptor.xsd”>

Optimized and styled label

SLD Cook Book: Optimized and styled label

#FF0000

ogc:PropertyNamename</ogc:PropertyName>

#000000

Arial

10

normal

bold

true

90

400

150

Hi Jair,
validation fails because the Font element should go immediately after Label.

This is the TextSymbolizer type definition taken from StyledLayerDescriptor.xsd:

<xsd:element name=“TextSymbolizer” substitutionGroup=“sld:Symbolizer”>
xsd:annotation
xsd:documentation
A “TextSymbolizer” is used to render text labels according to
various graphical parameters.
</xsd:documentation>
</xsd:annotation>
xsd:complexType
xsd:complexContent
<xsd:extension base=“sld:SymbolizerType”>
xsd:sequence
<xsd:element ref=“sld:Geometry” minOccurs=“0”/>
<xsd:element ref=“sld:Label” minOccurs=“0”/>
<xsd:element ref=“sld:Font” minOccurs=“0”/>
<xsd:element ref=“sld:LabelPlacement” minOccurs=“0”/>
<xsd:element ref=“sld:Halo” minOccurs=“0”/>
<xsd:element ref=“sld:Fill” minOccurs=“0”/>

<xsd:element ref=“sld:Graphic” minOccurs=“0”/>
<xsd:element ref=“sld:Priority” minOccurs=“0”/>
<xsd:element ref=“sld:VendorOption” minOccurs=“0” maxOccurs=“unbounded” />

</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>

Looks like an error in the documentation to me. You can fix it yourself by following this procedure:
http://docs.geoserver.org/latest/en/docguide/quickfix.html

The source file you need to change is:
https://github.com/geoserver/geoserver/blob/master/doc/en/user/source/styling/sld-cookbook/artifacts/line_optimizedstyledlabel.sld

Hope this helps.

···

On Sun, Nov 1, 2015 at 1:16 AM, Jair Santos <jsantos5954@anonymised.com> wrote:

Does anybody knows why the style below, which I’ve just copied from Geoserver documentation fails?

Error: line 23: cvc-complex-type.2.4.a: Invalid content was found starting with element ‘Font’. One of ‘{“http://www.opengis.net/sld”:Graphic, “http://www.opengis.net/sld”:Priority, “http://www.opengis.net/sld”:VendorOption}’ is expected.

I’ve only replaced the PropertyName from “name” to “diameter”

Thanks.

JJ.

<StyledLayerDescriptor xmlns=“http://www.opengis.net/sld” xmlns:ogc=“http://www.opengis.net/ogc” xmlns:xlink=“http://www.w3.org/1999/xlink” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” version="1.0.0"xsi:schemaLocation=“http://www.opengis.net/sld StyledLayerDescriptor.xsd”>

Optimized and styled label

SLD Cook Book: Optimized and styled label

#FF0000

ogc:PropertyNamename</ogc:PropertyName>

#000000

Arial

10

normal

bold

true

90

400

150



Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Best regards,
Stefano Costa

==
GeoServer Professional Services from the experts! Visit
[http://goo.gl/it488V](http://goo.gl/it488V) for more information.
==
Dott. Stefano Costa
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272

[http://www.geo-solutions.it](http://www.geo-solutions.it)
[http://twitter.com/geosolutions_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.

Thank you Stefano. I’ve proposed the fix in GitHub but the preview in the GeoServer doc is still wrong.

http://docs.geoserver.org/latest/en/user/styling/sld-cookbook/lines.html#optimized-and-styled-label

Do you know how to fix it?

JJ.

From: Stefano Costa [mailto:stefano.costa@anonymised.com]
Sent: Monday, November 02, 2015 1:24 AM
To: Jair Santos <jsantos5954@anonymised.com…>
Cc: GeoServer Mailing List List geoserver-users@anonymised.com.sourceforge.net
Subject: Re: [Geoserver-users] Geoserver style

Hi Jair,

validation fails because the Font element should go immediately after Label.

This is the TextSymbolizer type definition taken from StyledLayerDescriptor.xsd:

<xsd:element name=“TextSymbolizer” substitutionGroup=“sld:Symbolizer”>

xsd:annotation

xsd:documentation

A “TextSymbolizer” is used to render text labels according to

various graphical parameters.

</xsd:documentation>

</xsd:annotation>

xsd:complexType

xsd:complexContent

<xsd:extension base=“sld:SymbolizerType”>

xsd:sequence

<xsd:element ref=“sld:Geometry” minOccurs=“0”/>

<xsd:element ref=“sld:Label” minOccurs=“0”/>

<xsd:element ref=“sld:Font” minOccurs=“0”/>

<xsd:element ref=“sld:LabelPlacement” minOccurs=“0”/>

<xsd:element ref=“sld:Halo” minOccurs=“0”/>

<xsd:element ref=“sld:Fill” minOccurs=“0”/>

<xsd:element ref=“sld:Graphic” minOccurs=“0”/>

<xsd:element ref=“sld:Priority” minOccurs=“0”/>

<xsd:element ref=“sld:VendorOption” minOccurs=“0” maxOccurs=“unbounded” />

</xsd:sequence>

</xsd:extension>

</xsd:complexContent>

</xsd:complexType>

</xsd:element>

Looks like an error in the documentation to me. You can fix it yourself by following this procedure:

http://docs.geoserver.org/latest/en/docguide/quickfix.html

The source file you need to change is:

https://github.com/geoserver/geoserver/blob/master/doc/en/user/source/styling/sld-cookbook/artifacts/line_optimizedstyledlabel.sld

Hope this helps.

On Sun, Nov 1, 2015 at 1:16 AM, Jair Santos <jsantos5954@anonymised.com> wrote:

Does anybody knows why the style below, which I’ve just copied from Geoserver documentation fails?

Error: line 23: cvc-complex-type.2.4.a: Invalid content was found starting with element ‘Font’. One of ‘{“http://www.opengis.net/sld”:Graphic, “http://www.opengis.net/sld”:Priority, “http://www.opengis.net/sld”:VendorOption}’ is expected.

I’ve only replaced the PropertyName from “name” to “diameter”

Thanks.

JJ.

<StyledLayerDescriptor xmlns=“http://www.opengis.net/sld” xmlns:ogc=“http://www.opengis.net/ogc” xmlns:xlink=“http://www.w3.org/1999/xlink” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” version="1.0.0"xsi:schemaLocation=“http://www.opengis.net/sld StyledLayerDescriptor.xsd”>

Optimized and styled label

SLD Cook Book: Optimized and styled label

#FF0000

ogc:PropertyNamename</ogc:PropertyName>

#000000

Arial

10

normal

bold

true

90

400

150



Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Best regards,
Stefano Costa

==
GeoServer Professional Services from the experts! Visit
[http://goo.gl/it488V](http://goo.gl/it488V) for more information.
==
Dott. Stefano Costa
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272

[http://www.geo-solutions.it](http://www.geo-solutions.it)
[http://twitter.com/geosolutions_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.

Hi Jair,
I don’t see any PR from you fixing the docs… are you sure you followed the steps outlined here correctly?
http://docs.geoserver.org/latest/en/docguide/quickfix.html

You need a GitHub account to do this, do you have one?

If not, I can fix the docs for you.
Can you confirm that the style is working fine after the corrections?

···

On Mon, Nov 2, 2015 at 5:04 PM, Jair Santos <jsantos5954@anonymised.com> wrote:

Thank you Stefano. I’ve proposed the fix in GitHub but the preview in the GeoServer doc is still wrong.

http://docs.geoserver.org/latest/en/user/styling/sld-cookbook/lines.html#optimized-and-styled-label

Do you know how to fix it?

JJ.

From: Stefano Costa [mailto:stefano.costa@anonymised.com]
Sent: Monday, November 02, 2015 1:24 AM
To: Jair Santos <jsantos5954@anonymised.com>
Cc: GeoServer Mailing List List <geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] Geoserver style

Hi Jair,

validation fails because the Font element should go immediately after Label.

This is the TextSymbolizer type definition taken from StyledLayerDescriptor.xsd:

<xsd:element name=“TextSymbolizer” substitutionGroup=“sld:Symbolizer”>

xsd:annotation

xsd:documentation

A “TextSymbolizer” is used to render text labels according to

various graphical parameters.

</xsd:documentation>

</xsd:annotation>

xsd:complexType

xsd:complexContent

<xsd:extension base=“sld:SymbolizerType”>

xsd:sequence

<xsd:element ref=“sld:Geometry” minOccurs=“0”/>

<xsd:element ref=“sld:Label” minOccurs=“0”/>

<xsd:element ref=“sld:Font” minOccurs=“0”/>

<xsd:element ref=“sld:LabelPlacement” minOccurs=“0”/>

<xsd:element ref=“sld:Halo” minOccurs=“0”/>

<xsd:element ref=“sld:Fill” minOccurs=“0”/>

<xsd:element ref=“sld:Graphic” minOccurs=“0”/>

<xsd:element ref=“sld:Priority” minOccurs=“0”/>

<xsd:element ref=“sld:VendorOption” minOccurs=“0” maxOccurs=“unbounded” />

</xsd:sequence>

</xsd:extension>

</xsd:complexContent>

</xsd:complexType>

</xsd:element>

Looks like an error in the documentation to me. You can fix it yourself by following this procedure:

http://docs.geoserver.org/latest/en/docguide/quickfix.html

The source file you need to change is:

https://github.com/geoserver/geoserver/blob/master/doc/en/user/source/styling/sld-cookbook/artifacts/line_optimizedstyledlabel.sld

Hope this helps.

On Sun, Nov 1, 2015 at 1:16 AM, Jair Santos <jsantos5954@anonymised.com> wrote:

Does anybody knows why the style below, which I’ve just copied from Geoserver documentation fails?

Error: line 23: cvc-complex-type.2.4.a: Invalid content was found starting with element ‘Font’. One of ‘{“http://www.opengis.net/sld”:Graphic, “http://www.opengis.net/sld”:Priority, “http://www.opengis.net/sld”:VendorOption}’ is expected.

I’ve only replaced the PropertyName from “name” to “diameter”

Thanks.

JJ.

<StyledLayerDescriptor xmlns=“http://www.opengis.net/sld” xmlns:ogc=“http://www.opengis.net/ogc” xmlns:xlink=“http://www.w3.org/1999/xlink” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” version="1.0.0"xsi:schemaLocation=“http://www.opengis.net/sld StyledLayerDescriptor.xsd”>

Optimized and styled label

SLD Cook Book: Optimized and styled label

#FF0000

ogc:PropertyNamename</ogc:PropertyName>

#000000

Arial

10

normal

bold

true

90

400

150



Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Best regards,
Stefano Costa
 
==
GeoServer Professional Services from the experts! Visit
[http://goo.gl/it488V](http://goo.gl/it488V) for more information.
==
Dott. Stefano Costa
Senior Software Engineer
 
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272
 
[http://www.geo-solutions.it](http://www.geo-solutions.it)
[http://twitter.com/geosolutions_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.
 


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Best regards,
Stefano Costa

==
GeoServer Professional Services from the experts! Visit
[http://goo.gl/it488V](http://goo.gl/it488V) for more information.
==
Dott. Stefano Costa
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272

[http://www.geo-solutions.it](http://www.geo-solutions.it)
[http://twitter.com/geosolutions_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.

Weird, maybe I didn’t commit.

Yes, I’ve just created the account, so please let me do it.

Thanks

JJ.

From: Stefano Costa [mailto:stefano.costa@anonymised.com]
Sent: Monday, November 02, 2015 8:26 AM
To: Jair Santos jsantos5954@anonymised.com
Cc: GeoServer Mailing List List geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Geoserver style

Hi Jair,

I don’t see any PR from you fixing the docs… are you sure you followed the steps outlined here correctly?

http://docs.geoserver.org/latest/en/docguide/quickfix.html

You need a GitHub account to do this, do you have one?

If not, I can fix the docs for you.

Can you confirm that the style is working fine after the corrections?

On Mon, Nov 2, 2015 at 5:04 PM, Jair Santos <jsantos5954@anonymised.com> wrote:

Thank you Stefano. I’ve proposed the fix in GitHub but the preview in the GeoServer doc is still wrong.

http://docs.geoserver.org/latest/en/user/styling/sld-cookbook/lines.html#optimized-and-styled-label

Do you know how to fix it?

JJ.

From: Stefano Costa [mailto:stefano.costa@anonymised.com]
Sent: Monday, November 02, 2015 1:24 AM
To: Jair Santos <jsantos5954@anonymised.com>
Cc: GeoServer Mailing List List <geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] Geoserver style

Hi Jair,

validation fails because the Font element should go immediately after Label.

This is the TextSymbolizer type definition taken from StyledLayerDescriptor.xsd:

<xsd:element name=“TextSymbolizer” substitutionGroup=“sld:Symbolizer”>

xsd:annotation

xsd:documentation

A “TextSymbolizer” is used to render text labels according to

various graphical parameters.

</xsd:documentation>

</xsd:annotation>

xsd:complexType

xsd:complexContent

<xsd:extension base=“sld:SymbolizerType”>

xsd:sequence

<xsd:element ref=“sld:Geometry” minOccurs=“0”/>

<xsd:element ref=“sld:Label” minOccurs=“0”/>

<xsd:element ref=“sld:Font” minOccurs=“0”/>

<xsd:element ref=“sld:LabelPlacement” minOccurs=“0”/>

<xsd:element ref=“sld:Halo” minOccurs=“0”/>

<xsd:element ref=“sld:Fill” minOccurs=“0”/>

<xsd:element ref=“sld:Graphic” minOccurs=“0”/>

<xsd:element ref=“sld:Priority” minOccurs=“0”/>

<xsd:element ref=“sld:VendorOption” minOccurs=“0” maxOccurs=“unbounded” />

</xsd:sequence>

</xsd:extension>

</xsd:complexContent>

</xsd:complexType>

</xsd:element>

Looks like an error in the documentation to me. You can fix it yourself by following this procedure:

http://docs.geoserver.org/latest/en/docguide/quickfix.html

The source file you need to change is:

https://github.com/geoserver/geoserver/blob/master/doc/en/user/source/styling/sld-cookbook/artifacts/line_optimizedstyledlabel.sld

Hope this helps.

On Sun, Nov 1, 2015 at 1:16 AM, Jair Santos <jsantos5954@anonymised.com…> wrote:

Does anybody knows why the style below, which I’ve just copied from Geoserver documentation fails?

Error: line 23: cvc-complex-type.2.4.a: Invalid content was found starting with element ‘Font’. One of ‘{“http://www.opengis.net/sld”:Graphic, “http://www.opengis.net/sld”:Priority, “http://www.opengis.net/sld”:VendorOption}’ is expected.

I’ve only replaced the PropertyName from “name” to “diameter”

Thanks.

JJ.

<StyledLayerDescriptor xmlns=“http://www.opengis.net/sld” xmlns:ogc=“http://www.opengis.net/ogc” xmlns:xlink=“http://www.w3.org/1999/xlink” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” version="1.0.0"xsi:schemaLocation=“http://www.opengis.net/sld StyledLayerDescriptor.xsd”>

Optimized and styled label

SLD Cook Book: Optimized and styled label

#FF0000

ogc:PropertyNamename</ogc:PropertyName>

#000000

Arial

10

normal

bold

true

90

400

150



Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Best regards,
Stefano Costa
 
==
GeoServer Professional Services from the experts! Visit
[http://goo.gl/it488V](http://goo.gl/it488V) for more information.
==
Dott. Stefano Costa
Senior Software Engineer
 
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272
 
[http://www.geo-solutions.it](http://www.geo-solutions.it)
[http://twitter.com/geosolutions_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.
 


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Best regards,
Stefano Costa

==
GeoServer Professional Services from the experts! Visit
[http://goo.gl/it488V](http://goo.gl/it488V) for more information.
==
Dott. Stefano Costa
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272

[http://www.geo-solutions.it](http://www.geo-solutions.it)
[http://twitter.com/geosolutions_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.

I went again to the file. There is the message

You’re editing a file in a project you don’t have write access to. Submitting a change to this file will write it to a new branch in your fork jairds/geoserver, so you can send a pull request.

I assume that my changes are to be reviewed, and only then will be applied to the official file. It might be the reason why we cannot see them just yet.

JJ.

From: Stefano Costa [mailto:stefano.costa@anonymised.com1107…]
Sent: Monday, November 02, 2015 8:26 AM
To: Jair Santos jsantos5954@anonymised.com
Cc: GeoServer Mailing List List geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Geoserver style

Hi Jair,

I don’t see any PR from you fixing the docs… are you sure you followed the steps outlined here correctly?

http://docs.geoserver.org/latest/en/docguide/quickfix.html

You need a GitHub account to do this, do you have one?

If not, I can fix the docs for you.

Can you confirm that the style is working fine after the corrections?

On Mon, Nov 2, 2015 at 5:04 PM, Jair Santos <jsantos5954@anonymised.com> wrote:

Thank you Stefano. I’ve proposed the fix in GitHub but the preview in the GeoServer doc is still wrong.

http://docs.geoserver.org/latest/en/user/styling/sld-cookbook/lines.html#optimized-and-styled-label

Do you know how to fix it?

JJ.

From: Stefano Costa [mailto:stefano.costa@anonymised.com7…]
Sent: Monday, November 02, 2015 1:24 AM
To: Jair Santos <jsantos5954@anonymised.com>
Cc: GeoServer Mailing List List <geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] Geoserver style

Hi Jair,

validation fails because the Font element should go immediately after Label.

This is the TextSymbolizer type definition taken from StyledLayerDescriptor.xsd:

<xsd:element name=“TextSymbolizer” substitutionGroup=“sld:Symbolizer”>

xsd:annotation

xsd:documentation

A “TextSymbolizer” is used to render text labels according to

various graphical parameters.

</xsd:documentation>

</xsd:annotation>

xsd:complexType

xsd:complexContent

<xsd:extension base=“sld:SymbolizerType”>

xsd:sequence

<xsd:element ref=“sld:Geometry” minOccurs=“0”/>

<xsd:element ref=“sld:Label” minOccurs=“0”/>

<xsd:element ref=“sld:Font” minOccurs=“0”/>

<xsd:element ref=“sld:LabelPlacement” minOccurs=“0”/>

<xsd:element ref=“sld:Halo” minOccurs=“0”/>

<xsd:element ref=“sld:Fill” minOccurs=“0”/>

<xsd:element ref=“sld:Graphic” minOccurs=“0”/>

<xsd:element ref=“sld:Priority” minOccurs=“0”/>

<xsd:element ref=“sld:VendorOption” minOccurs=“0” maxOccurs=“unbounded” />

</xsd:sequence>

</xsd:extension>

</xsd:complexContent>

</xsd:complexType>

</xsd:element>

Looks like an error in the documentation to me. You can fix it yourself by following this procedure:

http://docs.geoserver.org/latest/en/docguide/quickfix.html

The source file you need to change is:

https://github.com/geoserver/geoserver/blob/master/doc/en/user/source/styling/sld-cookbook/artifacts/line_optimizedstyledlabel.sld

Hope this helps.

On Sun, Nov 1, 2015 at 1:16 AM, Jair Santos <jsantos5954@anonymised.com> wrote:

Does anybody knows why the style below, which I’ve just copied from Geoserver documentation fails?

Error: line 23: cvc-complex-type.2.4.a: Invalid content was found starting with element ‘Font’. One of ‘{“http://www.opengis.net/sld”:Graphic, “http://www.opengis.net/sld”:Priority, “http://www.opengis.net/sld”:VendorOption}’ is expected.

I’ve only replaced the PropertyName from “name” to “diameter”

Thanks.

JJ.

<StyledLayerDescriptor xmlns=“http://www.opengis.net/sld” xmlns:ogc=“http://www.opengis.net/ogc” xmlns:xlink=“http://www.w3.org/1999/xlink” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” version="1.0.0"xsi:schemaLocation=“http://www.opengis.net/sld StyledLayerDescriptor.xsd”>

Optimized and styled label

SLD Cook Book: Optimized and styled label

#FF0000

ogc:PropertyNamename</ogc:PropertyName>

#000000

Arial

10

normal

bold

true

90

400

150



Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Best regards,
Stefano Costa
 
==
GeoServer Professional Services from the experts! Visit
[http://goo.gl/it488V](http://goo.gl/it488V) for more information.
==
Dott. Stefano Costa
Senior Software Engineer
 
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272
 
[http://www.geo-solutions.it](http://www.geo-solutions.it)
[http://twitter.com/geosolutions_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.
 


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Best regards,
Stefano Costa

==
GeoServer Professional Services from the experts! Visit
[http://goo.gl/it488V](http://goo.gl/it488V) for more information.
==
Dott. Stefano Costa
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272

[http://www.geo-solutions.it](http://www.geo-solutions.it)
[http://twitter.com/geosolutions_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.

I still can’t see any pull request from you… did you hit the “Propose file change” green button at the bottom of the page?

According to the quickstart guide, GitHub should “Create a fork and submit a pull request on your behalf” when you do it…

Can you point me to your GeoServer fork so I can take a look and try to figure out what’s going on?

···

On Mon, Nov 2, 2015 at 6:14 PM, Jair Santos <jsantos5954@anonymised.com> wrote:

I went again to the file. There is the message

You’re editing a file in a project you don’t have write access to. Submitting a change to this file will write it to a new branch in your fork jairds/geoserver, so you can send a pull request.

I assume that my changes are to be reviewed, and only then will be applied to the official file. It might be the reason why we cannot see them just yet.

JJ.

From: Stefano Costa [mailto:stefano.costa@anonymised.com7…]
Sent: Monday, November 02, 2015 8:26 AM

To: Jair Santos <jsantos5954@anonymised.com>
Cc: GeoServer Mailing List List <geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] Geoserver style

Hi Jair,

I don’t see any PR from you fixing the docs… are you sure you followed the steps outlined here correctly?

http://docs.geoserver.org/latest/en/docguide/quickfix.html

You need a GitHub account to do this, do you have one?

If not, I can fix the docs for you.

Can you confirm that the style is working fine after the corrections?

On Mon, Nov 2, 2015 at 5:04 PM, Jair Santos <jsantos5954@anonymised.com> wrote:

Thank you Stefano. I’ve proposed the fix in GitHub but the preview in the GeoServer doc is still wrong.

http://docs.geoserver.org/latest/en/user/styling/sld-cookbook/lines.html#optimized-and-styled-label

Do you know how to fix it?

JJ.

From: Stefano Costa [mailto:stefano.costa@anonymised.com]
Sent: Monday, November 02, 2015 1:24 AM
To: Jair Santos <jsantos5954@anonymised.com>
Cc: GeoServer Mailing List List <geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] Geoserver style

Hi Jair,

validation fails because the Font element should go immediately after Label.

This is the TextSymbolizer type definition taken from StyledLayerDescriptor.xsd:

<xsd:element name=“TextSymbolizer” substitutionGroup=“sld:Symbolizer”>

xsd:annotation

xsd:documentation

A “TextSymbolizer” is used to render text labels according to

various graphical parameters.

</xsd:documentation>

</xsd:annotation>

xsd:complexType

xsd:complexContent

<xsd:extension base=“sld:SymbolizerType”>

xsd:sequence

<xsd:element ref=“sld:Geometry” minOccurs=“0”/>

<xsd:element ref=“sld:Label” minOccurs=“0”/>

<xsd:element ref=“sld:Font” minOccurs=“0”/>

<xsd:element ref=“sld:LabelPlacement” minOccurs=“0”/>

<xsd:element ref=“sld:Halo” minOccurs=“0”/>

<xsd:element ref=“sld:Fill” minOccurs=“0”/>

<xsd:element ref=“sld:Graphic” minOccurs=“0”/>

<xsd:element ref=“sld:Priority” minOccurs=“0”/>

<xsd:element ref=“sld:VendorOption” minOccurs=“0” maxOccurs=“unbounded” />

</xsd:sequence>

</xsd:extension>

</xsd:complexContent>

</xsd:complexType>

</xsd:element>

Looks like an error in the documentation to me. You can fix it yourself by following this procedure:

http://docs.geoserver.org/latest/en/docguide/quickfix.html

The source file you need to change is:

https://github.com/geoserver/geoserver/blob/master/doc/en/user/source/styling/sld-cookbook/artifacts/line_optimizedstyledlabel.sld

Hope this helps.

On Sun, Nov 1, 2015 at 1:16 AM, Jair Santos <jsantos5954@anonymised.com> wrote:

Does anybody knows why the style below, which I’ve just copied from Geoserver documentation fails?

Error: line 23: cvc-complex-type.2.4.a: Invalid content was found starting with element ‘Font’. One of ‘{“http://www.opengis.net/sld”:Graphic, “http://www.opengis.net/sld”:Priority, “http://www.opengis.net/sld”:VendorOption}’ is expected.

I’ve only replaced the PropertyName from “name” to “diameter”

Thanks.

JJ.

<StyledLayerDescriptor xmlns=“http://www.opengis.net/sld” xmlns:ogc=“http://www.opengis.net/ogc” xmlns:xlink=“http://www.w3.org/1999/xlink” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” version="1.0.0"xsi:schemaLocation=“http://www.opengis.net/sld StyledLayerDescriptor.xsd”>

Optimized and styled label

SLD Cook Book: Optimized and styled label

#FF0000

ogc:PropertyNamename</ogc:PropertyName>

#000000

Arial

10

normal

bold

true

90

400

150



Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Best regards,
Stefano Costa
 
==
GeoServer Professional Services from the experts! Visit
[http://goo.gl/it488V](http://goo.gl/it488V) for more information.
==
Dott. Stefano Costa
Senior Software Engineer
 
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272
 
[http://www.geo-solutions.it](http://www.geo-solutions.it)
[http://twitter.com/geosolutions_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.
 


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Best regards,
Stefano Costa
 
==
GeoServer Professional Services from the experts! Visit
[http://goo.gl/it488V](http://goo.gl/it488V) for more information.
==
Dott. Stefano Costa
Senior Software Engineer
 
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272
 
[http://www.geo-solutions.it](http://www.geo-solutions.it)
[http://twitter.com/geosolutions_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.
 


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Best regards,
Stefano Costa

==
GeoServer Professional Services from the experts! Visit
[http://goo.gl/it488V](http://goo.gl/it488V) for more information.
==
Dott. Stefano Costa
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272

[http://www.geo-solutions.it](http://www.geo-solutions.it)
[http://twitter.com/geosolutions_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.