Hi,

I am trying to compose an sld consisting of hatched lines at a 45 degree angle 
made from an svg graphic.

I have an sld below file which references a svg graphic (also below)

and here is the layer preview in 
Geoserver: http://maps.zgb.de/geoserver/zgb/wms?service=WMS&version=1.1.0&request=GetMap&layers=zgb:landwirtschaft&styles=&bbox=3568099.0,5725657.0,3641090.5,5856701.5&width=285&height=512&srs=EPSG:31467&format=application/openlayers

Could anyone please tell me why there are gaps between the graphics...i.e why 
the graphic is not a continous diagonal line? 


Thanks for any help,

Robert


SVG Graphic:
<?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 
1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd";> <svgwidth="600" 
height="600"xmlns="http://www.w3.org/2000/svg";> <title>SVG</title> 
<styletype="text/css"><![CDATA[ text {font-size:60px; text-anchor:middle;} 
]]></style>
<polygonpoints="260 0 340 0 600 260 600 340" stroke="#F0BE00" 
stroke-width="2px" fill="#F0BE00" />
<polygonpoints="0 260 0 340 260 600 340 600" stroke="#F0BE00" 
stroke-width="2px" fill="#F0BE00" /> </svg>


SLD:
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<sld:StyledLayerDescriptor version="1.0.0" xmlns:sld="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink";>
  <sld:NamedLayer>
    <sld:Name>landwirtschaft</sld:Name>
    <sld:UserStyle>
      <sld:Name>landwirtschaft</sld:Name>
      <sld:FeatureTypeStyle>
        <sld:FeatureTypeName>landwirtschaft</sld:FeatureTypeName>
        
          <sld:Rule>
          <sld:Name>04_01</sld:Name>
          <sld:Title>Vorbehaltsgebiet Landwirtschaft</sld:Title>
          <ogc:Filter>
            <ogc:PropertyIsLike wildCard="*" singleChar="?" escape="\">
              <ogc:PropertyName>planznr</ogc:PropertyName>
              <ogc:Literal>04.01</ogc:Literal>
            </ogc:PropertyIsLike>
          </ogc:Filter>
          <sld:PolygonSymbolizer>
            <sld:Fill>
              <sld:CssParameter name="fill">#F7E3B5</sld:CssParameter>
              <sld:CssParameter name="fill-opacity">1</sld:CssParameter>
            </sld:Fill>
          </sld:PolygonSymbolizer>
        </sld:Rule>     
        
        <sld:Rule>
          <sld:Name>04_02</sld:Name>
          <sld:Title>Vorbehaltsgebiet Landwirtschaft auf Grund besonderer 
Funktion</sld:Title>
          <ogc:Filter>
            <ogc:PropertyIsLike wildCard="*" singleChar="?" escape="\">
              <ogc:PropertyName>planznr</ogc:PropertyName>
              <ogc:Literal>04.02</ogc:Literal>
            </ogc:PropertyIsLike>
          </ogc:Filter>
          <sld:PolygonSymbolizer>
            <sld:Fill>
              <sld:GraphicFill>
                <sld:Graphic>
                  <sld:ExternalGraphic>
                    
<sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="graphics/0402.svg"/>
                    <sld:Format>image/svg</sld:Format>
                  </sld:ExternalGraphic>
                  <sld:Size>21</sld:Size>
                  <sld:Rotation>0</sld:Rotation>
                </sld:Graphic>
              </sld:GraphicFill>
            </sld:Fill>
          </sld:PolygonSymbolizer>
        </sld:Rule>
        
      </sld:FeatureTypeStyle>
    </sld:UserStyle>
  </sld:NamedLayer>
</sld:StyledLayerDescriptor>
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to