|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
java.lang.Object |
exportGeometry(java.lang.Class ouputType,
Geometry geom)
Converts a Geometry object to an object of the specified output class. |
void |
exportGeometry(java.lang.Object ouputObject,
Geometry geom)
Converts a Geometry object to an object of the specified output class. |
SpatialReference |
getDefaultSRS()
Gets the default reference system for this adapter. |
java.lang.String |
getFormatName()
Returns as a String the format name that the adapter converts from/to. |
java.lang.String |
getFormatVersion()
Returns as a String the format version number that the adapter converts from/to. |
java.lang.Class[] |
getSupportedInputTypes()
Returns the input types supported. |
java.lang.Class[] |
getSupportedOutputTypes()
Returns the output types supported for function exportGeometry(Class, Geometry):Object . |
java.lang.Class[] |
getSupportedPassthroughOutputTypes()
Returns the output types supported for function exportGeometry(Object, Geometry):void . |
Geometry |
importGeometry(java.lang.Object inputSource)
Converts the specified object to a Geometry object. |
Geometry |
importGeometry(java.lang.Object inputSource,
int nDim)
Converts the specified object to a Geometry object. |
boolean |
inputTypeSupported(java.lang.Class inputType)
Returns whether a given input type is supported. |
boolean |
outputTypeSupported(java.lang.Class outputType)
Returns whether a given output type is supported for function exportGeometry(Class, Geometry):Object . |
boolean |
passthroughOutputTypeSupported(java.lang.Class outputType)
Returns whether a given output type is supported for function exportGeometry(Object, Geometry):void . |
void |
setDefaultSRS(SpatialReference srs)
Sets the default reference system for this adapter. |
Method Detail |
public java.lang.Object exportGeometry(java.lang.Class ouputType, Geometry geom) throws GeometryOutputTypeNotSupportedException, InvalidGeometryException
java.lang.Class
). An output object
of this class will be newly created. If a Geometry is converted to some
text format (such as XML), then the output type might be String
.
If the output should be written to an already existing object (such as a
stream), the other signature exportGeometry(Object, Geometry)
should be used.
public void exportGeometry(java.lang.Object ouputObject, Geometry geom) throws GeometryOutputTypeNotSupportedException, InvalidGeometryException
OutputStream
.
Using an already existing object for output adds flexibility. This is also
a straightforward way to write several converted Geometries into a single
object (such as a stream).
If the output of the conversion is needed in a new object, the other
signature exportGeometry(Class, Geometry)
might be more
convenient.
public Geometry importGeometry(java.lang.Object inputSource) throws GeometryInputTypeNotSupportedException, InvalidGeometryException
public Geometry importGeometry(java.lang.Object inputSource, int nDim) throws GeometryInputTypeNotSupportedException, InvalidGeometryException
The dimensionality of the object is specified for external formats that do not include this information. This can happen when the data was initially meant to be used by a single special application that knows how to interpret it.
public boolean inputTypeSupported(java.lang.Class inputType)
public boolean outputTypeSupported(java.lang.Class outputType)
exportGeometry(Class, Geometry):Object
. For an adapter
converting to a native database data object type (for example), a
String might not be a natural output type.public boolean passthroughOutputTypeSupported(java.lang.Class outputType)
exportGeometry(Object, Geometry):void
. For an adapter
converting to a native database data object type (for example), a
String might not be a natural output type.public java.lang.Class[] getSupportedInputTypes()
public java.lang.Class[] getSupportedOutputTypes()
exportGeometry(Class, Geometry):Object
.public java.lang.Class[] getSupportedPassthroughOutputTypes()
exportGeometry(Object, Geometry):void
.public java.lang.String getFormatName()
public java.lang.String getFormatVersion()
public void setDefaultSRS(SpatialReference srs)
public SpatialReference getDefaultSRS()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |