2#include "LineFeature.h"
3#include "gdal-includes.h"
13 bool is_valid()
const;
15 void write_feature_cache_to_ram_layer();
19 void save_modified_layer(std::string path);
28 void add_field(std::string name);
30 void remove_field(std::string name);
54 double top_left_y,
double size_meters,
73 bool is_feature_deleted(OGRFeature *feature);
88 int disk_feature_count;
89 int ram_feature_count;
92 std::list<std::shared_ptr<Feature> > get_features_inside_geometry(OGRGeometry *geometry,
int max_amount);
Definition: NativeLayer.h:7
std::list< std::shared_ptr< Feature > > get_features_near_position(double pos_x, double pos_y, double radius, int max_amount)
Definition: NativeLayer.cpp:411
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:425
std::list< std::shared_ptr< Feature > > get_features()
Definition: NativeLayer.cpp:338
std::shared_ptr< Feature > create_feature()
Definition: NativeLayer.cpp:135
void clear_feature_cache()
Definition: NativeLayer.cpp:290
std::list< std::shared_ptr< Feature > > get_feature_by_id(int id)
Returns the feature corresponding to the given ID.
Definition: NativeLayer.cpp:295
std::map< GUIntBig, std::list< std::shared_ptr< Feature > > > feature_cache
Definition: NativeLayer.h:86
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:301
std::list< std::shared_ptr< Feature > > get_feature_for_ogrfeature(OGRFeature *feature)
Definition: NativeLayer.cpp:200