Re: [Geotools-devel] Bug when graphic-margin is greater than marker size

2023-12-19 Thread Cécile Vuilleumier
Good question, yes it works like in CSS and it's mostly handled here: https://github.com/geotools/geotools/blob/main/modules/library/render/src/main/java/org/geotools/renderer/style/SLDStyleFactory.java#L1127

Re: [Geotools-devel] Bug when graphic-margin is greater than marker size

2023-12-19 Thread Jody Garnett
That looks good; and the change to the reference image covers your need for a test case. Question: you assume the margin is an array of 4 numbers. Does it work like with CSS where an array of a single number, or an array of two numbers could be provided? -- Jody Garnett On Tue, Dec 19, 2023

[Geotools-devel] Bug when graphic-margin is greater than marker size

2023-12-19 Thread Cécile Vuilleumier
Hi all I am back again on the topic of polygon fill with repeated markers (see https://osgeo-org.atlassian.net/browse/GEOT-7357) Unfortunately my fix did introduce an unwanted side effect: if the given margin is greater than the marker size, an error is thrown and the layer is not drawn: