Hey, I think some of the filters in the sld are missing a propertyname? e.g:
<se:Rule>
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:Literal>AFFLEUREMENT-EAU</ogc:Literal>
</ogc:Filter>
so there are no columns to enforce the rule on.
All the best,
Tõnis
On 10.08.21 16:46, celati Laurent wrote:
Good afternoon,
I'm taking the liberty to post a new message
regarding this time style aspects.
I try to upload a new style thanks to a sld file generated from qgis.
But i have an error message when i try to browse the sld. Please find
below the error message :
* java.lang.RuntimeException: Parsing failed for Filter:
java.lang.RuntimeException: Unable to find function Literal
For information,
This attempt does not generate geosever additional logs.
For information, please find below the sld file :
Thanks.
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor xmlns="http://www.opengis.net/sld
<http://www.opengis.net/sld>"
xsi:schemaLocation="http://www.opengis.net/sld
<http://www.opengis.net/sld>
http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd
<http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd>"
xmlns:ogc="http://www.opengis.net/ogc <http://www.opengis.net/ogc>"
version="1.1.0" xmlns:xlink="http://www.w3.org/1999/xlink
<http://www.w3.org/1999/xlink>"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
<http://www.w3.org/2001/XMLSchema-instance>"
xmlns:se="http://www.opengis.net/se <http://www.opengis.net/se>">
<NamedLayer>
<se:Name>GeotekEauCigeo_po_210503</se:Name>
<UserStyle>
<se:Name>GeotekEauCigeo_po_210503</se:Name>
<se:FeatureTypeStyle>
...
<se:Rule>
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc
<http://www.opengis.net/ogc>">
<ogc:Literal>AFFLEUREMENT-EAU</ogc:Literal>
</ogc:Filter>
<se:MinScaleDenominator>1</se:MinScaleDenominator>
<se:MaxScaleDenominator>25000</se:MaxScaleDenominator>
<se:TextSymbolizer>
<se:Label>
<ogc:PropertyName>ID_BSS</ogc:PropertyName>
</se:Label>
<se:Font>
<se:SvgParameter name="font-family">Arial</se:SvgParameter>
<se:SvgParameter name="font-size">9</se:SvgParameter>
<se:SvgParameter name="font-style">italic</se:SvgParameter>
</se:Font>
<se:LabelPlacement>
<se:PointPlacement>
<se:AnchorPoint>
<se:AnchorPointX>0</se:AnchorPointX>
<se:AnchorPointY>0.5</se:AnchorPointY>
</se:AnchorPoint>
</se:PointPlacement>
</se:LabelPlacement>
<se:Fill>
<se:SvgParameter name="fill">#000000</se:SvgParameter>
</se:Fill>
<se:VendorOption name="maxDisplacement">1</se:VendorOption>
</se:TextSymbolizer>
</se:Rule>
> ...
</se:FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
_______________________________________________
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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
@tkardi
skype: tonis.kardi
_______________________________________________
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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users