|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.data.oracle.attributeio.AdapterJTS
Adapter class that handles the conversion between SDO and JTS geometry classes.
| Constructor Summary | |
AdapterJTS()
Creates a new AdapterJTS that uses the default SDO and JTS geometry factories. |
|
AdapterJTS(com.vividsolutions.jts.geom.GeometryFactory jtsFactory)
Creates a new AdapterJTS that uses the supplied JTS geometry factory and the default SDO geometry factory. |
|
AdapterJTS(oracle.sdoapi.geom.GeometryFactory sdoFactory)
Creates a new AdapterJTS that uses the supplied SDO geometry Factory and the default JTS geometry factory. |
|
AdapterJTS(com.vividsolutions.jts.geom.GeometryFactory jtsFactory,
oracle.sdoapi.geom.GeometryFactory sdoFactory)
Creates a new AdapterJTS that uses the supplied geometry factories. |
|
| Method Summary | |
java.lang.Object |
exportGeometry(java.lang.Class outputType,
oracle.sdoapi.geom.Geometry geom)
Converts an Oracle SDO Geometry into a JTS Geometry. |
void |
exportGeometry(java.lang.Object outputObject,
oracle.sdoapi.geom.Geometry geom)
Not supported by this implementation. |
oracle.sdoapi.sref.SpatialReference |
getDefaultSRS()
Gets the default SpatialReference. |
java.lang.String |
getFormatName()
Gets the format name that this adapter supports. |
java.lang.String |
getFormatVersion()
Gets the format version. |
java.lang.Class[] |
getSupportedInputTypes()
Returns the supported input types. |
java.lang.Class[] |
getSupportedOutputTypes()
Returns the supported output types. |
java.lang.Class[] |
getSupportedPassthroughOutputTypes()
Gets the supported pass through output types. |
oracle.sdoapi.geom.Geometry |
importGeometry(java.lang.Object inputSource)
Converts a JTS geometry to an SDO geometry. |
oracle.sdoapi.geom.Geometry |
importGeometry(java.lang.Object inputSource,
int nDim)
This method redirects to importGeometry(Object) since dimemsionality is ignored. |
boolean |
inputTypeSupported(java.lang.Class type)
Determines whether this adapter supports conversion to SDO Geometry from the given class. |
boolean |
outputTypeSupported(java.lang.Class type)
Determines whether this adapter can convert SDO geometries to the given type. |
boolean |
passthroughOutputTypeSupported(java.lang.Class type)
Always returns false since this adpater does not support any passthrough conversion. |
void |
setDefaultSRS(oracle.sdoapi.sref.SpatialReference sr)
Sets the default SRS. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AdapterJTS()
public AdapterJTS(com.vividsolutions.jts.geom.GeometryFactory jtsFactory)
jtsFactory - The JTS geometry factory.
public AdapterJTS(com.vividsolutions.jts.geom.GeometryFactory jtsFactory,
oracle.sdoapi.geom.GeometryFactory sdoFactory)
jtsFactory - The JTS geometry factory.sdoFactory - The SDO geometry factory.public AdapterJTS(oracle.sdoapi.geom.GeometryFactory sdoFactory)
sdoFactory - The SDO geometry factory.| Method Detail |
public java.lang.Object exportGeometry(java.lang.Class outputType,
oracle.sdoapi.geom.Geometry geom)
throws oracle.sdoapi.geom.InvalidGeometryException,
oracle.sdoapi.adapter.GeometryOutputTypeNotSupportedException
exportGeometry in interface oracle.sdoapi.adapter.GeometryAdapteroutputType - The output type. This must be one of the supported output types.geom - The SDO Geometry to convert.
oracle.sdoapi.geom.InvalidGeometryException - Throw in the input geometry cannot be converted.
oracle.sdoapi.adapter.GeometryOutputTypeNotSupportedException - Throw if the outputType is not supported.GeometryAdapter.exportGeometry(java.lang.Class,
oracle.sdoapi.geom.Geometry)
public void exportGeometry(java.lang.Object outputObject,
oracle.sdoapi.geom.Geometry geom)
throws oracle.sdoapi.geom.InvalidGeometryException,
oracle.sdoapi.adapter.GeometryOutputTypeNotSupportedException
This method is not implemented because it is not needed by the OracleDataSource. Since the OracleDataSource is the only Geotools, entry point into Oracle Spatial Database leaving this as an unsupported operation is safe.
exportGeometry in interface oracle.sdoapi.adapter.GeometryAdapteroutputObject - The object to output to.geom - The SDO Geometry to convert.
oracle.sdoapi.geom.InvalidGeometryException - Throw in the input geometry cannot be converted.
oracle.sdoapi.adapter.GeometryOutputTypeNotSupportedException - Throw if the outputType is not supported.GeometryAdapter.exportGeometry(java.lang.Object,
oracle.sdoapi.geom.Geometry)
public oracle.sdoapi.geom.Geometry importGeometry(java.lang.Object inputSource)
throws oracle.sdoapi.geom.InvalidGeometryException,
oracle.sdoapi.adapter.GeometryInputTypeNotSupportedException
importGeometry in interface oracle.sdoapi.adapter.GeometryAdapterinputSource - The JTS geometry
oracle.sdoapi.geom.InvalidGeometryException - Throw in the input geometry cannot be converted.
oracle.sdoapi.adapter.GeometryInputTypeNotSupportedException - Thrown if the inputType is not supported.GeometryAdapter.importGeometry(java.lang.Object)
public oracle.sdoapi.geom.Geometry importGeometry(java.lang.Object inputSource,
int nDim)
throws oracle.sdoapi.geom.InvalidGeometryException,
oracle.sdoapi.adapter.GeometryInputTypeNotSupportedException
importGeometry in interface oracle.sdoapi.adapter.GeometryAdapterinputSource - The input JTS geometry.nDim - IGNORED
oracle.sdoapi.geom.InvalidGeometryException - Throw in the input geometry cannot be converted.
oracle.sdoapi.adapter.GeometryInputTypeNotSupportedException - Throw if the input Type is not supported.GeometryAdapter.importGeometry(java.lang.Object, int)public boolean inputTypeSupported(java.lang.Class type)
inputTypeSupported in interface oracle.sdoapi.adapter.GeometryAdaptertype - The class to test for conversion support.
GeometryAdapter.inputTypeSupported(java.lang.Class),
getSupportedInputTypes()public boolean outputTypeSupported(java.lang.Class type)
outputTypeSupported in interface oracle.sdoapi.adapter.GeometryAdaptertype - The class to test for conversion support
GeometryAdapter.outputTypeSupported(java.lang.Class),
getSupportedOutputTypes()public boolean passthroughOutputTypeSupported(java.lang.Class type)
passthroughOutputTypeSupported in interface oracle.sdoapi.adapter.GeometryAdaptertype - The type to check
GeometryAdapter.passthroughOutputTypeSupported(java.lang.Class)public java.lang.Class[] getSupportedInputTypes()
getSupportedInputTypes in interface oracle.sdoapi.adapter.GeometryAdapterGeometryAdapter.getSupportedInputTypes()public java.lang.Class[] getSupportedOutputTypes()
getSupportedOutputTypes in interface oracle.sdoapi.adapter.GeometryAdapterGeometryAdapter.getSupportedOutputTypes()public java.lang.Class[] getSupportedPassthroughOutputTypes()
getSupportedPassthroughOutputTypes in interface oracle.sdoapi.adapter.GeometryAdapterGeometryAdapter.getSupportedPassthroughOutputTypes()public java.lang.String getFormatName()
getFormatName in interface oracle.sdoapi.adapter.GeometryAdapterGeometryAdapter.getFormatName()public java.lang.String getFormatVersion()
getFormatVersion in interface oracle.sdoapi.adapter.GeometryAdapterGeometryAdapter.getFormatVersion()public void setDefaultSRS(oracle.sdoapi.sref.SpatialReference sr)
setDefaultSRS in interface oracle.sdoapi.adapter.GeometryAdaptersr - The new default spatial reference system id.GeometryAdapter.setDefaultSRS(oracle.sdoapi.sref.SpatialReference)public oracle.sdoapi.sref.SpatialReference getDefaultSRS()
getDefaultSRS in interface oracle.sdoapi.adapter.GeometryAdapter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||