Incorrect drawing of multipolygon when using external graphic as graphic stroke
-------------------------------------------------------------------------------
Key: GEOS-1697
URL: http://jira.codehaus.org/browse/GEOS-1697
Project: GeoServer
Issue Type: Bug
Components: WMS
Affects Versions: 1.6.0-RC3, 1.5.4
Environment: RedHat Linux ES-4
MySQL 4.1.20
GeoServer and datastore are on separate servers
I've found the issue to exist on GeoServer 1.5.4 and on 1.6.0-RC3. Haven't tried other versions.
Reporter: Paul
Assignee: Andrea Aime
Attachments: wms-multipolygon-externalgraphic-bug.png, wms-multipolygon-externalgraphic-correct.png
This is a problem with the WMS rendering of a multipolygon feature using an
ExternalGraphic as the PolygonSymbolizer GraphicStroke. The PolygonSymbolizer
can correctly render multipolygons if the GraphicStroke is just a normal line.
But if it is an ExternalGraphic, additional line(s) appear that are not in the
geometry.
Steps to reproduce:
1) Create a test record to be plotted. The geometry will be a multipolygon.
Example:
MULTIPOLYGON(
((-100 50,-90 50,-90 40,-100 40,-100 50)),
((-80 50,-70 50,-70 40,-80 40,-80 50))
)
2) Create a test graphic image. (I just drew a line in GIMP and saved the
image).
3) To compare the results, we'll need 2 SLDs. You can use GeoServer's default
"polygon" SLD as the first SLD. Then for the second SLD test, create an SLD
that will draw the polygon using the graphic image.
4) Do a WMS GetMap request, with
STYLES=teststyle,polygon&LAYERS=testlayer,testlayer
I've attached an image (wms-multipolygon-externalgraphic-bug.png) showing what happens when I do this test. You'll see that when using the ExternalGraphic stroke, a line is drawn at the top that connects one polygon to the other. But when using a standard line stroke, no connecting line is drawn. I've attached image (wms-multipolygon-externalgraphic-correct.png) showing the plotting of the same multipolygon using just the default "polygon" style.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira