1#ifndef VECTOREXTRACTOR_FEATURE_H
2#define VECTOREXTRACTOR_FEATURE_H
14 enum GeometryType { NONE, POINT, LINE, POLYGON };
17 explicit Feature(OGRFeature *feature);
24 Feature(OGRFeature *feature,
const OGRGeometry *geometry);
33 void set_attribute(
const char *name,
const char *value);
37 bool intersects_with(std::shared_ptr<Feature> other)
const;
39 GeometryType geometry_type = NONE;
41 bool is_deleted =
false;
Feature(OGRFeature *feature, const OGRGeometry *geometry)
std::map< std::string, std::string > get_attributes()
Return a map with all attribute names -> values.
Definition: Feature.cpp:11
const char * get_attribute(const char *name)
Definition: Feature.cpp:21