In order to clarify the essence of my doubts about the expected behavior of the method float[] Stroke.getDashArray() I have add new test in SLDStyleTest:
Stroke stroke = sf.createStroke(null, null); assertNull(stroke.getDashArray()); List<Expression> dashArray = stroke.dashArray(); dashArray.add(ff.literal("5")); dashArray.add(ff.literal("10")); assertTrue(Arrays.equals(new float[]{5, 10}, stroke.getDashArray())); dashArray.add(ff.property("dash_size")); assertTrue(Arrays.equals(new float[]{}, stroke.getDashArray())); Stroke stroke2 = sf.createStroke(null, null, null, null, null, new float[]{5, 10}, null, null, null); assertTrue(Arrays.equals(new float[]{5, 10}, stroke2.getDashArray())); Is this the behavior that users of method getDashArray() can expect? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/SLD-Stroke-Dasharray-Property-tp5083512p5219894.html Sent from the geotools-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ GeoTools-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel