[Geoserver-devel] [jira] Created: (GEOS-3882) Error Invalid number of points in LinearRing (found 3 - must be 0 or >= 4)

Error Invalid number of points in LinearRing (found 3 - must be 0 or >= 4)
--------------------------------------------------------------------------

                 Key: GEOS-3882
                 URL: http://jira.codehaus.org/browse/GEOS-3882
             Project: GeoServer
          Issue Type: Bug
          Components: Oracle
    Affects Versions: 2.0.1
         Environment: Windows server 2003 R2, Oracle 10g (10.2.0.4), OpenLayers 2.8
            Reporter: kamardine
            Assignee: Andrea Aime

Hello,

I use GeoServer with Oracle 10g R2 datastore and i get this error if i want to display a polgon geometry with line graphic representation.

It's not conventional geometry form but others GIS application like Geomedia can display this geometry anomaly.

Here is the instructions to make the contexte of reproducing of the error :

create table geoserver_crash_geometry (id number(10),geometry1 msdsys.sdo_geometry, constraint geoserver_crash_geometry_pk primary key(id));

insert into user_sdo_geom_metadata (table_name, column_name,diminfo, srid )
values('GEOSERVER_CRASH_GEOMETRY','GEOMETRY1',mdsys.sdo_dim_array(mdsys.sdo_dim_element('x',100000,1100000,0.001),mdsys.sdo_dim_element('y',-300000,700000,0.001),mdsys.sdo_dim_element('z',-1000,10000,0.001)),NULL);

commit;
create index geoserver_crash_geometry$idgeo on geoserver_crash_geometry(geometry1) indextype is mdsys.spatial_index;

insert into geoserver_crash_geometry values(1,
MDSYS.SDO_GEOMETRY(3003,null,null,
MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1),
MDSYS.SDO_ORDINATE_ARRAY(
849566.389999911,108739.620002377,0,
849557.649999911,108752.030002381,0,
849566.389999911,108739.620002377,0
))
);
commit;

Best regards.

--
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