| java.lang.Object org.geotools.arcsde.data.ArcSDEAdapter
ArcSDEAdapter | public class ArcSDEAdapter (Code) | | 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.
author: Gabriel Roldan version: $Id: ArcSDEAdapter.java 28902 2008-01-23 13:50:41Z groldan $ |
createSeColumnDefinition | public static SeColumnDefinition createSeColumnDefinition(AttributeType type) throws SeException(Code) | | Creates the column definition as used by the ArcSDE Java API, for the
given AttributeType.
Parameters: type - the source attribute definition. an SeColumnDefinition object matching theproperties of the source AttributeType. throws: SeException - if the SeColumnDefinition constructor throws it due to someinvalid parameter |
getGeometryTypeFromLayerMask | public static Class getGeometryTypeFromLayerMask(int seShapeType)(Code) | | 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)
Parameters: seShapeType - DOCUMENT ME! DOCUMENT ME! throws: IllegalArgumentException - DOCUMENT ME! |
getGeometryTypeFromSeShape | public static Class getGeometryTypeFromSeShape(SeShape shape) throws SeException(Code) | | Returns the most appropriate
Geometry class that matches the
shape's type.
Parameters: shape - non null SeShape instance for which to inferthe matching geometry class the Geometry subclass corresponding to the shape type throws: SeException - propagated if thrown by SeShape.getType throws: IllegalArgumentException - if none of the JTS geometry classes can be matched to theshape type (shouldnt happen as for theSeShape.getType types defined in the esri arcsdejava api 9.0) |
getNumericFid | public static long getNumericFid(Identifier id) throws IllegalArgumentException(Code) | | Returns the numeric identifier of a FeatureId, given by the full
qualified name of the featureclass prepended to the ArcSDE feature id.
ej: SDE.SDE.SOME_LAYER.1
Parameters: fid - a geotools FeatureID an ArcSDE feature ID throws: IllegalArgumentException - If the given string is not properly formatted[anystring].[long value] |
|
|