Um dave the method was from OracleFeatureWrtier (well actually JDBCFeatureWriter) and was the original horrible hack left over from the DataSource api.

I have updated it to use prepared statements, SDO class still I have added the dependency on JTS1.7, but still need to pick up jtsio dependency.

Jody

That method will take care of it for you, notice MultiLineString is a subclass of Geometry :) Cheers, David

On 3/14/06, *Oliver Loe* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Hi

    I'm trying to encode MultiLineString geometries to be inserted
    into oracle. I found this method in SQLEncodeOracle:

    public static String toSDOGeom(Geometry geometry, int srid) {
            if (Point.class.isAssignableFrom(geometry.getClass())) {
                return toSDOGeom((Point) geometry, srid);
            } else if
    (LineString.class.isAssignableFrom(geometry.getClass())) {
                return toSDOGeom((LineString) geometry, srid);
            } else if
    (Polygon.class.isAssignableFrom(geometry.getClass())) {
                return toSDOGeom((Polygon) geometry, srid);
            } else {
                LOGGER.warning("Got a literal geometry that I can't
    handle: "
                    + geometry.getClass().getName());

                return "";
            }
        }

    It does not cater for MultiLineString objects. How can I get
    around this? Is there a fix for it?
    Oliver






-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to