Package oracle.sql

Examples of oracle.sql.STRUCT


            return;
       
        String wkt = "GEOMETRYCOLLECTION (POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0)), MULTIPOINT ((5 5), (10 10)))";
        Geometry original = new WKTReader().read(wkt);
        original.setSRID(4326);
        STRUCT datum = converter.toSDO(original);
        Geometry geom = (Geometry) converter.asGeometry(datum);
        assertEquals(4326, geom.getSRID());
        assertEquals(original, geom);
    }
View Full Code Here


       
        NUMBER SDO_SRID = (srid == SDO.SRID_NULL || srid == 0) ? null :
                          new NUMBER( srid );
       
        double[] point = SDO.point( geom );
        STRUCT SDO_POINT;
       
        ARRAY SDO_ELEM_INFO;
        ARRAY SDO_ORDINATES;
       
        if( point == null ) {
View Full Code Here

        dataType = "DRA."+dataType.substring(2);//TODO here
      }
        StructDescriptor descriptor =
            StructDescriptor.createDescriptor( dataType, connection );
   
         return new STRUCT( descriptor, connection, attributes );
    }
View Full Code Here

        }

        OracleConnection ocx = unwrapConnection(ps.getConnection());

        GeometryConverter converter = new GeometryConverter(ocx);
        STRUCT s = converter.toSDO(g, srid);
        ps.setObject(column, s);

        if (LOGGER.isLoggable(Level.FINE)) {
            String sdo;
            try {
View Full Code Here

TOP

Related Classes of oracle.sql.STRUCT

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.