Oracle® Spatial Java API Reference
10g Release 2 (10.2)

B14373-02


oracle.spatial.util
Class SampleShapefileToJGeomFeature

java.lang.Object
  extended by oracle.spatial.util.SampleShapefileToJGeomFeature


public class SampleShapefileToJGeomFeature
extends java.lang.Object

This sample program reads all attributes and geometries from a Shapefile, and converts them to spatial features. These features are written to a database table. Shapefiles with measure data are converted to LRS geometries in the database.


Constructor Summary
SampleShapefileToJGeomFeature()
           

 

Method Summary
static void main(java.lang.String[] args)
           
protected static void prepareTableForData(java.sql.Connection conn, DBFReaderJGeom dbfr, ShapefileFeatureJGeom sf, int shpDims, double maxMeasure, ShapefileReaderJGeom sfh)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

SampleShapefileToJGeomFeature

public SampleShapefileToJGeomFeature()

Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

prepareTableForData

protected static void prepareTableForData(java.sql.Connection conn,
                                          DBFReaderJGeom dbfr,
                                          ShapefileFeatureJGeom sf,
                                          int shpDims,
                                          double maxMeasure,
                                          ShapefileReaderJGeom sfh)
                                   throws java.io.IOException,
                                          java.sql.SQLException
Throws:
java.io.IOException
java.sql.SQLException

Oracle® Spatial Java API Reference
10g Release 2 (10.2)

B14373-02


Copyright © 2006, Oracle. All Rights Reserved.