KmlSchema Class

  • KmlSchema
  • class Esri::ArcGISRuntime::KmlSchema

    A KML schema defines the structure of schema data for the extended data of nodes in a KmlDocument. More...

    Header: #include <KmlSchema.h>
    Since: Esri::ArcGISRuntime 200.5
    Inherits: Esri::ArcGISRuntime::Object

    Public Functions

    KmlSchema(const QList<Esri::ArcGISRuntime::KmlSimpleField *> &fields, const QString &name, const QString &schemaId, QObject *parent = nullptr)
    virtual ~KmlSchema() override
    Esri::ArcGISRuntime::KmlSimpleField *field(const QString &name) const
    QList<Esri::ArcGISRuntime::KmlSimpleField *> fields() const
    QString name() const
    QString schemaId() const

    Detailed Description

    Each KML schema consists of a name, schema ID, and a collection of KmlSimpleField objects. A single KML document can contain a number of different KML schemas.

    Member Function Documentation

    [since Esri::ArcGISRuntime 200.6] KmlSchema::KmlSchema(const QList<Esri::ArcGISRuntime::KmlSimpleField *> &fields, const QString &name, const QString &schemaId, QObject *parent = nullptr)

    Creates a schema from an array of KmlSimpleField objects, a name, and an ID.

    • fields - An array of simple fields.
    • name - The name of the schema.
    • schemaId - The ID of the schema.
    • parent - The optional parent QObject.

    Schema ID should be unique.

    This function was introduced in Esri::ArcGISRuntime 200.6.

    [override virtual] KmlSchema::~KmlSchema()

    Destructor.

    Esri::ArcGISRuntime::KmlSimpleField *KmlSchema::field(const QString &name) const

    Returns the simple field object with the given name, or nullptr if no such field exists.

    • name - The name of the simple field.

    QList<Esri::ArcGISRuntime::KmlSimpleField *> KmlSchema::fields() const

    Returns a collection of KML simple fields.

    The collection of KmlSimpleField objects that define the fields in the KML schema.

    QString KmlSchema::name() const

    Returns the name of the schema defined in the KML file.

    QString KmlSchema::schemaId() const

    Returns the ID of the schema defined in the KML file.

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