Error ETYPE 1 005 must be expected POLYGON or POLYGON_EXTERIOR (one of 3,1003,1007,1007,) with compound polygon including curves
---------------------------------------------------------------------------------------------------------------------------------
Key: GEOS-3879
URL: http://jira.codehaus.org/browse/GEOS-3879
Project: GeoServer
Issue Type: Bug
Components: Oracle
Affects Versions: 2.0.1
Environment: Windows Server 2003 R2, OpenLayers 2.8
Reporter: kamardine
Assignee: Andrea Aime
Hello,
I use GeoServer with Oracle 10g R2 datastore and i receive the error : ETYPE 1 005 must be expected POLYGON or POLYGON_EXTERIOR (one of 3,1003,1007,1007,),
if i want to display a compound polgon geometry including curves.
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,1005,2,1,2,2,7,2,1),
MDSYS.SDO_ORDINATE_ARRAY(
849551.487513588,108744.295613174,0,
849552.07822461,108743.178837116,0,
849553.118042988,108742.461267596,0,
849553.474721293,108746.299805552,0,
849551.487513588,108744.295613174,0))
);
commit;
Furthermore, this geometry has validate by Oracle function
select sdo_geom.validate_geometry_with_context(v.geometry1, 0.001) valid_geometry from fdp.geoserver_crash_geometry v;
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