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

Detailed Description

This class allows an application to iterate through the contents of a feature table in the GeoPackage. This is useful when performing operations on the entire contents of the table.

A new TSLGPkgFeatureIterator starts pointing to just before the first row in the table, therefore the application must call next() before attempting to access any data, for example:

TSLGPkgFeatureIterator *iterator = featureTable->getFeatureIterator();
while( *iterator->next() )
{
  // Read data for row
}

delete iterator;

Public Member Functions

 ~TSLGPkgFeatureIterator ()
 
bool next ()
 
TSLEntitygetGeometry ()
 
TSLVariant getColumnValue (int index)
 
void operator delete (void *ptr)
 

Constructor & Destructor Documentation

◆ ~TSLGPkgFeatureIterator()

TSLGPkgFeatureIterator::~TSLGPkgFeatureIterator ( )

Member Function Documentation

◆ getColumnValue()

TSLVariant TSLGPkgFeatureIterator::getColumnValue ( int index)

Returns a TSLVariant, which contains the contents of the specified column.

The returned variant is owned by the application.

◆ getGeometry()

TSLEntity * TSLGPkgFeatureIterator::getGeometry ( )

Returns the geometry for the current row in the feature table that the iterator points to.

The returned geometry is owned by the application.

◆ next()

bool TSLGPkgFeatureIterator::next ( )

Advances the iterator to the next row in the table.

Returns true if there is more data available in the table, or false if the end of the table has been reached. Once this method returns false the iterator should be destroyed and no other methods called on it.

◆ operator delete()

void TSLGPkgFeatureIterator::operator delete ( void * ptr)