2#include "LineFeature.h"
3#include "gdal-includes.h"
14 bool is_valid()
const;
16 void write_feature_cache_to_ram_layer();
20 void save_modified_layer(std::string path);
29 void add_field(std::string name);
31 void remove_field(std::string name);
33 bool field_exists(std::string name);
35 std::list<std::string> get_field_names();
59 double top_left_y,
double size_meters,
78 bool is_feature_deleted(OGRFeature *feature);
93 int disk_feature_count;
94 int ram_feature_count;
97 std::list<std::shared_ptr<Feature> > get_features_inside_geometry(OGRGeometry *geometry,
int max_amount);
99 std::mutex layer_mutex;
Definition: NativeLayer.h:8
std::list< std::shared_ptr< Feature > > get_features_near_position(double pos_x, double pos_y, double radius, int max_amount)
Definition: NativeLayer.cpp:459
std::list< std::shared_ptr< Feature > > get_features_in_square(double top_left_x, double top_left_y, double size_meters, int max_amount)
Definition: NativeLayer.cpp:473
std::list< std::shared_ptr< Feature > > get_features()
Definition: NativeLayer.cpp:370
std::shared_ptr< Feature > create_feature()
Definition: NativeLayer.cpp:147
void clear_feature_cache()
Definition: NativeLayer.cpp:309
std::list< std::shared_ptr< Feature > > get_feature_by_id(int id)
Returns the feature corresponding to the given ID.
Definition: NativeLayer.cpp:318
std::map< GUIntBig, std::list< std::shared_ptr< Feature > > > feature_cache
Definition: NativeLayer.h:91
std::list< std::shared_ptr< Feature > > get_features_by_attribute_filter(std::string filter)
Filter the features of the layer by a given SQL-like query, e.g. "attributename < 1000".
Definition: NativeLayer.cpp:329
std::list< std::shared_ptr< Feature > > get_feature_for_ogrfeature(OGRFeature *feature)
Definition: NativeLayer.cpp:216