MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLGMLApplicationSchema Class Reference

Detailed Description

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 TSLGMLApplicationSchemaProfileParametersprofile () const
 
const char * targetNamespace () const
 
const char * targetNamespacePrefix () const
 
unsigned int versionMajor () const
 
unsigned int versionMinor () const
 

Member Function Documentation

◆ applyToLayer() [1/3]

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.

Parameters
layerThe layer to add the feature definitions to.
Returns
true on success, false otherwise.

◆ applyToLayer() [2/3]

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.

Parameters
layerThe layer to add the feature definitions to.
mappingThe mapping to used.
Returns
true on success, false otherwise.

◆ applyToLayer() [3/3]

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.

Parameters
layerThe layer to add the feature definitions to.
mappingsetThe mapping set to used.
Returns
true on success, false otherwise.

◆ destroy()

void TSLGMLApplicationSchema::destroy ( )

Destroy this object.

This method must be used instead of delete.

◆ profile()

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.

◆ targetNamespace()

const char * TSLGMLApplicationSchema::targetNamespace ( ) const

Queries the target namespace of the application schema.

◆ targetNamespacePrefix()

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.

◆ versionMajor()

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.

◆ versionMinor()

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.