23 #include "wxgis/datasource/datasource.h"
24 #include "wxgis/datasource/gdalinh.h"
27 WXDLLIMPEXP_GIS_DS
inline bool IsFileDataset(wxGISEnumDatasetType eDSType,
long SubType)
33 case enumGISFeatureDataset:
35 wxGISEnumVectorDatasetType eSubType = (wxGISEnumVectorDatasetType)SubType;
38 case enumVecESRIShapefile:
39 case enumVecMapinfoTab:
40 case enumVecMapinfoMif:
56 case enumVecFileDBLayer:
64 wxGISEnumTableType eSubType = (wxGISEnumTableType)SubType;
67 case enumTableUnknown:
71 case enumTablePostgres:
73 case enumTableQueryResult:
75 case enumTableMapinfoTab:
76 case enumTableMapinfoMif:
82 case enumTableFileDBLayer:
88 case enumGISRasterDataset:
90 wxGISEnumRasterDatasetType eSubType = (wxGISEnumRasterDatasetType)SubType;
93 case enumRasterUnknown:
105 case enumRasterFileDBLayer:
107 case enumRasterWMSTMS:
114 case enumGISContainer:
116 wxGISEnumContainerType eSubType = (wxGISEnumContainerType)SubType;
120 case enumContGDBFolder:
121 case enumContDataset:
124 case enumContRemoteDBConnection:
125 case enumContWebServiceConnection:
136 WXDLLIMPEXP_GIS_DS
inline wxString GetDriverByType(wxGISEnumDatasetType eDSType,
long SubType)
141 return wxEmptyString;
142 case enumGISFeatureDataset:
144 wxGISEnumVectorDatasetType eSubType = (wxGISEnumVectorDatasetType)SubType;
147 case enumVecESRIShapefile:
148 return wxString(wxT(
"ESRI Shapefile"));
149 case enumVecMapinfoTab:
150 case enumVecMapinfoMif:
151 return wxString(wxT(
"MapInfo File"));
154 return wxString(wxT(
"LIBKML"));
156 return wxString(wxT(
"DXF"));
158 return wxString(wxT(
"PostgreSQL"));
160 return wxString(wxT(
"GML"));
162 return wxString(wxT(
"WFS"));
164 return wxString(wxT(
"Memory"));
166 return wxString(wxT(
"GeoJSON"));
168 return wxString(wxT(
"CSV"));
170 return wxString(wxT(
"SXF"));
176 wxGISEnumTableType eSubType = (wxGISEnumTableType)SubType;
180 return wxString(wxT(
"ESRI Shapefile"));
181 case enumTableMapinfoTab:
182 case enumTableMapinfoMif:
183 return wxString(wxT(
"MapInfo File"));
185 return wxString(wxT(
"CSV"));
186 case enumTablePostgres:
187 return wxString(wxT(
"PostgreSQL"));
189 return wxString(wxT(
"ODS"));
191 return wxString(wxT(
"XLS"));
193 return wxString(wxT(
"XLSX"));
194 case enumTableUnknown:
195 case enumTableQueryResult:
196 return wxEmptyString;
200 case enumGISRasterDataset:
202 wxGISEnumRasterDatasetType eSubType = (wxGISEnumRasterDatasetType)SubType;
206 return wxString(wxT(
"BMP"));
208 return wxString(wxT(
"GTiff"));
210 return wxString(wxT(
"JPEG"));
212 return wxString(wxT(
"HFA"));
214 return wxString(wxT(
"PNG"));
216 return wxString(wxT(
"GIF"));
218 return wxString(wxT(
"SAGA"));
220 return wxString(wxT(
"TIL"));
222 return wxString(wxT(
"VRT"));
224 case enumRasterWMSTMS:
225 return wxString(wxT(
"WMS"));
226 case enumRasterPostGIS:
227 return wxString(wxT(
"PostGISRaster"));
231 case enumGISContainer:
233 return wxEmptyString;
235 return wxEmptyString;
239 WXDLLIMPEXP_GIS_DS
bool DeleteDir(
const CPLString &sPath,
ITrackCancel*
const pTrackCancel = NULL);
240 WXDLLIMPEXP_GIS_DS
bool MoveDir(
const CPLString &sPathFrom,
const CPLString &sPathTo,
long mode,
ITrackCancel*
const pTrackCancel = NULL);
241 WXDLLIMPEXP_GIS_DS
bool CopyDir(
const CPLString &sPathFrom,
const CPLString &sPathTo,
long mode,
ITrackCancel*
const pTrackCancel = NULL);
242 WXDLLIMPEXP_GIS_DS
bool CreateDir(
const CPLString &sPath,
long mode = 0755,
ITrackCancel*
const pTrackCancel = NULL);
243 WXDLLIMPEXP_GIS_DS
bool DeleteFile(
const CPLString &sPath,
ITrackCancel*
const pTrackCancel = NULL);
244 WXDLLIMPEXP_GIS_DS
bool RenameFile(
const CPLString &sOldPath,
const CPLString &sNewPath,
ITrackCancel*
const pTrackCancel = NULL);
245 WXDLLIMPEXP_GIS_DS
bool CopyFile(
const CPLString &sSrcPath,
const CPLString &sDestPath,
ITrackCancel*
const pTrackCance = NULL);
246 WXDLLIMPEXP_GIS_DS
bool MoveFile(
const CPLString &sSrcPath,
const CPLString &sDestPath,
ITrackCancel*
const pTrackCancel = NULL);
247 WXDLLIMPEXP_GIS_DS wxFontEncoding GetEncodingFromCpg(
const CPLString &sPath);
248 WXDLLIMPEXP_GIS_DS wxFontEncoding ToFontEncoding(
const CPLString &soCodePage);
250 WXDLLIMPEXP_GIS_DS wxString ClearExt(
const wxString &sPath);
251 WXDLLIMPEXP_GIS_DS
bool IsFileHidden(
const CPLString &sPath);
252 WXDLLIMPEXP_GIS_DS wxString CheckUniqName(
const CPLString &sPath,
const wxString &sName,
const wxString &sExt,
int nCounter = 0);
253 WXDLLIMPEXP_GIS_DS CPLString CheckUniqPath(
const CPLString &sPath,
const CPLString &sName,
bool bIsFolder =
false,
const CPLString &sAdd =
"_copy",
int nCounter = 0);
254 WXDLLIMPEXP_GIS_DS CPLString GetUniqPath(
const CPLString &szOriginalFullPath,
const CPLString &szNewPath,
const CPLString &szNewName);
255 WXDLLIMPEXP_GIS_DS CPLString Transliterate(
const char* str);
256 WXDLLIMPEXP_GIS_DS CPLString GetExtension(
const CPLString &sPath,
const CPLString &sName =
"");
257 WXDLLIMPEXP_GIS_DS wxString GetConvName(
const CPLString &szPath,
bool bIsPath =
true);
A TrackCancel interface class.
Definition: core.h:144