Class TLcdSHPDataTypes

java.lang.Object
com.luciad.format.shp.TLcdSHPDataTypes

public class TLcdSHPDataTypes extends Object
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 Details

    • AbstractFeatureType

      public static final TLcdDataType AbstractFeatureType
      This type serves as the abstract super type of all SHP feature types.
  • Method Details

    • getDataModel

      public static TLcdDataModel 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 from AbstractFeatureType. 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 in TLcdCoreDataTypes.getDataModel(). The shape type corresponds to one of the shape type constants defined by TLcdSHPModelDescriptor.
      Parameters:
      aShapeType - the shape type
      aDataName - the name of the data model
      aPropertyNames - the names of the properties
      aPropertyClasses - the instance classes of the properties
      Returns:
      a new data type with a set of properties that correspond to the given parameters