Specific import class for handling shape file imports. More...
#include "IImportShape.hpp"
Inheritance diagram for IImportShape:Public Member Functions | |
| virtual void | setAttributeMapping (AddInfoLayoutHandle layout, unsigned mapSize, std::pair< unsigned, unsigned > *idxMap)=0 |
| set a mapping between dbf attributes and an add info layout for importing the attribute information as well | |
| virtual void | setAttributeMapping (AddInfoLayoutHandle layout, unsigned mapSize, std::pair< const char *, unsigned > *idxMap)=0 |
| set a mapping between dbf attributes and an add info layout for importing the attribute information as well | |
| virtual void | setSemanticTranslation (unsigned columnIdx, unsigned mapSize, std::pair< const char *, int > *translationMap)=0 |
| set a translation map between a dbf attribute and the scop semantic | |
| virtual void | setSemanticTranslation (const char *columnName, unsigned mapSize, std::pair< const char *, int > *translationMap)=0 |
| set a translation map between a dbf attribute and the scop semantic | |
Public Member Functions inherited from IImport | |
| virtual unsigned | serialize (char *representation=0) const =0 |
| virtual void | setControlObject (ControlObjectHandle control)=0 |
| virtual ControlObjectHandle | getControlObject () const =0 |
| virtual FileHeaderHandle | getHeader () const =0 |
| virtual void | setFilter (FilterHandle filter)=0 |
| virtual FilterHandle | getFilter () const =0 |
| virtual void | setPolygonMerging (PolygonMerging::Type mode)=0 |
| virtual PolygonMerging::Type | getPolygonMerging () const =0 |
| virtual const char * | getFilename () const =0 |
| Retuns the filename. | |
| virtual DataFormat::Type | getFileFormat () const =0 |
| Retuns the file format. | |
| virtual void | logTo (LogFn logFn)=0 |
| Set logging call back function. | |
| virtual bool | readHeaderSeparately ()=0 |
| read the header in advance | |
| virtual ImportError::Type | readNext (GeometryHandle &obj)=0 |
| read next object from import object | |
| virtual InvalidObjectStatistic | getInvalidGeometries () const =0 |
| get a statistic of invalid geometries (after import) | |
Public Member Functions inherited from ObjectBase | |
| virtual void | Delete () |
Static Public Member Functions | |
| static IImportShape * | New (const char *file, FilterHandle filter=FilterHandle(), ControlObjectHandle control=ControlObjectHandle(), bool collectHdrContents=false, unsigned maxBulkPoints=1000, AddInfoLayoutHandle defaultLayout=AddInfoLayoutHandle()) |
| static ShapeTableDefinitionHandle | getTableDefinition (const char *file) |
| retrieve the table definition of corresponding dbf file | |
Static Public Member Functions inherited from IImport | |
| static IImport * | New (void *instance, const char *file, DataFormat::Type format, FilterHandle filter=FilterHandle(), ControlObjectHandle control=ControlObjectHandle(), bool collectHdrContents=false, unsigned maxBulkPoints=1000, AddInfoLayoutHandle defaultLayout=AddInfoLayoutHandle()) |
| static IImport * | New (const char *file, DataFormat::Type format, FilterHandle filter=FilterHandle(), ControlObjectHandle control=ControlObjectHandle(), bool collectHdrContents=false, unsigned maxBulkPoints=1000, AddInfoLayoutHandle defaultLayout=AddInfoLayoutHandle()) |
| static IImport * | NewODM (Handle< IDatamanager > manager, bool restoreOrder, FilterHandle filter=FilterHandle(), ControlObjectHandle control=ControlObjectHandle(), bool collectHdrContents=false, unsigned maxBulkPoints=1000) |
| deprecated odm import creation functions (use IImportODM::New instead) | |
| static IImport * | NewODM (IDatamanager &manager, bool restoreOrder, FilterHandle filter=FilterHandle(), ControlObjectHandle control=ControlObjectHandle(), bool collectHdrContents=false, unsigned maxBulkPoints=1000) |
| deprecated odm import creation functions (use IImportODM::New instead) | |
| static IImport * | NewGDAL (const char *file, FilterHandle filter=FilterHandle(), ControlObjectHandle control=ControlObjectHandle(), bool collectHdrContents=false, unsigned maxBulkPoints=1000, unsigned bandNumber=1, const char *driver=0) |
| static IImport * | NewWinput (const char *file, bool binary, DM::ColumnSemantic::Type structIdAddInfoCol=DM::ColumnSemantic::null, DM::ColumnSemantic::Type wnpCodeAddInfoCol=DM::ColumnSemantic::null, FilterHandle filter=FilterHandle(), ControlObjectHandle control=ControlObjectHandle(), bool collectHdrContents=false, unsigned maxBulkPoints=1000, AddInfoLayoutHandle layout=AddInfoLayoutHandle()) |
| static IImport * | unserialize (const char *representation, unsigned repSize) |
| Restore an import object from its string representation. Since the representation may contain null bytes, its size must also be specified. | |
Detailed Description
Specific import class for handling shape file imports.
Member Function Documentation
|
pure virtual |
set a mapping between dbf attributes and an add info layout for importing the attribute information as well
This is optional import definition must be set before the first element (and file header) is read. If nothing is set no dbf attributes will be imported.
- Parameters
-
[in] layout layout that should be attached to each geometry object [in] mapSize size of the idxMap, which has to be a corresponding C array [in] idxMap C array mapping the dbf attribute index (first value of std::pair) to the add info layout index (second value of std::pair)
|
pure virtual |
set a mapping between dbf attributes and an add info layout for importing the attribute information as well
This is optional import definition must be set before the first element (and file header) is read. If nothing is set no dbf attributes will be imported.
- Parameters
-
[in] layout layout that should be attached to each geometry object [in] mapSize size of the idxMap, which has to be a corresponding C array [in] idxMap C array mapping the dbf attribute name (first value of std::pair) to the add info layout index (second value of std::pair)
|
pure virtual |
set a translation map between a dbf attribute and the scop semantic
This is optional import definition must be set before the first element (and file header) is read.
- Parameters
-
[in] columnIdx index of the dbf attribute to be used [in] mapSize size of the idxMap, which has to be a corresponding C array [in] translationMap C array mapping string values (first value of std::pair) to the scop semantic (second value of std::pair)
|
pure virtual |
set a translation map between a dbf attribute and the scop semantic
This is optional import definition must be set before the first element (and file header) is read.
- Parameters
-
[in] columnName dbf attribute name to be used [in] mapSize size of the idxMap, which has to be a corresponding C array [in] translationMap C array mapping string values (first value of std::pair) to the scop semantic (second value of std::pair)
