|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.data.arcsde.ArcSDEAdapter
Utility class to deal with SDE specifics such as creating SeQuery objects from geotool's Query's, mapping SDE types to Java ones and JTS Geometries, etc.
Constructor Summary | |
ArcSDEAdapter()
|
Method Summary | |
static com.esri.sde.sdk.client.SeColumnDefinition |
createSeColumnDefinition(AttributeType type)
Creates the column definition as used by the ArcSDE Java API, for the given AttributeType. |
static FeatureType |
fetchSchema(ArcSDEConnectionPool connPool,
java.lang.String typeName,
java.net.URI namespace)
Fetches the schema of a given ArcSDE featureclass and creates its corresponding Geotools FeatureType |
static java.lang.Class |
getGeometryType(int seShapeType)
Returns the mapping JTS geometry type for the ArcSDE Shape type given by the bitmask seShapeType
This bitmask is composed of a combination of the following shape types,
as defined in the ArcSDE Java API:
SE_NIL_TYPE_MASK = 1;
SE_POINT_TYPE_MASK = 2;
SE_LINE_TYPE_MASK = 4;
SE_AREA_TYPE_MASK = 16;
SE_MULTIPART_TYPE_MASK = 262144;
(Note that the type SE_SIMPLE_LINE_TYPE_MASK is not used)
|
static long |
getNumericFid(java.lang.String fid)
Returns the numeric identifier of a FeatureId, given by the full qualified name of the featureclass prepended to the ArcSDE feature id. |
static long[] |
getNumericFids(java.lang.String[] stringFids)
DOCUMENT ME! |
static int |
guessShapeTypes(GeometryAttributeType attribute)
DOCUMENT ME! |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ArcSDEAdapter()
Method Detail |
public static int guessShapeTypes(GeometryAttributeType attribute)
attribute
- DOCUMENT ME!
java.lang.NullPointerException
- DOCUMENT ME!
java.lang.IllegalArgumentException
- DOCUMENT ME!public static com.esri.sde.sdk.client.SeColumnDefinition createSeColumnDefinition(AttributeType type) throws com.esri.sde.sdk.client.SeException
type
- the source attribute definition.
SeColumnDefinition
object matching the
properties of the source AttributeType.
com.esri.sde.sdk.client.SeException
- if the SeColumnDefinition constructor throws it due to some
invalid parameterpublic static FeatureType fetchSchema(ArcSDEConnectionPool connPool, java.lang.String typeName, java.net.URI namespace) throws java.io.IOException
connPool
- DOCUMENT ME!typeName
- DOCUMENT ME!
java.io.IOException
- DOCUMENT ME!
DataSourceException
- DOCUMENT ME!public static java.lang.Class getGeometryType(int seShapeType)
seShapeType
This bitmask is composed of a combination of the following shape types, as defined in the ArcSDE Java API:
SE_NIL_TYPE_MASK = 1; SE_POINT_TYPE_MASK = 2; SE_LINE_TYPE_MASK = 4; SE_AREA_TYPE_MASK = 16; SE_MULTIPART_TYPE_MASK = 262144;(Note that the type SE_SIMPLE_LINE_TYPE_MASK is not used)
seShapeType
- DOCUMENT ME!
java.lang.IllegalArgumentException
- DOCUMENT ME!public static long getNumericFid(java.lang.String fid) throws java.lang.IllegalArgumentException
fid
- a geotools FeatureID
java.lang.IllegalArgumentException
- If the given string is not properly formatted
[anystring].[long value]public static long[] getNumericFids(java.lang.String[] stringFids) throws java.lang.IllegalArgumentException
stringFids
- DOCUMENT ME!
java.lang.IllegalArgumentException
- DOCUMENT ME!
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |