Hello all,Question regarding styling: we have polygon layers with marker fills. When using a margin (to add space between markers) it seems the marker is cut apart, with the bottom of the marker appearing at the top. I am attaching an example to hopefully make this clearer (image and SLD file), with one rule without margin (on the left, marker appears correctly) and the other with a margin of 5 (on the right, marker appears to be broken). Is this expected behavior?
Thanks in advance, Cécile -- *camptocamp* INNOVATIVE SOLUTIONS BY OPEN SOURCE EXPERTS
*Cécile Vuilleumier * Geospatial developer * * *Camptocamp SA* Route de la Chaux 4 Bâtiment A (Feuille) 1030 Bussigny Switzerland +41 62 544 03 77 (direct) +41 21 619 10 10 (central) www.camptocamp.com <http://www.camptocamp.com>
<?xml version="1.0" encoding="ISO-8859-1"?> <StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd" xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <NamedLayer> <Name>polygon_fill</Name> <UserStyle> <FeatureTypeStyle> <Rule> <ogc:Filter> <ogc:PropertyIsEqualTo> <ogc:PropertyName>symbol</ogc:PropertyName> <ogc:Literal>1</ogc:Literal> </ogc:PropertyIsEqualTo> </ogc:Filter> <PolygonSymbolizer> <VendorOption name="graphic-margin">0</VendorOption> <Fill> <GraphicFill> <Graphic> <Mark> <WellKnownName>triangle</WellKnownName> <Fill> <CssParameter name="fill">#686868</CssParameter> <CssParameter name="fill-opacity">1.0</CssParameter> </Fill> <Stroke> <CssParameter name="stroke">#000000</CssParameter> <CssParameter name="stroke-width">0</CssParameter> <CssParameter name="stroke-opacity">1.0</CssParameter> </Stroke> </Mark> <Opacity>1.0</Opacity> <Size>12</Size> <Rotation>0</Rotation> </Graphic> </GraphicFill> </Fill> <Stroke> <CssParameter name="stroke">#000000</CssParameter> <CssParameter name="stroke-width">0.5</CssParameter> </Stroke> </PolygonSymbolizer> </Rule> <Rule> <ogc:Filter> <ogc:PropertyIsEqualTo> <ogc:PropertyName>symbol</ogc:PropertyName> <ogc:Literal>2</ogc:Literal> </ogc:PropertyIsEqualTo> </ogc:Filter> <PolygonSymbolizer> <VendorOption name="graphic-margin">5</VendorOption> <Fill> <GraphicFill> <Graphic> <Mark> <WellKnownName>triangle</WellKnownName> <Fill> <CssParameter name="fill">#686868</CssParameter> <CssParameter name="fill-opacity">1.0</CssParameter> </Fill> <Stroke> <CssParameter name="stroke">#000000</CssParameter> <CssParameter name="stroke-width">0</CssParameter> <CssParameter name="stroke-opacity">1.0</CssParameter> </Stroke> </Mark> <Opacity>1.0</Opacity> <Size>12</Size> <Rotation>0</Rotation> </Graphic> </GraphicFill> </Fill> <Stroke> <CssParameter name="stroke">#000000</CssParameter> <CssParameter name="stroke-width">0.5</CssParameter> </Stroke> </PolygonSymbolizer> </Rule> </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