FeatureSubtype Class

  • FeatureSubtype
  • class Esri::ArcGISRuntime::FeatureSubtype

    A feature subtype describes a subset of features in an ArcGISFeatureTable that share the same integer attribute value. More...

    Header: #include <FeatureSubtype.h>
    Since: Esri::ArcGISRuntime 100.3

    Public Functions

    FeatureSubtype()
    FeatureSubtype(const Esri::ArcGISRuntime::FeatureSubtype &other)
    FeatureSubtype(Esri::ArcGISRuntime::FeatureSubtype &&other)
    ~FeatureSubtype()
    QVariant code() const
    QMap<QString, Esri::ArcGISRuntime::Domain> domains() const
    QList<Esri::ArcGISRuntime::Field> fieldOverrides() const
    bool isEmpty() const
    QString name() const
    QVariantMap prototypeAttributes() const
    Esri::ArcGISRuntime::FeatureSubtype &operator=(const Esri::ArcGISRuntime::FeatureSubtype &other)
    Esri::ArcGISRuntime::FeatureSubtype &operator=(Esri::ArcGISRuntime::FeatureSubtype &&other)

    Detailed Description

    Feature subtypes categorize features in a dataset based on the value of an integer attribute. A subtype can define different default values or domains for fields. For example, city streets in a feature table could be categorized into three feature subtypes: local streets, collector streets, and arterial streets. Feature subtypes can also be used with utility networks to represent asset groups.

    If ArcGISFeatureTable::featureSubtypes contains one or more FeatureSubtype, you can use SubtypeFeatureLayer::SubtypeFeatureLayer(Esri::ArcGISRuntime::ArcGISFeatureTable*, QObject*) to create a SubtypeFeatureLayer. You can then obtain a sublayer for each of the feature sub types from SubtypeFeatureLayer::subtypeSublayers. Each SubtypeSublayer allows you to configure different layer properties, such as opacity, renderer, and scale, for each FeatureSubtype. This is particularly useful for data, such as utility networks, in which many different network elements are grouped into a single subtype feature layer.

    If you build an editing application, you can use ArcGISFeatureTable::createFeature(const Esri::ArcGISRuntime::FeatureSubtype&, QObject*) to create a new feature with the specified feature subtype. The prototypeAttributes will ensure that a default set of attribute values are applied to the ArcGISFeature and the domains are utilized.

    Member Function Documentation

    FeatureSubtype::FeatureSubtype()

    Default constructor. Creates an empty FeatureSubtype.

    FeatureSubtype::FeatureSubtype(const Esri::ArcGISRuntime::FeatureSubtype &other)

    Copy constructor from other FeatureSubtype.

    FeatureSubtype::FeatureSubtype(Esri::ArcGISRuntime::FeatureSubtype &&other)

    Move constructor from other FeatureSubtype.

    FeatureSubtype::~FeatureSubtype()

    Destructor.

    QVariant FeatureSubtype::code() const

    Returns the feature subtype's code.

    QMap<QString, Esri::ArcGISRuntime::Domain> FeatureSubtype::domains() const

    Returns the domains associated with this feature subtype.

    The map contains key-value pairs of field name and a corresponding Domain object for this type.

    [since Esri::ArcGISRuntime 100.9] QList<Esri::ArcGISRuntime::Field> FeatureSubtype::fieldOverrides() const

    Returns the fields defined for this feature subtype.

    A subset of FeatureTable::fields relevant to this feature subtype. This collection of Field may override properties defined in the FeatureTable::fields. For example, Field::alias and Field::domain.

    This function was introduced in Esri::ArcGISRuntime 100.9.

    bool FeatureSubtype::isEmpty() const

    Returns true if this FeatureSubtype is empty.

    QString FeatureSubtype::name() const

    Returns the name of the feature subtype.

    QVariantMap FeatureSubtype::prototypeAttributes() const

    Returns the prototype attributes for creating a Feature with this subtype.

    Esri::ArcGISRuntime::FeatureSubtype &FeatureSubtype::operator=(const Esri::ArcGISRuntime::FeatureSubtype &other)

    Assignment operator from other FeatureSubtype.

    Esri::ArcGISRuntime::FeatureSubtype &FeatureSubtype::operator=(Esri::ArcGISRuntime::FeatureSubtype &&other)

    Move operator from other FeatureSubtype.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.