Geodot Plugin
Loading...
Searching...
No Matches
NativeDataset.h
1#include "gdal-includes.h"
2
3
4class NativeLayer;
5
7 public:
8 NativeDataset(std::string path, bool write_access);
10
12 std::vector<std::string> get_feature_layer_names();
13
15 std::vector<std::string> get_raster_layer_names();
16
18 std::vector<std::string> get_raster_band_descriptions();
19
21 bool has_layer(const char *name) const;
22
24 std::shared_ptr<NativeLayer> get_sql_layer(const char *query) const;
25
28 std::shared_ptr<NativeLayer> get_layer(const char *name) const;
29
30 std::shared_ptr<NativeDataset> get_subdataset(const char *name) const;
31
32 std::shared_ptr<NativeDataset> clone();
33
34 bool is_valid() const;
35
36 // Return the epsg integer code of the spatial reference system if avaialble, -1 otherwise
37 int get_epsg_code() const;
38
39 std::string path;
40
41 bool write_access;
42
43 GDALDataset *dataset;
44};
Definition: NativeDataset.h:6
std::shared_ptr< NativeLayer > get_sql_layer(const char *query) const
Returns a layer whose features are the result of a given SQL query.
Definition: NativeDataset.cpp:62
bool has_layer(const char *name) const
Returns true if the dataset has a feature layer of the given name.
Definition: NativeDataset.cpp:58
std::vector< std::string > get_raster_layer_names()
Return the names of all raster layers as std::strings.
Definition: NativeDataset.cpp:17
std::vector< std::string > get_raster_band_descriptions()
Return the descriptions of all raster bands as std::strings.
Definition: NativeDataset.cpp:44
std::vector< std::string > get_feature_layer_names()
Return the names of all feature layers as std::strings.
Definition: NativeLayer.cpp:447
std::shared_ptr< NativeLayer > get_layer(const char *name) const
Definition: NativeDataset.cpp:66
Definition: NativeLayer.h:7