30#include <wx/filename.h>
32#include "../core/tmarraysize.h"
35#include "ogrsf_frmts.h"
36#include "tmgisscale.h"
37#include "tmlayerproperties.h"
51 wxString m_ShortFileName;
52 wxString m_FullFileName;
55 void InitMemberValue();
73 m_CoordConvert = coordconvert;
77 return m_CoordConvert;
81 static void InitGISDrivers(
bool bRaster = TRUE,
bool bVector = TRUE);
89 static tmGISData* CreateGISBasedOnExt(
const wxString& extension);
94 static void EnableLogging(
bool enable =
true) {
98 static bool IsLoggingEnabled() {
103 virtual bool Open(
const wxString& filename,
bool bReadWrite = TRUE);
105 virtual bool Close() {
109 virtual tmRealRect GetMinimalBoundingRectangle() {
113 virtual TM_GIS_SPATIAL_TYPES GetSpatialType() {
118 wxString GetShortFileName() {
119 return m_ShortFileName;
122 wxString GetFullFileName() {
123 return m_FullFileName;
127 virtual wxString GetMetaDataAsHtml() {
128 return wxEmptyString;
131 virtual wxString GetDataSizeAsHtml(
int iPrecision = 2) {
132 return wxEmptyString;
136 virtual wxArrayLong* SearchData(
const tmRealRect& rect,
int type) {
140 virtual wxArrayLong* GetAllData() {
144 virtual bool GetSnapCoord(
const wxRealPoint& clickpt,
double buffersize, wxArrayRealPoints& snapppts,
149 virtual bool IsPointSnapped(
const wxRealPoint& point,
int snaptype,
long excludeoid = wxNOT_FOUND) {
153 virtual bool CreateSpatialIndex(GDALProgressFunc progress,
void* pfProgressData) {
157 virtual int IsRaster() {
Definition tmcoordconvert.h:33
Main class for dealing with GIS data.
Definition tmgisdata.h:48
static tmGISData * CreateGISBasedOnType(const int &gis_format_index)
Create an object of the specified format.
Definition tmgisdata.cpp:144
~tmGISData()
Destructor.
Definition tmgisdata.cpp:44
tmGISData()
Constructor.
Definition tmgisdata.cpp:35
static tmGISData * LoadLayer(tmLayerProperties *layerprop)
Call this function for loading a layer.
Definition tmgisdata.cpp:221
static wxString GetAllSupportedGISFormatsWildcards()
Return all supported formats.
Definition tmgisdata.cpp:97
static wxArrayString GetAllSupportedGISFormatsExtensions()
Returning all extensions in an array string.
Definition tmgisdata.cpp:116
virtual bool Open(const wxString &filename, bool bReadWrite=TRUE)
Generic open code.
Definition tmgisdata.cpp:179
wxString GetMinimalBoundingRectangleAsHtml(int iprecision=2)
Get Minimal bounding rectangle as html.
Definition tmgisdata.cpp:195
static void InitGISDrivers(bool bRaster=TRUE, bool bVector=TRUE)
Init the GDAL / OGR driver.
Definition tmgisdata.cpp:69
Storing object of layer type.
Definition tmlayerproperties.h:47
Class representing real rectangle.
Definition tmgisscale.h:44