Details
Description
Hello,
I use GeoServer with Oracle 10g R2 datastore and i can not display a line geometry which the first and the end point are the same.
In other GIS software it load a point
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(3002,null,null,
MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),
MDSYS.SDO_ORDINATE_ARRAY(
784394.179999936,155710.240002316,0,
784394.179999936,155710.240002316,0
))
);
commit;
Best regards.
I think I already fixed this one as well, but it was for a sligtly less degenerate case, a line going from A to B and then back to A with only two segments.
Can you try a nightly build of both GeoServer and the Oracle datastore and confirm?
http://gridlock.openplans.org/geoserver/2.0.x/