Main class for dealing with GIS data.
More...
#include <tmgisdata.h>
|
| tmGISData () |
| Constructor.
|
|
| ~tmGISData () |
| Destructor.
|
|
int | GetDataType () |
|
void | SetCoordConvert (tmCoordConvert *coordconvert) |
|
tmCoordConvert * | GetCoordConvert () |
|
virtual bool | Open (const wxString &filename, bool bReadWrite=TRUE) |
| Generic open code.
|
|
virtual bool | Close () |
|
virtual tmRealRect | GetMinimalBoundingRectangle () |
|
virtual TM_GIS_SPATIAL_TYPES | GetSpatialType () |
|
wxString | GetShortFileName () |
|
wxString | GetFullFileName () |
|
virtual wxString | GetMetaDataAsHtml () |
|
virtual wxString | GetDataSizeAsHtml (int iPrecision=2) |
|
virtual wxArrayLong * | SearchData (const tmRealRect &rect, int type) |
|
virtual wxArrayLong * | GetAllData () |
|
virtual bool | GetSnapCoord (const wxRealPoint &clickpt, double buffersize, wxArrayRealPoints &snapppts, int snaptype) |
|
virtual bool | IsPointSnapped (const wxRealPoint &point, int snaptype, long excludeoid=wxNOT_FOUND) |
|
virtual bool | CreateSpatialIndex (GDALProgressFunc progress, void *pfProgressData) |
|
virtual int | IsRaster () |
|
Main class for dealing with GIS data.
This class may be used for accessing GIS data using GDAL / OGR driver see also : http://www.gdal.org/
- Author
- Lucien Schreiber (c) CREALP 2008
- Date
- 14 July 2008
◆ tmGISData()
Constructor.
- Author
- Lucien Schreiber (c) CREALP 2008
- Date
- 14 July 2008
◆ ~tmGISData()
tmGISData::~tmGISData |
( |
| ) |
|
Destructor.
- Author
- Lucien Schreiber (c) CREALP 2008
- Date
- 14 July 2008
◆ CreateGISBasedOnType()
tmGISData * tmGISData::CreateGISBasedOnType |
( |
const int & |
gis_format_index | ) |
|
|
static |
Create an object of the specified format.
Allowed values for gis_format_index are those from the tmGISDATA_RASTER_TYPES and from the tmGISDATA_VECTOR_TYPES
- Parameters
-
gis_format_index | zero based index of the item type to create |
- Returns
- pointer to an object of the correct type or nullptr if something's going wrong
- Author
- Lucien Schreiber (c) CREALP 2008
- Date
- 14 July 2008
◆ GetAllData()
virtual wxArrayLong * tmGISData::GetAllData |
( |
| ) |
|
|
inlinevirtual |
◆ GetAllSupportedGISFormatsExtensions()
wxArrayString tmGISData::GetAllSupportedGISFormatsExtensions |
( |
| ) |
|
|
static |
Returning all extensions in an array string.
All supported extensions in an array string but not the mysql one (because no extension is valid for that format).
- Note
- Raster format are returned first
- Returns
- all supported extension, raster ones first
- Author
- Lucien Schreiber (c) CREALP 2008
- Date
- 06 August 2008
◆ GetAllSupportedGISFormatsWildcards()
wxString tmGISData::GetAllSupportedGISFormatsWildcards |
( |
| ) |
|
|
static |
Return all supported formats.
Return the wildcards of all supported formats for loading.
- Returns
- A String containing all supported formats as wildcards that one may use in a dialog box for file selection
- Author
- Lucien Schreiber (c) CREALP 2008
- Date
- 14 July 2008
◆ GetDataSizeAsHtml()
virtual wxString tmGISData::GetDataSizeAsHtml |
( |
int |
iPrecision = 2 | ) |
|
|
inlinevirtual |
◆ GetMetaDataAsHtml()
virtual wxString tmGISData::GetMetaDataAsHtml |
( |
| ) |
|
|
inlinevirtual |
◆ GetMinimalBoundingRectangleAsHtml()
wxString tmGISData::GetMinimalBoundingRectangleAsHtml |
( |
int |
iprecision = 2 | ) |
|
|
protected |
Get Minimal bounding rectangle as html.
This function is intented for getting minimal bounding rectangle for metadata
- Returns
- An html compliant string
- Author
- Lucien Schreiber (c) CREALP 2008
- Date
- 23 October 2008
◆ GetSnapCoord()
virtual bool tmGISData::GetSnapCoord |
( |
const wxRealPoint & |
clickpt, |
|
|
double |
buffersize, |
|
|
wxArrayRealPoints & |
snapppts, |
|
|
int |
snaptype |
|
) |
| |
|
inlinevirtual |
◆ GetSpatialType()
virtual TM_GIS_SPATIAL_TYPES tmGISData::GetSpatialType |
( |
| ) |
|
|
inlinevirtual |
◆ InitGISDrivers()
void tmGISData::InitGISDrivers |
( |
bool |
bRaster = TRUE , |
|
|
bool |
bVector = TRUE |
|
) |
| |
|
static |
Init the GDAL / OGR driver.
Call this function during program startup to allow all GDAL / OGR drivers to be loaded.
- Parameters
-
bRaster | Should we load all GDAL rasters drivers |
bVector | Should we load all OGR vector drivers |
- Author
- Lucien Schreiber (c) CREALP 2008
- Date
- 14 July 2008
◆ LoadLayer()
Call this function for loading a layer.
This function create an object of type tmGISData based on layer properties
- Parameters
-
layerProp | the layer properties |
- Returns
- a valid tmGISData object or nullptr if an error occur
- Author
- Lucien Schreiber (c) CREALP 2009
- Date
- 30 January 2009
◆ Open()
bool tmGISData::Open |
( |
const wxString & |
filename, |
|
|
bool |
bReadWrite = TRUE |
|
) |
| |
|
virtual |
Generic open code.
Mainly init member values used by all GIS class
- Parameters
-
filename | path and name of the GIS data to open |
bReadWrite | Should we open the dataset for r/w operations ? |
- Returns
- Allways TRUE
- Author
- Lucien Schreiber (c) CREALP 2008
- Date
- 14 July 2008
Reimplemented in tmGISDataVectorMYSQL, tmGISDataVectorSHP, and tmGISDataRaster.
◆ SearchData()
virtual wxArrayLong * tmGISData::SearchData |
( |
const tmRealRect & |
rect, |
|
|
int |
type |
|
) |
| |
|
inlinevirtual |
The documentation for this class was generated from the following files:
- /github/workspace/src/gis/tmgisdata.h
- /github/workspace/src/gis/tmgisdata.cpp