On Wed, Jun 8, 2011 at 9:00 AM, Putna Levi <[email protected]> wrote: > I have recently started playing around with some sld's and came across a > strange bug involving dash array. > > I have a sld with two LineSymbolizer's both defining the same line and > both with a dasharray. I am noticing that when the start of the line is > visible within the image clipping plain the two array's line up > correctly, if the start of the line is not within the clipping plain the > two dash array seems to be out of sink by two pixels. This is a big > problem when serving tiles with GeoServer as more often than not the > start of the line is not within the tile. > > I attached an example screenshot and sld. > > Any idea what might cause this problem?
Yeah, it's a known problem, it has bee reported on GeoServer land as well. Happens because the code drawing the graphic strokes, which is hand made, does not synch up well with the one for plain line dash arrays, which is java based instead. We either have to replicate the java one better, or stop using the java one for lines... not sure which one right one, either way does not seem like a simple fix Interested in trying to fix it? Look into the StyledShapePainter class in the modules/library/renderer module Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
