23 #include "wxgis/catalog/catalog.h"
25 #ifdef wxGIS_USE_POSTGRES
27 #include "wxgis/datasource/postgisdataset.h"
28 #include "wxgis/catalog/gxdataset.h"
29 #include "wxgis/catalog/contupdater.h"
31 WX_DECLARE_STRING_HASH_MAP( wxString, wxGISIndexMap );
40 class WXDLLIMPEXP_GIS_CLT wxGISPostGISBaseTable :
44 wxGISPostGISBaseTable(
int nRemoteId,
const wxString &sSchema,
const wxString &soName, wxGISPostgresDataSource* pwxGISRemoteConn);
45 virtual ~wxGISPostGISBaseTable(
void);
46 virtual wxULongLong GetTableSize();
47 virtual void FillIndixes();
49 wxString m_sTableName;
50 wxString m_sSchemaName;
51 wxString m_sFullyQualifiedName;
52 wxGISPostgresDataSource* m_pwxGISRemoteConn;
53 wxGISIndexMap m_msIndexs;
63 class WXDLLIMPEXP_GIS_CLT wxGxPostGISTable :
65 public wxGISPostGISBaseTable
67 DECLARE_CLASS(wxGxPostGISTable)
69 wxGxPostGISTable(
int nRemoteId, const wxString &sSchema, wxGISPostgresDataSource* pwxGISRemoteConn,
wxGxObject *oParent, const wxString &soName = wxEmptyString, const CPLString &soPath = "");
70 virtual ~wxGxPostGISTable(
void);
72 virtual wxString GetCategory(
void)
const {
return wxString(_(
"PostGIS Table"));};
74 virtual void FillMetadata(
bool bForce);
76 virtual bool CanRename(
void);
77 virtual bool CanCopy(
const CPLString &szDestPath);
78 virtual bool CanMove(
const CPLString &szDestPath);
79 virtual bool Rename(
const wxString &sNewName);
80 virtual bool Delete(
void);
81 virtual bool Copy(
const CPLString &szDestPath,
ITrackCancel*
const pTrackCancel);
82 virtual bool Move(
const CPLString &szDestPath,
ITrackCancel*
const pTrackCancel);
95 class WXDLLIMPEXP_GIS_CLT wxGxPostGISFeatureDataset :
97 public wxGISPostGISBaseTable
99 DECLARE_CLASS(wxGxPostGISFeatureDataset)
101 wxGxPostGISFeatureDataset(
int nRemoteId, const wxString &sSchema, wxGISPostgresDataSource* pwxGISRemoteConn,
wxGxObject *oParent, const wxString &soName = wxEmptyString, const CPLString &soPath = "");
102 virtual ~wxGxPostGISFeatureDataset(
void);
104 virtual wxString GetCategory(
void)
const {
return wxString(_(
"PostGIS Feature class"));};
106 virtual void FillMetadata(
bool bForce);
108 virtual bool CanRename(
void);
109 virtual bool CanCopy(
const CPLString &szDestPath);
110 virtual bool CanMove(
const CPLString &szDestPath);
111 virtual bool Rename(
const wxString &sNewName);
112 virtual bool Delete(
void);
113 virtual bool Copy(
const CPLString &szDestPath,
ITrackCancel*
const pTrackCancel);
114 virtual bool Move(
const CPLString &szDestPath,
ITrackCancel*
const pTrackCancel);
120 #endif //wxGIS_USE_POSTGRES
Definition: gxdataset.h:151
A TrackCancel interface class.
Definition: core.h:144
Definition: contupdater.h:70
Definition: gxdataset.h:124
Definition: gxobject.h:37