#include <sdts_al.h>
Public Member Functions | |
int | Open (const char *) |
int | FindLayer (const char *) |
SDTSLayerType | GetLayerType (int) |
int | GetLayerCATDEntry (int) |
SDTSRasterReader * | GetLayerRasterReader (int) |
SDTSIndexedReader * | GetLayerIndexedReader (int) |
SDTS_CATD * | GetCATD () |
SDTS_XREF * | GetXREF () |
DDFField * | GetAttr (SDTSModId *) |
int | GetBounds (double *pdfMinX, double *pdfMinY, double *pdfMaxX, double *pdfMaxY) |
This class is used to open the transfer, to get a list of available feature layers, and to instantiate readers for those layers.
int SDTSTransfer::FindLayer | ( | const char * | pszModule | ) |
Fetch the SDTSTransfer layer number corresponding to a module name.
pszModule | the name of the module to search for, such as "PC01". |
Fetch the attribute fields given a particular module/record id.
poModId | an attribute record identifer, normally taken from the aoATID[] array of an SDTSIndexedFeature. |
int SDTSTransfer::GetBounds | ( | double * | pdfMinX, | |
double * | pdfMinY, | |||
double * | pdfMaxX, | |||
double * | pdfMaxY | |||
) |
Fetch approximate bounds for a transfer by scanning all point layers and raster layers.
For TVP datasets (where point layers are scanned) the results can, in theory miss some lines that go outside the bounds of the point layers. However, this isn't common since most TVP sets contain a bounding rectangle whose corners will define the most extreme extents.
pdfMinX | western edge of dataset | |
pdfMinY | southern edge of dataset | |
pdfMaxX | eastern edge of dataset | |
pdfMaxY | northern edge of dataset |
SDTS_CATD* SDTSTransfer::GetCATD | ( | ) | [inline] |
Fetch the catalog object for this transfer.
int SDTSTransfer::GetLayerCATDEntry | ( | int | iEntry | ) |
Fetch the CATD module index for a layer. This can be used to fetch details about the layer/module from the SDTS_CATD object, such as it's filename, and description.
iEntry | the layer index from 0 to GetLayerCount()-1. |
SDTSIndexedReader * SDTSTransfer::GetLayerIndexedReader | ( | int | iEntry | ) |
Returns a pointer to a reader of the appropriate type to the requested layer.
Notes:
iEntry | the index of the layer to instantiate a reader for. A value between 0 and GetLayerCount()-1. |
SDTSRasterReader * SDTSTransfer::GetLayerRasterReader | ( | int | iEntry | ) |
Instantiate an SDTSRasterReader for the indicated layer.
iEntry | the index of the layer to instantiate a reader for. A value between 0 and GetLayerCount()-1. |
SDTSLayerType SDTSTransfer::GetLayerType | ( | int | iEntry | ) |
Fetch type of requested feature layer.
iEntry | the index of the layer to fetch information on. A value from zero to GetLayerCount()-1. |
SDTS_XREF* SDTSTransfer::GetXREF | ( | ) | [inline] |
Fetch the external reference object for this transfer.
int SDTSTransfer::Open | ( | const char * | pszFilename | ) |
Open an SDTS transfer, and establish a list of data layers in the transfer.
pszFilename | The name of the CATD file within the transfer. |