Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Public Attributes | List of all members
vtFeatureLoader Class Reference

Public Member Functions

virtual vtFeatureSetLoadFrom (const char *filename)
 
vtFeatureSetLoadFromSHP (const char *filename, bool progress_callback(int)=NULL)
 
vtFeatureSetLoadHeaderFromSHP (const char *filename)
 
vtFeatureSetLoadWithOGR (const char *filename, bool progress_callback(int)=NULL)
 
vtFeatureSetLoadWithOGR (OGRLayer *pLayer, bool progress_callback(int)=NULL)
 
vtFeatureSetLoadFromIGC (const char *filename)
 
vtFeatureSetLoadFromDXF (const char *filename, bool progress_callback(int)=NULL)
 
vtFeatureSetReadFeaturesFromWFS (const char *szServerURL, const char *layername)
 

Public Attributes

vtString m_strErrorMsg
 

Member Function Documentation

vtFeatureSet * vtFeatureLoader::LoadFrom ( const char *  filename)
virtual

Load a featureset from a file. It may be SHP, IGC, or DXF format.

Parameters
filenameFilename in UTF-8 encoding.
Returns
a new vtFeatureSet if successful, otherwise NULL;
vtFeatureSet * vtFeatureLoader::LoadFromDXF ( const char *  filename,
bool   progress_callbackint = NULL 
)

Load a featureset from a SHP (ESRI Shapefile).

Parameters
filenameFilename in UTF-8 encoding.
progress_callbackProvide a callback function if you want to receive progress indication.
Returns
a new vtFeatureSet if successful, otherwise NULL.
vtFeatureSet * vtFeatureLoader::LoadFromIGC ( const char *  filename)

Load a featureset from an IGC file.

Parameters
filenameFilename in UTF-8 encoding.
Returns
a new vtFeatureSet if successful, otherwise NULL.
vtFeatureSet * vtFeatureLoader::LoadFromSHP ( const char *  filename,
bool   progress_callbackint = NULL 
)

Load a featureset from a SHP (ESRI Shapefile).

Parameters
filenameFilename in UTF-8 encoding.
progress_callbackProvide if you want a callback on progress.
Returns
a new vtFeatureSet if successful, otherwise NULL.
vtFeatureSet * vtFeatureLoader::LoadWithOGR ( const char *  filename,
bool   progress_callbackint = NULL 
)

Load a featureset from a file using the OGR library. It can be in any file format that OGR supports.

Parameters
filenameFilename in UTF-8 encoding.
progress_callbackProvide a callback function if you want to receive progress indication.
Returns
a new vtFeatureSet if successful, otherwise NULL.

The documentation for this class was generated from the following files: