I created complex label style in QGIS 3.8.1 and saved it to SLD file then uploaded it in GeoServer 2.15 as a new style, but I should add centroid function to avoid duplicate labels, I tried to add it but unfortunately I got error message:

line 43: cvc-complex-type.2.4.a: Invalid content was found starting with element 'se:Geometry'. 
One of '{"http://www.opengis.net/se":Displacement, 
"http://www.opengis.net/se":VendorOption}' is expected.

error message


Download SLD file

Duplicate Labels

But no duplicate labels, when i open the layer from "Layer preview" by open layer format.

  • 2
    Please place error messages in the body of the question as text. This makes it legible in all devices and searchable as well.
    – Vince
    Aug 12, 2019 at 15:03
  • 1
    I'm voting to close this question as off-topic because didn't find a solution
    – GIS Man
    Aug 17, 2019 at 11:45

1 Answer 1


While invalid that SLD will probably work as GeoServer's parser is relatively forgiving of errors of this type.

However, to fix it you need to place the Geometry tag at the start of the Symbolizer (the manual gives the correct order for the tags in a TextSymboliser).


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.