Version: 0.6.0
gptable.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Toolbox)
3  * Purpose: main table analysis functions.
4  * Author: Baryshnikov Dmitriy (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2011 Bishop
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  ****************************************************************************/
21 
22 #pragma once
23 
24 #include "wxgis/geoprocessing/geoprocessing.h"
25 #include "wxgis/datasource/table.h"
26 
27 enum wxGISFieldMergeOperator
28 {
29  enumGISFMONone,
30  enumGISFMOMergeBase,
31  enumGISFMOMean,
32  enumGISFMOMin,
33  enumGISFMOMax,
34  enumGISFMOSum
35 };
36 
37 typedef struct _FieldMergeData
38 {
39  //CPLString sFieldName;
40  int nFieldPos;
41  wxGISFieldMergeOperator nOp;
43 
44 typedef struct Val
45 {
46  wxVariant sum;
47  int count;
48  OGRFieldType nType;
49 } VAL;
50 
51 typedef std::vector<VAL> VALARRAY, *LPVALARRAY;
52 
53 wxGISTableSPtr WXDLLIMPEXP_GIS_GP CreateTable(CPLString sPath, wxString sName, wxString sExt, wxString sDriver, OGRFeatureDefn *poFields, wxGISEnumTableDatasetType nType = enumTableUnknown, char ** papszDataSourceOptions = NULL, char ** papszLayerOptions = NULL);
54 bool WXDLLIMPEXP_GIS_GP MeanValByColumn(wxGISTableSPtr pDSet, CPLString sPath, wxString sName, std::vector<FIELDMERGEDATA> &FieldMergeData, IGxObjectFilter* pFilter, wxGISQueryFilter* pQFilter, ITrackCancel* pTrackCancel);
Attributes query filter.
Definition: filter.h:29
Definition: gptable.h:44
A TrackCancel interface class.
Definition: core.h:144
Definition: gptable.h:37