Geodot Plugin
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Protected Member Functions | List of all members
godot::GeoDataset Class Reference

#include <geodata.h>

Inheritance diagram for godot::GeoDataset:

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< GeoRasterLayerget_raster_layer (String name)
 
Ref< GeoFeatureLayerget_feature_layer (String name)
 
Ref< GeoFeatureLayerget_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< NativeDatasetdataset
 
String name
 

Static Protected Member Functions

static void _bind_methods ()
 

Detailed Description

A dataset which contains layers of geodata. Corresponds to GDALDataset.

Member Function Documentation

◆ get_feature_layer()

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().

◆ get_raster_layer()

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().

◆ get_sql_feature_layer()

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().

◆ load_from_file()

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.

◆ set_native_dataset()

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.


The documentation for this class was generated from the following files: