Re: [Geotools-devel] SLD Stroke Dasharray Property

2015-08-13 Thread Igor Volkov
Hi! If anyone is curious, my code for the parsing of the dash-array property looks like this: ... String dashString = null; if( child.getChildNodes().getLength() == 1 && child.getFirstChild().getNodeType() == Node.TEXT_NODE ){ dashSt

Re: [Geotools-devel] SLD Stroke Dasharray Property

2015-08-13 Thread Nuno Oliveira
Hi, Glad I could help :) About your doubts, the dash-array use case is different from the one solved by the parseCssParameter method. We actually want a list of expressions, so no need for the concat function or other function. In my opinion the implementation of the parsing of the dash-array

Re: [Geotools-devel] SLD Stroke Dasharray Property

2015-08-13 Thread Igor Volkov
Also I have another doubts concerned to logic of sharing of implementation for float [] getDashArray () and List dashArray in StrokeImpl. I suggest that if List<> contains only float literals then getDasharray will return them. If List <> is empty then getDasharray will return null. And if element

Re: [Geotools-devel] SLD Stroke Dasharray Property

2015-08-13 Thread Igor Volkov
Thank you Nuno! Through your doubts I continued my search and found a nice solution, which is a symbiosis of my idea to use the argument of a function for storing expressions for dash array (list) and your desire to do without superfluous functions similar to that of the Label concatenation in SLD.