[Geoserver-devel] [jira] Created: (GEOS-1697) Incorrect drawing of multipolygon when using external graphic as graphic stroke

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

Hi all, I've tried mvn compile from fresh checkout and got he following error:

BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

/Users/superandrew/Documents/Tesi/geoserver/main/src/main/java/org/geotools/referencing/operation/projection/Mercator1SPGoogle.java:[17,7] org.geotools.referencing.operation.projection.Mercator1SPGoogle is not abstract and does not override abstract method inverse() in org.opengis.referencing.operation.MathTransform2D

/Users/superandrew/Documents/Tesi/geoserver/main/src/main/java/org/geotools/referencing/operation/projection/Mercator1SPGoogle.java:[46,25] org.geotools.referencing.operation.projection.Mercator1SPGoogle.Spherical is not abstract and does not override abstract method inverse() in org.opengis.referencing.operation.MathTransform2D

Thanks

Andrea

Hi Andrea,

Which branch are you building? 1.6.x or trunk? Also are you build
geotools as well? Or you downloading the latest snapshots from the
online maven repository?

Andrea Maschio wrote:

Hi all, I've tried mvn compile from fresh checkout and got he
following error:

BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

/Users/superandrew/Documents/Tesi/geoserver/main/src/main/java/org/
geotools/referencing/operation/projection/Mercator1SPGoogle.java:
[17,7] org.geotools.referencing.operation.projection.Mercator1SPGoogle
is not abstract and does not override abstract method inverse() in
org.opengis.referencing.operation.MathTransform2D

/Users/superandrew/Documents/Tesi/geoserver/main/src/main/java/org/
geotools/referencing/operation/projection/Mercator1SPGoogle.java:
[46,25]
org
.geotools.referencing.operation.projection.Mercator1SPGoogle.Spherical
is not abstract and does not override abstract method inverse() in
org.opengis.referencing.operation.MathTransform2D

Thanks

Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:4007,47951eff286833327367457!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Andrea Maschio a écrit :

[INFO] Compilation failure

org/geotools/referencing/operation/projection/Mercator1SPGoogle.java:
[17,7] org.geotools.referencing.operation.projection.Mercator1SPGoogle
is not abstract and does not override abstract method inverse() in
org.opengis.referencing.operation.MathTransform2D

GeoAPI and GeoTools have been updated recently (last Sunday) on trunk. It may be
the GeoAPI-SNAPSHOT has been downloaded as it should, but not the corresponding
GeoTools-SNAPSHOT.

I wonder, are GeoTools snapshots deployed automatically on Maven repository? I
assumed that they are...

  Martin