Odpowiedz 
 
Ocena wątku:
  • 0 Głosów - 0 Średnio
  • 1
  • 2
  • 3
  • 4
  • 5
SLD problem?
21-11-2011, 11:20 PM
Post: #1
SLD problem?
Tworze symbolizacje SLD. Przy symbolizacji poziomnic w geoserwer pojawia się błąd :
"java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence."

Za bardzo nie wiem o co mu chodzi.
coś robię źle?


Moja symbolizacja

<?xml version="1.0" encoding="UTF-8"?>
<sld:UserStyle xmlns="http://www.opengis.net/sld" xmlns:sld="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml">
<sld:Name>AtlasStyler 1.7</sld:Name>
<sld:Title/>
<sld:FeatureTypeStyle>
<sld:Name>UNIQUE_VALUE_LINE</sld:Name>
<sld:Title>UniqueValuesLineRuleList</sld:Title>
<sld:FeatureTypeName>Feature</sld:FeatureTypeName>
<sld:Rule>
<sld:Title>Poziomnice pomocnicze</sld:Title>
<ogc:Filter>
<ogc:And>
<ogc:PropertyIsEqualTo>
<ogc:Literal>ALL_LABEL_CLASSES_ENABLED</ogc:Literal>
<ogc:Literal>ALL_LABEL_CLASSES_ENABLED</ogc:Literal>
</ogc:PropertyIsEqualTo>
<ogc:And>
<ogc:Not>
<ogc:Or>
<ogc:PropertyIsNull>
<ogc:PropertyName>DDD</ogc:PropertyName>
</ogc:PropertyIsNull>
<ogc:PropertyIsNull>
<ogc:PropertyName>DDD</ogc:PropertyName>
</ogc:PropertyIsNull>
</ogc:Or>
</ogc:Not>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>DDD</ogc:PropertyName>
<ogc:Literal>0</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:And>
</ogc:And>
</ogc:Filter>
<sld:MaxScaleDenominator>50000.0</sld:MaxScaleDenominator>
<sld:LineSymbolizer>
<sld:Geometry>
<ogc:PropertyName>the_geom</ogc:PropertyName>
</sld:Geometry>
<sld:Stroke>
<sld:CssParameter name="stroke">#E69191</sld:CssParameter>
<sld:CssParameter name="stroke-width">0.5</sld:CssParameter>
</sld:Stroke>
</sld:LineSymbolizer>
</sld:Rule>
<sld:Rule>
<sld:Title>Poziomnice głowne</sld:Title>
<ogc:Filter>
<ogc:And>
<ogc:PropertyIsEqualTo>
<ogc:Literal>ALL_LABEL_CLASSES_ENABLED</ogc:Literal>
<ogc:Literal>ALL_LABEL_CLASSES_ENABLED</ogc:Literal>
</ogc:PropertyIsEqualTo>
<ogc:And>
<ogc:Not>
<ogc:Or>
<ogc:PropertyIsNull>
<ogc:PropertyName>DDD</ogc:PropertyName>
</ogc:PropertyIsNull>
<ogc:PropertyIsNull>
<ogc:PropertyName>DDD</ogc:PropertyName>
</ogc:PropertyIsNull>
</ogc:Or>
</ogc:Not>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>DDD</ogc:PropertyName>
<ogc:Literal>1</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:And>
</ogc:And>
</ogc:Filter>
<sld:MaxScaleDenominator>50000.0</sld:MaxScaleDenominator>
<sld:LineSymbolizer>
<sld:Geometry>
<ogc:PropertyName>the_geom</ogc:PropertyName>
</sld:Geometry>
<sld:Stroke>
<sld:CssParameter name="stroke">#E09292</sld:CssParameter>
</sld:Stroke>
</sld:LineSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
<sld:FeatureTypeStyle>
<sld:Name>UNIQUE_VALUE_LINE</sld:Name>
<sld:Title>UniqueValuesLineRuleList</sld:Title>
<sld:FeatureTypeName>Feature</sld:FeatureTypeName>
</sld:FeatureTypeStyle>
<sld:FeatureTypeStyle>
<sld:Name>SINGLE_SYMBOL_LINE</sld:Name>
<sld:Title>SingleLineSymbolRuleList</sld:Title>
<sld:FeatureTypeName>Feature</sld:FeatureTypeName>
<sld:Rule>
<sld:Name>null_HIDE_IN_LEGEND</sld:Name>
<sld:Title>default{Poziomnice_1.shp}</sld:Title>
<ogc:Filter>
<ogc:And>
<ogc:PropertyIsEqualTo>
<ogc:Literal>ALL_LABEL_CLASSES_DISABLED</ogc:Literal>
<ogc:Literal>YES</ogc:Literal>
</ogc:PropertyIsEqualTo>
<ogc:PropertyIsEqualTo>
<ogc:Literal>1</ogc:Literal>
<ogc:Literal>1</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:And>
</ogc:Filter>
<sld:MaxScaleDenominator>30000.0</sld:MaxScaleDenominator>
<sld:LineSymbolizer>
<sld:Geometry>
<ogc:PropertyName>the_geom</ogc:PropertyName>
</sld:Geometry>
<sld:Stroke>
<sld:CssParameter name="stroke">#D59696</sld:CssParameter>
<sld:CssParameter name="stroke-width">0.5</sld:CssParameter>
</sld:Stroke>
</sld:LineSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
<sld:FeatureTypeStyle>
<sld:Name>TEXT_LABEL</sld:Name>
<sld:Title>TextRuleList</sld:Title>
<sld:FeatureTypeName>Feature</sld:FeatureTypeName>
<sld:Rule>
<sld:Name>DEFAULT</sld:Name>
<ogc:Filter>
<ogc:And>
<ogc:PropertyIsEqualTo>
<ogc:Literal>ALL_LABEL_CLASSES_ENABLED</ogc:Literal>
<ogc:Literal>ALL_LABEL_CLASSES_ENABLED</ogc:Literal>
</ogc:PropertyIsEqualTo>
<ogc:And>
<ogc:PropertyIsEqualTo>
<ogc:Literal>LABEL_CLASS_ENABLED</ogc:Literal>
<ogc:Literal>LABEL_CLASS_ENABLED</ogc:Literal>
</ogc:PropertyIsEqualTo>
<ogc:PropertyIsEqualTo>
<ogc:Literal>1</ogc:Literal>
<ogc:Literal>1</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:And>
</ogc:And>
</ogc:Filter>
<sld:MaxScaleDenominator>10000.0</sld:MaxScaleDenominator>
<sld:TextSymbolizer>
<sld:Geometry>
<ogc:PropertyName>the_geom</ogc:PropertyName>
</sld:Geometry>
<sld:Label>
<ogc:PropertyName>Wys</ogc:PropertyName>
</sld:Label>
<sld:Font>
<sld:CssParameter name="font-family">Arial Black</sld:CssParameter>
<sld:CssParameter name="font-size">8.0</sld:CssParameter>
<sld:CssParameter name="font-style">normal</sld:CssParameter>
<sld:CssParameter name="font-weight">normal</sld:CssParameter>
</sld:Font>
<sld:LabelPlacement>
<sld:LinePlacement>
<sld:PerpendicularOffset>
<ogc:Literal>0.0</ogc:Literal>
</sld:PerpendicularOffset>
</sld:LinePlacement>
</sld:LabelPlacement>
<sld:Halo>
<sld:Radius>
<ogc:Literal>1.0</ogc:Literal>
</sld:Radius>
<sld:Fill>
<sld:CssParameter name="fill">#F6E2E2</sld:CssParameter>
</sld:Fill>
</sld:Halo>
<sld:Fill>
<sld:CssParameter name="fill">#BF8888</sld:CssParameter>
</sld:Fill>
<sld:VendorOption name="spaceAround">1</sld:VendorOption>
</sld:TextSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
</sld:UserStyle>
Znajdź wszystkie posty użytkownika
Zacytuj ten post w odpowiedzi
29-11-2011, 08:40 PM
Post: #2
RE: SLD problem?
Chodziło o kodowanie znaków.
Znajdź wszystkie posty użytkownika
Zacytuj ten post w odpowiedzi
Odpowiedz 


Skocz do: