Adding space around graphic fills

Description

As per the guidance of Ian Turton (Issues: CLOSED), I made the user list available and obtained the feedback from Nuno Miguel Carvalho Oliveira regarding my problem.

The initial instruction was to open a ticket on the validation error reported in the CLOSED issue. (https://sourceforge.net/p/geoserver/mailman/message/36272049/)

-------------------------------------------------- ----------------------------------

Hello,

This validation error occurs because the code that does the validation has not been extended
to take this element into account. That is, regardless of this validation error,
the style (seems) to be bandaged and will be correctly interpreted by the code that goes
draw the map.

I did a test with this style, which also fails validation, and the map produced
was in accordance with the expectations:

<? xml version = "1.0" encoding = "UTF-8"?>
<StyledLayerDescriptor version = "1.0.0"
xsi: schemaLocation = "http://www.opengis.net/sld 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 </ Name>
<UserStyle>
<FeatureTypeStyle>
<Rule>
<Name> rule </ Name>
<PolygonSymbolizer>
<Fill>
<GraphicFill>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink: type = "simple" xlink: href = "grass_fill.png" />
<Format> image / png </ Format>
</ ExternalGraphic>
</ Graphic>
</ GraphicFill>
</ Fill>
<VendorOption name = "graphic-margin"> 10 </ VendorOption>
</ PolygonSymbolizer>
</ Rule>
</ FeatureTypeStyle>
</ UserStyle>
</ NamedLayer>
</ StyledLayerDescriptor>

Note that the referenced image must be available in / class-path, / e.g.
folders / styles /, // or should provide the full path to the image.

You can create a ticket for the validation problem:
http://geoserver.org/issues/

Greetings,

Nuno Oliveira //

Environment

None

Assignee

Unassigned

Reporter

alinemaria

Triage

None

Fix versions

None

Affects versions

Components

Priority

Low
Configure