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:[email protected]] Sent: Monday, November 02, 2015 8:26 AM To: Jair Santos <[email protected]> Cc: GeoServer Mailing List List <[email protected]> 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 <[email protected] <mailto:[email protected]> > 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:[email protected] <mailto:[email protected]> ] Sent: Monday, November 02, 2015 1:24 AM To: Jair Santos <[email protected] <mailto:[email protected]> > Cc: GeoServer Mailing List List <[email protected] <mailto:[email protected]> > 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"/> <!-- GeoServer specific extensions, these are not part of the SLD 1.0 standard --> <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 <[email protected] <mailto:[email protected]> > 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 <http://www.opengis.net/sld%20StyledLayerDescriptor.xsd> "> <NamedLayer> <Name>Optimized and styled label</Name> <UserStyle> <Title>SLD Cook Book: Optimized and styled label</Title> <FeatureTypeStyle> <Rule> <LineSymbolizer> <Stroke> <CssParameter name="stroke">#FF0000</CssParameter> </Stroke> </LineSymbolizer> <TextSymbolizer> <Label> <ogc:PropertyName>name</ogc:PropertyName> </Label> <LabelPlacement> <LinePlacement/> </LabelPlacement> <Fill> <CssParameter name="fill">#000000</CssParameter> </Fill> <Font> <CssParameter name="font-family">Arial</CssParameter> <CssParameter name="font-size">10</CssParameter> <CssParameter name="font-style">normal</CssParameter> <CssParameter name="font-weight">bold</CssParameter> </Font> <VendorOption name="followLine">true</VendorOption> <VendorOption name="maxAngleDelta">90</VendorOption> <VendorOption name="maxDisplacement">400</VendorOption> <VendorOption name="repeat">150</VendorOption> </TextSymbolizer> </Rule> </FeatureTypeStyle> </UserStyle> </NamedLayer> </StyledLayerDescriptor> ------------------------------------------------------------------------------ _______________________________________________ Geoserver-users mailing list [email protected] <mailto:[email protected]> https://lists.sourceforge.net/lists/listinfo/geoserver-users -- Best regards, Stefano Costa == GeoServer Professional Services from the experts! Visit 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 <tel:%2B39%200584%20962313> fax: +39 0584 1660272 <tel:%2B39%200584%201660272> 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. ------------------------------------------------------------------------------ _______________________________________________ Geoserver-users mailing list [email protected] <mailto:[email protected]> https://lists.sourceforge.net/lists/listinfo/geoserver-users -- Best regards, Stefano Costa == GeoServer Professional Services from the experts! Visit 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://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 [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
