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

Detailed Description

Visual Studio .NET 2005 introduced additional secure versions of some functions - we don't need them here. Feature code mapping struct.

This structure is used when importing and exporting data, mapping Native Feature Codes to MapLink Feature IDs. When importing data, it is also used to set the render level for each object imported, dependent on the feature type.

A Native Feature Code is a string defining the feature class within the scope of the source data file. A MapLink Feature ID is a long defining the feature class within the scope of the MapLink application. See TSLEntity::featureID() for more information on MapLink Feature IDs.

For example, when importing a MIF file, you may wish to map Feature Class "Road" to MapLink Feature ID 1000, and give all "Roads" a render level of 2.

Public Member Functions

 TSLFeatureCodeMapping ()
 
 TSLFeatureCodeMapping (const TSLFeatureCodeMapping &rhs)
 
TSLFeatureCodeMappingoperator= (const TSLFeatureCodeMapping &rhs)
 
const char * nativeFeatureCode () const
 
void nativeFeatureCode (const char *value)
 
TSLFeatureID maplinkFeatureID () const
 
void maplinkFeatureID (TSLFeatureID value)
 
int renderLevel () const
 
void renderLevel (int value)
 

Public Attributes

char m_nativeFeatureCode [256]
 
TSLFeatureID m_maplinkFeatureID
 
int m_renderLevel
 

Constructor & Destructor Documentation

◆ TSLFeatureCodeMapping() [1/2]

TSLFeatureCodeMapping::TSLFeatureCodeMapping ( )

◆ TSLFeatureCodeMapping() [2/2]

TSLFeatureCodeMapping::TSLFeatureCodeMapping ( const TSLFeatureCodeMapping & rhs)

Member Function Documentation

◆ maplinkFeatureID() [1/2]

TSLFeatureID TSLFeatureCodeMapping::maplinkFeatureID ( ) const
inline

◆ maplinkFeatureID() [2/2]

void TSLFeatureCodeMapping::maplinkFeatureID ( TSLFeatureID value)
inline

◆ nativeFeatureCode() [1/2]

const char * TSLFeatureCodeMapping::nativeFeatureCode ( ) const
inline

◆ nativeFeatureCode() [2/2]

void TSLFeatureCodeMapping::nativeFeatureCode ( const char * value)
inline

◆ operator=()

TSLFeatureCodeMapping & TSLFeatureCodeMapping::operator= ( const TSLFeatureCodeMapping & rhs)

◆ renderLevel() [1/2]

int TSLFeatureCodeMapping::renderLevel ( ) const
inline

◆ renderLevel() [2/2]

void TSLFeatureCodeMapping::renderLevel ( int value)
inline

Member Data Documentation

◆ m_maplinkFeatureID

TSLFeatureID TSLFeatureCodeMapping::m_maplinkFeatureID

Defines the MapLink Feature ID for this feature.

The MapLink Feature ID is the feature code in the scope of the application, as defined by the user.

◆ m_nativeFeatureCode

char TSLFeatureCodeMapping::m_nativeFeatureCode[256]

Data Members for Class Attributes Defines the Native Feature Code for this feature.

The Native Feature Code is the feature code as defined by the source data.

◆ m_renderLevel

int TSLFeatureCodeMapping::m_renderLevel

Defines the render level for objects of this class.

Note that the render level is only defined when importing data. When exporting data, this member is ignored.