com.esri.sde.sdk.geom
Class SeGeometrySource

java.lang.Object
  extended by com.esri.sde.sdk.geom.SeGeometrySource
All Implemented Interfaces:
GeometrySource

public class SeGeometrySource
extends java.lang.Object
implements GeometrySource

This class implements interface GeometrySource.


Constructor Summary
SeGeometrySource()
           
 
Method Summary
 void enableGeometry(java.sql.Connection conn)
           
 Geometry geometry(java.lang.Class type, Geometry[] parts)
           
 Geometry geometry(java.lang.Class type, java.util.Vector parts)
           
static void geometryFactory(GeometryFactory factory, byte[] sdeByteStream)
          This method takes an esri shape binary representation and a spatial reference system identity and returns a geometry object.
static void geometryFactory(GeometryFactory factory, byte[] sdeByteStream, SeCoordRef coordRef)
          This method takes an esri shape binary representation and a spatial reference system identity and returns a geometry object.
static Geometry geometryFromShape(java.io.ByteArrayInputStream sdeByteStream, SeCoordRef cr)
          This method takes an esri shape binary representation and a spatial reference system identity and returns a geometry object.
 Geometry geometryFromWKB(java.io.InputStream wkbByteStream, int srid)
          This method takes a well-known binary representation and a spatial reference system identity to return a geometry object.
 Geometry geometryFromWKT(java.lang.String WKT, int srid)
          This method takes a well-known text representation and a spatial reference system identity and returns a geometry object.
 Geometry geometryFromWKT(java.lang.String WKT, SeCoordRef cr)
          This method takes a well-known text representation and a spatial reference system identity and returns a geometry object.
 java.lang.String sridToWKT(int srid)
          Returns the well-known text for spatial reference system given its SRID.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeGeometrySource

public SeGeometrySource()
Method Detail

geometryFromWKB

public Geometry geometryFromWKB(java.io.InputStream wkbByteStream,
                                int srid)
                         throws com.esri.sde.sdk.geom.SeGeometryException
This method takes a well-known binary representation and a spatial reference system identity to return a geometry object.

Specified by:
geometryFromWKB in interface GeometrySource
Throws:
com.esri.sde.sdk.geom.SeGeometryException

geometryFromWKT

public Geometry geometryFromWKT(java.lang.String WKT,
                                int srid)
This method takes a well-known text representation and a spatial reference system identity and returns a geometry object.

Specified by:
geometryFromWKT in interface GeometrySource

geometryFromWKT

public Geometry geometryFromWKT(java.lang.String WKT,
                                SeCoordRef cr)
                         throws com.esri.sde.sdk.geom.SeGeometryException
This method takes a well-known text representation and a spatial reference system identity and returns a geometry object.

Throws:
com.esri.sde.sdk.geom.SeGeometryException

geometryFromShape

public static Geometry geometryFromShape(java.io.ByteArrayInputStream sdeByteStream,
                                         SeCoordRef cr)
                                  throws com.esri.sde.sdk.geom.SeGeometryException
This method takes an esri shape binary representation and a spatial reference system identity and returns a geometry object.

Throws:
com.esri.sde.sdk.geom.SeGeometryException

geometryFactory

public static void geometryFactory(GeometryFactory factory,
                                   byte[] sdeByteStream)
                            throws com.esri.sde.sdk.geom.SeGeometryException
This method takes an esri shape binary representation and a spatial reference system identity and returns a geometry object.

Throws:
com.esri.sde.sdk.geom.SeGeometryException

geometryFactory

public static void geometryFactory(GeometryFactory factory,
                                   byte[] sdeByteStream,
                                   SeCoordRef coordRef)
                            throws com.esri.sde.sdk.geom.SeGeometryException
This method takes an esri shape binary representation and a spatial reference system identity and returns a geometry object.

Throws:
com.esri.sde.sdk.geom.SeGeometryException

geometry

public Geometry geometry(java.lang.Class type,
                         Geometry[] parts)
                  throws GeometryException
Specified by:
geometry in interface GeometrySource
Throws:
GeometryException

geometry

public Geometry geometry(java.lang.Class type,
                         java.util.Vector parts)
                  throws GeometryException
Specified by:
geometry in interface GeometrySource
Throws:
GeometryException

sridToWKT

public java.lang.String sridToWKT(int srid)
                           throws java.sql.SQLException,
                                  GeometryException.InvalidSrid
Returns the well-known text for spatial reference system given its SRID.

Specified by:
sridToWKT in interface GeometrySource
Throws:
java.sql.SQLException - when a failed database access prevents retrieval of the WKT.
GeometryException.InvalidSrid

enableGeometry

public void enableGeometry(java.sql.Connection conn)
                    throws java.sql.SQLException
Specified by:
enableGeometry in interface GeometrySource
Throws:
java.sql.SQLException