Geodot Plugin
|
#include <geodata.h>
Public Member Functions | |
bool | is_valid () |
Returns true if the GeoDataset could successfully be loaded. | |
Dictionary | get_file_info () |
Returns information about this file, e.g. the filename and the path. | |
bool | has_write_access () |
Returns true for read-write-access and false for read-only-access. | |
Array | get_raster_layers () |
Return all GeoRasterLayers objects for this dataset. | |
Array | get_feature_layers () |
Return all GeoFeatureLayer objects for this dataset. | |
Ref< GeoRasterLayer > | get_raster_layer (String name) |
Ref< GeoFeatureLayer > | get_feature_layer (String name) |
Ref< GeoFeatureLayer > | get_sql_feature_layer (String query) |
void | load_from_file (String file_path, bool write_access) |
void | set_native_dataset (std::shared_ptr< NativeDataset > new_dataset) |
Public Attributes | |
bool | write_access |
std::shared_ptr< NativeDataset > | dataset |
String | name |
Static Protected Member Functions | |
static void | _bind_methods () |
A dataset which contains layers of geodata. Corresponds to GDALDataset.
Ref< GeoFeatureLayer > godot::GeoDataset::get_feature_layer | ( | String | name | ) |
Returns a GeoFeatureLayer object of the layer within this dataset with the given name. It is recommended to check the validity of the returned object with GeoFeatureLayer::is_valid().
Ref< GeoRasterLayer > godot::GeoDataset::get_raster_layer | ( | String | name | ) |
Returns a GeoRasterLayer object of the layer within this dataset with the given name. It is recommended to check the validity of the returned object with GeoRasterLayer::is_valid().
Ref< GeoFeatureLayer > godot::GeoDataset::get_sql_feature_layer | ( | String | query | ) |
Returns a virtual GeoFeatureLayer containing the results of the given SQL query. It is recommended to check the validity of the returned object with GeoFeatureLayer::is_valid().
void godot::GeoDataset::load_from_file | ( | String | file_path, |
bool | write_access | ||
) |
Load a dataset file such as a Geopackage or a Shapefile into this object.
void godot::GeoDataset::set_native_dataset | ( | std::shared_ptr< NativeDataset > | new_dataset | ) |
Set the GDALDataset object directly. Not exposed to Godot since Godot doesn't know about GDALDatasets - this is only for internal use.