Hi Andrea,

I tried to play with the margin plugin, and here is what I managed to
achieve:

<http://osgeo-org.1560.x6.nabble.com/file/n5257800/polygon.jpg> 

Unfortunately, as you can see this is not as the render I would like to
have:
<http://osgeo-org.1560.x6.nabble.com/file/n5257800/pattern.jpg> 


Here is the code I used:

                                        <se:PolygonSymbolizer>
                                                <se:Fill>
                                                        <se:GraphicFill>
                                                                <se:Graphic>
                                                                        
<se:ExternalGraphic>
                                                                                
<se:OnlineResource xlink:type="simple" xlink:href="pattern.svg" />
                                                                                
<se:Format>image/svg+xml</se:Format>
                                                                        
</se:ExternalGraphic>
                                                                        
<se:Size>12</se:Size>
                                                                </se:Graphic>
                                                        </se:GraphicFill>
                                                </se:Fill>
                                                <VendorOption 
name="graphic-margin">18 9 18 9</VendorOption>
                                                <se:Stroke>
                                                        <se:SvgParameter 
name="stroke">#EA5471</se:SvgParameter>
                                                        <se:SvgParameter 
name="stroke-width">1</se:SvgParameter>
                                                </se:Stroke>
                                        </se:PolygonSymbolizer>
                                        <se:PolygonSymbolizer>
                                                <se:Fill>
                                                        <se:GraphicFill>
                                                                <se:Graphic>
                                                                        
<se:ExternalGraphic>
                                                                                
<se:OnlineResource xlink:type="simple" xlink:href="pattern.svg" />
                                                                                
<se:Format>image/svg+xml</se:Format>
                                                                        
</se:ExternalGraphic>
                                                                        
<se:Size>12</se:Size>
                                                                </se:Graphic>
                                                        </se:GraphicFill>
                                                </se:Fill>
                                                <VendorOption 
name="graphic-margin">0 0 36 18</VendorOption>
                                                <se:Stroke>
                                                        <se:SvgParameter 
name="stroke">#EA5471</se:SvgParameter>
                                                        <se:SvgParameter 
name="stroke-width">1</se:SvgParameter>
                                                </se:Stroke>
                                        </se:PolygonSymbolizer>



Could the problem be because I'm not taking account of the size of the svg ?
If yes, how should I do ?
The svg I'm using is 10*10

Thank you for your help !



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Polygon-pattern-made-of-multiples-SVGs-tp5257478p5257800.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to