Package com.luciad.format.shp
Class TLcdSHPDataTypes
java.lang.Object
com.luciad.format.shp.TLcdSHPDataTypes
This class provides access to the data model of the SHP format. It also supports the
creation of new feature types given the names and types of the properties.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdDataType
This type serves as the abstract super type of all SHP feature types. -
Method Summary
Modifier and TypeMethodDescriptionstatic TLcdDataModel
createDataModel
(int aShapeType, String aDataName, String[] aPropertyNames, Class<?>[] aPropertyClasses) Deprecated.You should not use this, instead, get the data model from a decoded model using ((ILcdDataModelDescriptor) model.getModelDescriptor()).getDataModel().static TLcdDataModel
Returns the static data model of the SHP format.
-
Field Details
-
AbstractFeatureType
This type serves as the abstract super type of all SHP feature types.
-
-
Method Details
-
getDataModel
Returns the static data model of the SHP format.- Returns:
- the static data model of the SHP format.
-
createDataModel
public static TLcdDataModel createDataModel(int aShapeType, String aDataName, String[] aPropertyNames, Class<?>[] aPropertyClasses) Deprecated.You should not use this, instead, get the data model from a decoded model using ((ILcdDataModelDescriptor) model.getModelDescriptor()).getDataModel().Creates a new SHP data model. This data model contains a single feature type. This feature type extends fromAbstractFeatureType
. It will have a property for each entry in property names parameter. The property classes parameter (that should have the same size as the property names parameter) contains the instance classes for the properties. These instance classes are assumed to be basic types for which an appropriate type is defined inTLcdCoreDataTypes.getDataModel()
. The shape type corresponds to one of the shape type constants defined byTLcdSHPModelDescriptor
.- Parameters:
aShapeType
- the shape typeaDataName
- the name of the data modelaPropertyNames
- the names of the propertiesaPropertyClasses
- the instance classes of the properties- Returns:
- a new data type with a set of properties that correspond to the given parameters
-