![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
This class represents a loaded/created GML application schema.
This class is not directly creatable, but instead instances should be constructed via the TSLGMLApplicationSchemaLoader class or the TSLGMLApplicationSchemaFactory class.
Public Member Functions | |
bool | applyToLayer (TSLStandardDataLayer *layer) const |
bool | applyToLayer (TSLStandardDataLayer *layer, const TSLGMLPropertyMapping *mapping) const |
bool | applyToLayer (TSLStandardDataLayer *layer, const TSLGMLPropertyMappingSet *mappingset) const |
void | destroy () |
const TSLGMLApplicationSchemaProfileParameters * | profile () const |
const char * | targetNamespace () const |
const char * | targetNamespacePrefix () const |
unsigned int | versionMajor () const |
unsigned int | versionMinor () const |
bool TSLGMLApplicationSchema::applyToLayer | ( | TSLStandardDataLayer * | layer | ) | const |
Adds the definitions of each feature to the standard data layer passed.
The GML feature names will be added as new feature classes. The properties of each GML feature will be added as field definitions to the layer's data handler.
layer | The layer to add the feature definitions to. |
bool TSLGMLApplicationSchema::applyToLayer | ( | TSLStandardDataLayer * | layer, |
const TSLGMLPropertyMapping * | mapping ) const |
Adds the definitions of each feature to the standard data layer passed.
The GML feature names will be added as new feature classes. The properties of each GML feature will be added as field definitions to the layer's data handler, unless they are redirected by the mapping object passed.
The mapping object passed should be the same as the one used when writing GML instance data using this schema or when the schema was created using the TSLGMLApplicationSchemaFactory. It is used to redirect GML feature properties to rendering attributes and properties of the MapLink entities rather than as fields in the data handler. This mapping will be applied to all GML feature definitions.
layer | The layer to add the feature definitions to. |
mapping | The mapping to used. |
bool TSLGMLApplicationSchema::applyToLayer | ( | TSLStandardDataLayer * | layer, |
const TSLGMLPropertyMappingSet * | mappingset ) const |
Adds the definitions of each feature to the standard data layer passed.
The GML feature names will be added as new feature classes. The properties of each GML feature will be added as field definitions to the layer's data handler, unless they are redirected by the corresponding mapping object held in the mapping set passed.
The mapping set object passed should be the same as the one used when writing GML instance data using this schema or when the schema was created using the TSLGMLApplicationSchemaFactory. It is used to redirect GML feature properties to rendering attributes and properties of the MapLink entities rather than as fields in the data handler. If the mapping set contains a mapping for a particular GML feature definition, then it will be used when adding that definition to the layer, otherwise no mapping will be used for that definition.
layer | The layer to add the feature definitions to. |
mappingset | The mapping set to used. |
void TSLGMLApplicationSchema::destroy | ( | ) |
Destroy this object.
This method must be used instead of delete.
const TSLGMLApplicationSchemaProfileParameters * TSLGMLApplicationSchema::profile | ( | ) | const |
Queries the profile specific parameters of this GML application schema.
If this schema does not conform to a profile or does not conform to an understood profile, then this method will return null.
const char * TSLGMLApplicationSchema::targetNamespace | ( | ) | const |
Queries the target namespace of the application schema.
const char * TSLGMLApplicationSchema::targetNamespacePrefix | ( | ) | const |
Queries the namespace prefix used by to denote the target namespace.
This may be null if one was not used in the schema document that this schema was loaded from or provided when this instance was created.
unsigned int TSLGMLApplicationSchema::versionMajor | ( | ) | const |
Queries the major part of the version of this application schema.
If the source schema document did not declare a version, then the version 1.0 will be assumed.
unsigned int TSLGMLApplicationSchema::versionMinor | ( | ) | const |
Queries the minor part of the version of this application schema.
If the source schema document did not declare a version, then the version 1.0 will be assumed.