com.esri.sde.sdk.geom
Interface GeometrySource

All Known Implementing Classes:
SeGeometrySource

public interface GeometrySource

The GeometrySource interface defines the methods for transforming a geometry object from its well-known binary representation or well-known text representation.


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)
           
 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.
 java.lang.String sridToWKT(int srid)
          Returns the well-known text for spatial reference system given its SRID.
 

Method Detail

geometryFromWKB

Geometry geometryFromWKB(java.io.InputStream wkbByteStream,
                         int srid)
                         throws GeometryException
This method takes a well-known binary representation and a spatial reference system identity to return a geometry object.

Throws:
GeometryException

geometryFromWKT

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

Throws:
GeometryException

geometry

Geometry geometry(java.lang.Class type,
                  Geometry[] parts)
                  throws GeometryException
Throws:
GeometryException

geometry

Geometry geometry(java.lang.Class type,
                  java.util.Vector parts)
                  throws GeometryException
Throws:
GeometryException

sridToWKT

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

Throws:
java.sql.SQLException - when a failed database access prevents retrieval of the WKT.
GeometryException.InvalidSrid

enableGeometry

void enableGeometry(java.sql.Connection conn)
                    throws java.sql.SQLException
Throws:
java.sql.SQLException