|
ToolMap
|
Public Member Functions | |
| tmExportDataSHP () | |
| Constructor. | |
| tmExportDataSHP (DataBaseTM *database) | |
| Constructor. | |
| void | Create (DataBaseTM *database) |
| Creator. | |
| ~tmExportDataSHP () | |
| destructor | |
| virtual bool | CreateEmptyExportFile (ProjectDefMemoryLayers *myLayer, const wxString &path) |
| Create empty file. | |
| virtual bool | CreatePrjFile (ProjectDefMemoryLayers *myLayer, const wxString &path, PRJDEF_PROJ_TYPE proj) |
| virtual bool | AddOptFields (const PrjMemFieldArray &myfields) |
| Add optional fields to the Shp. | |
| virtual bool | AddGenericFields (int iSize) |
| Adding generic fields. | |
| virtual bool | AddFIDField () |
| Adding Field for storing ToolMap FID. | |
| virtual void | SetFrame (wxRealPoint *points, int nbvertex) |
| Set the frame. | |
| virtual bool | WriteLines (ProjectDefMemoryLayers *myLayer) |
| Write all geometrics lines to the shp. | |
| virtual bool | WritePoints (ProjectDefMemoryLayers *myLayer) |
| Write all geometrics points to the shp. | |
| virtual bool | WritePolygons (ProjectDefMemoryLayers *myLayer) |
| Compute polygons from lines. | |
| virtual bool | WriteLabels (ProjectDefMemoryLayers *myLayer) |
| virtual long | WriteConcatGeometries (ProjectDefMemoryLayers *layer, wxProgressDialog *progDlg, tmPercent *percent) |
| virtual bool | AddConcatAttributs (ProjectDefMemoryLayers *layer, PrjDefMemManage *projdef, long loop, wxProgressDialog *progDlg, tmPercent *percent) |
| virtual bool | SetAttributsBasic (DataBaseResult &results) |
| virtual bool | SetAttributsAdvanced (DataBaseResult &results, ProjectDefMemoryLayers *layer) |
| virtual bool | GetPolyExportInfo (ProjectDefMemoryLayers *layer, bool usefastexport) |
| virtual bool | CreateSpatialIndex (ProjectDefMemoryLayers *layer) |
| virtual bool | HasFeatures () |
| virtual bool | DeleteLayer (ProjectDefMemoryLayers *layer, const wxString &path) |
Public Member Functions inherited from tmExportData | |
| tmExportData () | |
| Constructor. | |
| tmExportData (DataBaseTM *database) | |
| Constructor. | |
| void | Create (DataBaseTM *database) |
| Creator. | |
| ~tmExportData () | |
| destructor | |
| int | GetSizeOfObjDesc (int layerindex) |
| Getting size of Object Desc column. | |
| wxString | GetFileExtension () |
| Return extension without the leading dot. | |
| void | SetExportAttributEnumeration (bool useAttributCode) |
| bool | DoExportAttributEnumerationCode () |
| virtual void | SetEmptyLayer () |
| void | SetCropBufferDistance (double value) |
| double | GetCropBufferDistance () |
| void | SetOverwrite (bool value) |
| bool | DoOverwrite () |
Additional Inherited Members | |
Protected Member Functions inherited from tmExportData | |
| wxFileName * | GetFileName (ProjectDefMemoryLayers *myLayer, const wxString &path) |
| Create a file name. | |
| wxFileName * | GetFileNamePrj (ProjectDefMemoryLayers *myLayer, const wxString &path) |
| Create a prj file name. | |
| int | GetSizeOfEnum (const PrjMemFieldCodedValArray &mCodedVal) |
| Get the max size of the items stored into array. | |
| bool | GetSimpleAttribData (PRJDEF_LAYERS_TYPE layertype, long layerindex) |
| Process query for getting simple attributs. | |
| bool | GetSimpleAttribDataWithSpatial (PRJDEF_LAYERS_TYPE layertype, long layerindex) |
| Process query for getting simple attributs and spatial data. | |
| bool | GetAdvancedAttribution (ProjectDefMemoryLayers *layer) |
| Process the query for getting advanced values from database. | |
Protected Attributes inherited from tmExportData | |
| DataBaseTM * | m_pDB |
| wxString | m_Extension |
| bool | m_Overwrite |
| bool | m_EmptyLayer |
| tmExportDataSHP::tmExportDataSHP | ( | ) |
| tmExportDataSHP::tmExportDataSHP | ( | DataBaseTM * | database | ) |
Constructor.
| database | A valid DataBaseTM object (an assert is done in debug mode) |
| tmExportDataSHP::~tmExportDataSHP | ( | ) |
destructor
|
virtual |
Reimplemented from tmExportData.
|
virtual |
Adding Field for storing ToolMap FID.
Add a first field containing ToolMap's FID. This is needed for adding advanced attribution because setting FID doesn't work with Shapefile (GDAL Bug ???). Added field name is TM_OID
Reimplemented from tmExportData.
|
virtual |
Adding generic fields.
Adding field :
Reimplemented from tmExportData.
|
virtual |
Add optional fields to the Shp.
| myfields | array of fields for this shapefile |
Reimplemented from tmExportData.
| void tmExportDataSHP::Create | ( | DataBaseTM * | database | ) |
Creator.
For two step initialization. In case of use of the default constructor
| database | A valid DataBaseTM object (an assert is done in debug mode) |
|
virtual |
Create empty file.
Create a file ProjectDefMemoryLayers informations, path and extension specified in class
| myLayer | contain the name of the file (without extension) to create |
| path | path where we want the file to be created |
Reimplemented from tmExportData.
|
virtual |
Reimplemented from tmExportData.
|
virtual |
Reimplemented from tmExportData.
|
virtual |
Reimplemented from tmExportData.
|
virtual |
Reimplemented from tmExportData.
|
virtual |
Reimplemented from tmExportData.
|
virtual |
Reimplemented from tmExportData.
|
virtual |
Reimplemented from tmExportData.
|
virtual |
Set the frame.
If the frame already exists, it is destroyed and this new frame is used
| points | array of points creating a polygon |
| nbvertex | number of vertex |
Reimplemented from tmExportData.
|
virtual |
Reimplemented from tmExportData.
|
virtual |
Reimplemented from tmExportData.
|
virtual |
Write all geometrics lines to the shp.
| myLayer | object containing info on the actual layer, such as layer_ID or layer_Name |
Reimplemented from tmExportData.
|
virtual |
Write all geometrics points to the shp.
| myLayer | object containing info on the actual layer, such as layer_ID or layer_Name |
Reimplemented from tmExportData.
|
virtual |
Compute polygons from lines.
This function uses GEOS for computing polygon from lines
| myLayer | Informations about the current layer |
Reimplemented from tmExportData.