Skip navigation links

Oracle® Spatial Java API Reference
11g Release 1 (11.1)

B28401-02


oracle.spatial.util
Class ShapefileFeatureJGeom

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


public class ShapefileFeatureJGeom
extends java.lang.Object

This class helps to create features from a shapefile.


Constructor Summary
ShapefileFeatureJGeom()
           

 

Method Summary
static java.util.Hashtable fromRecordToFeature(DBFReaderJGeom dbf, ShapefileReaderJGeom sfr, byte[] fieldTypes, int numFields, int row, int srid)
          Convert .dbf columns and .shp bytes into Feature instance.
static java.lang.String getDimArray(int shpDims, java.lang.String m_tolerance, java.lang.String min_x, java.lang.String max_x, java.lang.String min_y, java.lang.String max_y, double min_z, double max_z, double min_m, double max_m)
           
static java.lang.String[] getOraFieldNames(DBFReaderJGeom dbf, byte[] fieldTypes, int numFields)
           
static java.lang.String getRelSchema(DBFReaderJGeom dbf)
           
static java.lang.String getRelSchema(DBFReaderJGeom dbf, java.lang.String gidName)
           
static void insertFeatures(OracleConnection conn, DBFReaderJGeom dbfr, ShapefileReaderJGeom sfh, java.lang.String m_tableName, int m_commit_interval, int m_srid, java.lang.String dimArrayMig)
           
static void insertFeatures(OracleConnection conn, DBFReaderJGeom dbfr, ShapefileReaderJGeom sfh, java.lang.String m_tableName, java.lang.String m_idName, int m_start_id, int m_commit_interval, int m_println_interval, int m_srid, java.lang.String dimArrayMig)
           
static boolean isGeodetic(OracleConnection conn, int m_srid)
           
static void prepareTableForData(OracleConnection conn, DBFReaderJGeom dbfr, java.lang.String m_tableName, java.lang.String m_idName, java.lang.String m_geom, int m_srid, java.lang.String dimArray)
           

 

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

 

Constructor Detail

ShapefileFeatureJGeom

public ShapefileFeatureJGeom()

Method Detail

getRelSchema

public static java.lang.String getRelSchema(DBFReaderJGeom dbf)

getRelSchema

public static java.lang.String getRelSchema(DBFReaderJGeom dbf,
                                            java.lang.String gidName)

getOraFieldNames

public static java.lang.String[] getOraFieldNames(DBFReaderJGeom dbf,
                                                  byte[] fieldTypes,
                                                  int numFields)
                                           throws java.io.IOException
Throws:
java.io.IOException

fromRecordToFeature

public static java.util.Hashtable fromRecordToFeature(DBFReaderJGeom dbf,
                                                      ShapefileReaderJGeom sfr,
                                                      byte[] fieldTypes,
                                                      int numFields,
                                                      int row,
                                                      int srid)
                                               throws java.io.IOException
Convert .dbf columns and .shp bytes into Feature instance.
Throws:
java.io.IOException

isGeodetic

public static boolean isGeodetic(OracleConnection conn,
                                 int m_srid)
                          throws java.sql.SQLException
Throws:
java.sql.SQLException

getDimArray

public static java.lang.String getDimArray(int shpDims,
                                           java.lang.String m_tolerance,
                                           java.lang.String min_x,
                                           java.lang.String max_x,
                                           java.lang.String min_y,
                                           java.lang.String max_y,
                                           double min_z,
                                           double max_z,
                                           double min_m,
                                           double max_m)

prepareTableForData

public static void prepareTableForData(OracleConnection conn,
                                       DBFReaderJGeom dbfr,
                                       java.lang.String m_tableName,
                                       java.lang.String m_idName,
                                       java.lang.String m_geom,
                                       int m_srid,
                                       java.lang.String dimArray)
                                throws java.io.IOException,
                                       java.sql.SQLException
Throws:
java.io.IOException
java.sql.SQLException

insertFeatures

public static void insertFeatures(OracleConnection conn,
                                  DBFReaderJGeom dbfr,
                                  ShapefileReaderJGeom sfh,
                                  java.lang.String m_tableName,
                                  java.lang.String m_idName,
                                  int m_start_id,
                                  int m_commit_interval,
                                  int m_println_interval,
                                  int m_srid,
                                  java.lang.String dimArrayMig)
                           throws java.sql.SQLException,
                                  java.io.IOException
Throws:
java.sql.SQLException
java.io.IOException

insertFeatures

public static void insertFeatures(OracleConnection conn,
                                  DBFReaderJGeom dbfr,
                                  ShapefileReaderJGeom sfh,
                                  java.lang.String m_tableName,
                                  int m_commit_interval,
                                  int m_srid,
                                  java.lang.String dimArrayMig)
                           throws java.sql.SQLException,
                                  java.io.IOException
Throws:
java.sql.SQLException
java.io.IOException

Skip navigation links

Oracle® Spatial Java API Reference
11g Release 1 (11.1)

B28401-02


Copyright © 2007, 2008, Oracle. All Rights Reserved.