Multilinestring and Multipolygon issue in Oracle SDO

Description

Class org.geotools.data.oracle.sdo.SDO
Methods createMultiLine and createMultiPolygon:

the next code snippet (common for both methods) seems to be an error (the comment says the opposite to the condition in the if sentence). We have tried accessing multipolygons and multilines in Oracle and it gives us the warning. Removing the ! operator in the if condition seems to fix the problem.
------------------------------------------------ if (!(INTERPRETATION > 1))
{
// we cannot represent INTERPRETATION > 1
LOGGER.warning( "Could not create MultiLineString with INTERPRETATION "INTERPRETATION" - we can only represent 1 for straight edges");
return null;
}
--------------------------------------------------

Environment

None

Activity

Show:
codehaus
April 10, 2015, 3:23 PM

CodeHaus Comment From: jgarnett - Time: Wed, 14 Sep 2005 22:16:11 -0500
---------------------
The above mentioned code seemed to be the case of an enthusiastic cut and paste - problem resolved on 2.1.1 (patch will be applied to 2.2.x shortly)

codehaus
April 10, 2015, 3:23 PM

CodeHaus Comment From: cholmes - Time: Fri, 16 Sep 2005 04:44:45 -0500
---------------------
just trying to attach the jar...

codehaus
April 10, 2015, 3:23 PM

CodeHaus Comment From: cholmes - Time: Fri, 16 Sep 2005 04:47:21 -0500
---------------------
to use in geoserver replace the gt2-oracle.jar in WEB-INF/lib with this one. Hopefully it should work, let us know if it does the trick.

codehaus
April 10, 2015, 3:23 PM

CodeHaus Comment From: cholmes - Time: Fri, 16 Sep 2005 04:49:28 -0500
---------------------
just wanted to attach the jar, turning this back to closed.

codehaus
April 10, 2015, 3:23 PM

CodeHaus Comment From: cholmes - Time: Tue, 20 Sep 2005 16:58:20 -0500
---------------------
Lots of people on this one last week...

Assignee

Unassigned

Reporter

codehaus

Triage

None

Components

Fix versions

Affects versions

Priority

High
Configure