Stores the geometries, wrapped in features (which hold the field values / attributes) Keeps track of the fields available for the features Stores a SpatialReference.
More...
|
| | VectorLayer ()=default |
| | Construct a new incomplete Vector Layer object.
|
| |
| | VectorLayer (OGRSpatialReference spatialReference) |
| | Construct a new empty Vector Layer object.
|
| |
| constexpr size_t | size () const noexcept |
| |
| constexpr bool | isEmpty () const noexcept |
| |
| constexpr util::view_of< G > auto | getGeometries () const noexcept |
| |
| constexpr util::view_of< Feature< G > > auto | getFeatures () const noexcept |
| |
| constexpr util::view_of< Feature< G > > auto | getFeatures () noexcept |
| |
| constexpr const OGRSpatialReference & | getSpatialReference () const noexcept |
| |
| constexpr void | setSpatialReference (const OGRSpatialReference &spatialReference) noexcept |
| |
| constexpr void | addGeometry (const G &g) noexcept |
| |
| constexpr void | addGeometry (G &&g) noexcept |
| |
| constexpr void | addAllGeometry (util::forward_range_of< G > auto &&geometries) noexcept |
| |
| constexpr bool | containsGeometry (const G &g) const noexcept |
| | checks if any geometry is equal to the passed geometry WARNING: this method might be slow, since it might compare all geometries of the layer with the passed geometry
|
| |
| constexpr void | removeGeometry (const G &g) noexcept |
| |
| constexpr void | addFeature (Feature< G > &&feature) noexcept |
| |
| constexpr void | addFeature (const Feature< G > &feature) noexcept |
| |
| constexpr void | addFeatures (util::forward_range_of< Feature< G > > auto &&features) noexcept |
| |
| constexpr bool | containsFeature (const Feature< G > &feature) noexcept |
| |
| constexpr void | removeFeature (const Feature< G > &feature) noexcept |
| |
| template<FieldValueType T> |
| constexpr fishnet::Either< FieldDefinition< T >, error_type > | addField (const std::string &fieldName, const std::optional< int > &fieldID=std::nullopt) noexcept |
| | Add a field of generic type T to the layer. A field is referenced exclusively by its name.
|
| |
| constexpr fishnet::Either< FieldDefinition< int >, error_type > | addIntegerField (const std::string &fieldName, const std::optional< int > &fieldID=std::nullopt) noexcept |
| |
| constexpr fishnet::Either< FieldDefinition< double >, error_type > | addDoubleField (const std::string &fieldName, const std::optional< int > &fieldID=std::nullopt) noexcept |
| |
| constexpr fishnet::Either< FieldDefinition< std::string >, error_type > | addTextField (const std::string &fieldName, const std::optional< int > &fieldID=std::nullopt) noexcept |
| |
| constexpr fishnet::Either< FieldDefinition< size_t >, error_type > | addSizeField (const std::string &fieldName, const std::optional< int > &fieldID=std::nullopt) noexcept |
| |
| constexpr bool | hasField (const std::string &fieldName) const noexcept |
| |
| constexpr void | removeField (const std::string &fieldName) noexcept |
| |
| constexpr void | clearFields () noexcept |
| |
| template<geometry::AnyGeometry T> |
| constexpr void | copyFields (VectorLayer< T > &other) const noexcept |
| |
| template<FieldValueType T> |
| constexpr fishnet::Either< FieldDefinition< T >, error_type > | getField (const std::string &fieldName) const noexcept |
| |
| constexpr fishnet::Either< FieldDefinition< double >, error_type > | getDoubleField (const std::string &fieldName) const noexcept |
| |
| constexpr fishnet::Either< FieldDefinition< int >, error_type > | getIntegerField (const std::string &fieldName) const noexcept |
| |
| constexpr fishnet::Either< FieldDefinition< size_t >, error_type > | getSizeField (const std::string &fieldName) const noexcept |
| |
| constexpr fishnet::Either< FieldDefinition< std::string >, error_type > | getTextField (const std::string &fieldName) const noexcept |
| |
| constexpr const std::unordered_map< std::string, FieldDefinitionVariant > & | getFieldsMap () const noexcept |
| |
template<geometry::AnyGeometry G>
class fishnet::VectorLayer< G >
Stores the geometries, wrapped in features (which hold the field values / attributes) Keeps track of the fields available for the features Stores a SpatialReference.
- Template Parameters
-