[Geoserver-devel] [jira] Created: (GEOS-4866) "Points of a LinearRing do not form a closed linestring" on polygon touching south pole

"Points of a LinearRing do not form a closed linestring" on polygon touching south pole
---------------------------------------------------------------------------------------

                 Key: GEOS-4866
                 URL: https://jira.codehaus.org/browse/GEOS-4866
             Project: GeoServer
          Issue Type: Bug
    Affects Versions: 2.1.2
         Environment: Windows 7 x64, PostgreSQL 9.1.1, PostGIS 2.0.0, JVM 1.6.0_29
            Reporter: Evan Martin
            Assignee: Andrea Aime

When previewing some polygons read from a PostGIS 2.0.0 database using OpenLayers GeoServer displays the following error:

code="internalError" Rendering process failed
Points of a LinearRing do not form a closed linestring

It doesn't specify which polygon caused the problem (so that would be nice to fix, too), but by trial an error I've found one that reproduces it:

SRID=4326;MULTIPOLYGON(((-131 -73.5,0 -90,163 -60,174 -60,-131 -73.5)))

Zooming in one level gets rid of the error and the polygon is displayed. Clearly, it is closed, otherwise PostGIS would not even allow it to be inserted into the DB. I suspect it may be related to the polygon touching the South pole.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira