|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
Geometry geometryFromWKB(java.io.InputStream wkbByteStream, int srid) throws GeometryException
GeometryException
Geometry geometryFromWKT(java.lang.String WKT, int srid) throws GeometryException
GeometryException
Geometry geometry(java.lang.Class type, Geometry[] parts) throws GeometryException
GeometryException
Geometry geometry(java.lang.Class type, java.util.Vector parts) throws GeometryException
GeometryException
java.lang.String sridToWKT(int srid) throws java.sql.SQLException, GeometryException.InvalidSrid
java.sql.SQLException
- when a failed database
access prevents retrieval of the WKT.
GeometryException.InvalidSrid
void enableGeometry(java.sql.Connection conn) throws java.sql.SQLException
java.sql.SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |