|
NGen
|
#include <CollectionFeature.hpp>
Inheritance diagram for geojson::CollectionFeature:
Collaboration diagram for geojson::CollectionFeature:Public Member Functions | |
| CollectionFeature (const FeatureBase &feature) | |
| CollectionFeature (const CollectionFeature &feature) | |
| CollectionFeature (std::vector< geojson::geometry > geometry_collection, std::string new_id="", PropertyMap new_properties=PropertyMap(), std::vector< double > new_bounding_box=std::vector< double >(), std::vector< FeatureBase * > upstream_features=std::vector< FeatureBase * >(), std::vector< FeatureBase * > downstream_features=std::vector< FeatureBase * >(), std::map< std::string, JSONProperty > members=std::map< std::string, JSONProperty >()) | |
| coordinate_t | point (int index) |
| std::vector< coordinate_t * > | points () |
| linestring_t | linestring (int index) |
| std::vector< linestring_t * > | linestrings () |
| polygon_t | polygon (int index) |
| std::vector< polygon_t * > | polygons () |
| multipoint_t | multipoint (int index) |
| std::vector< multipoint_t * > | multipoints () |
| multilinestring_t | multilinestring (int index) |
| std::vector< multilinestring_t * > | multilinestrings () |
| multipolygon_t | multipolygon (int index) |
| std::vector< multipolygon_t * > | multipolygons () |
| std::vector< geojson::geometry >::const_iterator | begin () |
| std::vector< geojson::geometry >::const_iterator | end () |
| void | visit (FeatureVisitor &visitor) override |
| FeatureType | get_type () const |
| Retrieve an indicator as to what type of feature this is. | |
| virtual void | add_origination_feature (FeatureBase *feature, bool connect=true) |
| Set a separate feature as upstream from this instance. | |
| virtual void | add_destination_feature (FeatureBase *feature, bool connect=true) |
| Set a separate feature as destination from this instance. | |
| virtual void | assign_neighbors () |
| Searches for features that share common destinations and links them. | |
| virtual void | add_neighbor_feature (FeatureBase *feature, bool connect=true) |
| Links this feature to a feature that shares a common destination. | |
| virtual JSONProperty | get_property (const std::string &key) const |
| Get a value from the set of properties. | |
| virtual void | set_id (const std::string &new_id) |
| Sets the ID for the Feature. | |
| virtual JSONProperty | get (const std::string &key) const |
| Get a foreign member value by name. | |
| virtual void | set (const std::string &key, short value) |
| Sets a foreign member value. | |
| virtual void | set (const std::string &key, int value) |
| Sets a foreign member value. | |
| virtual void | set (const std::string &key, long value) |
| Sets a foreign member value. | |
| virtual void | set (const std::string &key, float value) |
| Sets a foreign member value. | |
| virtual void | set (const std::string &key, double value) |
| Sets a foreign member value. | |
| virtual void | set (const std::string &key, std::string value) |
| Sets a foreign member value. | |
| virtual void | set (const std::string &key, JSONProperty property) |
| Sets a foreign member value. | |
| virtual bool | has_key (const std::string &key) |
| virtual std::vector< std::string > | keys () const |
| Retrieves a listing of all foreign member keys. | |
| virtual std::vector< std::string > | property_keys () const |
| Retireves a listing of all property keys. | |
| virtual bool | has_property (std::string property_name) const |
| virtual std::vector< geojson::geometry > | get_geometry_collection () const |
| Collects a collection of everything held within the inner geometry collection. | |
| std::vector< double > | get_bounding_box () const |
| Collects all values describing the bounds of this feature. | |
| const PropertyMap & | get_properties () const |
| PropertyMap & | get_properties () |
| std::string | get_id () const |
| std::string | get_id (std::string alt_id) const |
| int | get_number_of_destination_features () |
| int | get_number_of_origination_features () |
| int | get_number_of_neighbors () |
| FeatureBase * | get_destination_feature (std::string id) |
| FeatureBase * | get_origination_feature (std::string id) |
| std::vector< FeatureBase * > | origination_features () const |
| std::vector< FeatureBase * > | destination_features () const |
| std::vector< FeatureBase * > | neighbor_features () const |
| int | get_origination_length () |
| int | get_destination_length () |
| int | get_contributor_count () |
| bool | is_leaf () |
| bool | is_root () |
| template<class T > | |
| T | geometry () const |
| const std::shared_ptr< const ::geojson::geometry > & | geometry () const |
| The feature's geometry, as a shared handle. | |
| template<class T > | |
| T | geometry (int index) const |
| bool | operator== (const FeatureBase &rhs) const |
| bool | operator!= (const FeatureBase &other) |
Protected Member Functions | |
| virtual void | break_links () |
| virtual void | remove_destination (FeatureBase *feature) |
| virtual void | remove_origination (FeatureBase *feature) |
| virtual void | remove_neighbor (FeatureBase *feature) |
| void | set_geom (::geojson::geometry new_geom) |
| Give this feature a geometry, replacing rather than modifying any it already has. | |
Protected Attributes | |
| FeatureType | type |
| std::shared_ptr< const ::geojson::geometry > | geom |
| The feature's geometry, shared rather than owned outright. | |
| std::vector<::geojson::geometry > | geometry_collection |
| PropertyMap | properties |
| std::vector< double > | bounding_box |
| PropertyMap | foreign_members |
| std::string | id |
| std::vector< FeatureBase * > | origination |
| std::vector< FeatureBase * > | destination |
| std::vector< FeatureBase * > | neighbors |
|
inline |
|
inline |
|
inline |
|
inlinevirtualinherited |
Set a separate feature as destination from this instance.
| feature | The feature to link to that is destination from this instance |
| connect | Whether or not to set this instance as upstream from the newly attached destination feature |
References geojson::FeatureBase::add_origination_feature(), geojson::contains(), and geojson::FeatureBase::destination.
Referenced by geojson::FeatureBase::FeatureBase(), and geojson::FeatureBase::add_origination_feature().
|
inlinevirtualinherited |
Links this feature to a feature that shares a common destination.
| feature | A feature with a common destination |
| connect | Whether or not this feature should be linked to the neighbor as well |
References geojson::FeatureBase::add_neighbor_feature(), geojson::contains(), and geojson::FeatureBase::neighbors.
Referenced by geojson::FeatureBase::add_neighbor_feature(), and geojson::FeatureBase::assign_neighbors().
|
inlinevirtualinherited |
Set a separate feature as upstream from this instance.
| feature | The feature to link to that is upstream from this instance |
| connect | Whether or not to set this instance as downsteam from the newly attached upstream feature |
References geojson::FeatureBase::add_destination_feature(), and geojson::FeatureBase::origination.
Referenced by geojson::FeatureBase::FeatureBase(), and geojson::FeatureBase::add_destination_feature().
|
inlinevirtualinherited |
Searches for features that share common destinations and links them.
References geojson::FeatureBase::add_neighbor_feature(), geojson::FeatureBase::destination, and geojson::FeatureBase::destination_features().
|
inline |
|
inlineprotectedvirtualinherited |
References geojson::FeatureBase::destination, geojson::FeatureBase::neighbors, and geojson::FeatureBase::origination.
Referenced by geojson::FeatureBase::~FeatureBase().
|
inlineinherited |
References geojson::FeatureBase::destination.
Referenced by geojson::FeatureBase::FeatureBase(), geojson::FeatureBase::FeatureBase(), and geojson::FeatureBase::assign_neighbors().
|
inline |
|
inlineinherited |
References geojson::FeatureBase::geom, and geojson::get_geometry_type().
|
inlineinherited |
The feature's geometry, as a shared handle.
A handle rather than the geometry itself: a geometry may hold many thousands of coordinates, and nothing reading one should be made to copy it. Holding it keeps the geometry alive, so the feature and the collection it was parsed from may be released while the geometry stays readable.
References geojson::FeatureBase::geom.
|
inlineinherited |
References geojson::FeatureBase::geometry_collection, and geojson::get_geometry_type().
|
inlinevirtualinherited |
Get a foreign member value by name.
| key | The name of the foreign member whose value to look for |
References geojson::FeatureBase::foreign_members.
Referenced by geojson::FeatureBase::FeatureBase(), and geojson::FeatureBase::operator==().
|
inlineinherited |
Collects all values describing the bounds of this feature.
References geojson::FeatureBase::bounding_box.
Referenced by geojson::FeatureBase::FeatureBase().
|
inlineinherited |
References geojson::contains(), and geojson::FeatureBase::origination.
|
inlineinherited |
References geojson::FeatureBase::destination.
|
inlineinherited |
References geojson::FeatureBase::destination, and geojson::FeatureBase::is_leaf().
|
inlinevirtualinherited |
Collects a collection of everything held within the inner geometry collection.
| Runtime | Error if this feature isn't a collection type |
References geojson::FeatureBase::geometry_collection, geojson::GeometryCollection, and geojson::FeatureBase::type.
Referenced by CollectionFeature(), and geojson::FeatureBase::FeatureBase().
|
inlineinherited |
References geojson::FeatureBase::id.
Referenced by geojson::FeatureBase::FeatureBase(), and geojson::FeatureBase::operator==().
|
inlineinherited |
|
inlineinherited |
References geojson::FeatureBase::destination.
|
inlineinherited |
References geojson::FeatureBase::neighbors.
|
inlineinherited |
References geojson::FeatureBase::origination.
|
inlineinherited |
References geojson::FeatureBase::origination.
|
inlineinherited |
References geojson::FeatureBase::is_root(), and geojson::FeatureBase::origination.
|
inlineinherited |
References geojson::FeatureBase::properties.
|
inlineinherited |
References geojson::FeatureBase::properties.
Referenced by geojson::FeatureBase::FeatureBase().
|
inlinevirtualinherited |
Get a value from the set of properties.
| key | The name of the property to get |
References geojson::FeatureBase::properties.
Referenced by geojson::FeatureBase::get_id(), and geojson::FeatureBase::operator==().
|
inlineinherited |
Retrieve an indicator as to what type of feature this is.
References geojson::FeatureBase::type.
Referenced by geojson::FeatureBase::FeatureBase(), geojson::LineStringFeature::LineStringFeature(), geojson::MultiLineStringFeature::MultiLineStringFeature(), geojson::MultiPointFeature::MultiPointFeature(), geojson::PointFeature::PointFeature(), and geojson::FeatureBase::operator==().
|
inlinevirtualinherited |
References geojson::FeatureBase::keys().
|
inlinevirtualinherited |
References geojson::FeatureBase::property_keys().
|
inlineinherited |
References geojson::FeatureBase::destination.
Referenced by geojson::FeatureBase::get_destination_length().
|
inlineinherited |
References geojson::FeatureBase::origination.
Referenced by geojson::FeatureBase::get_origination_length().
|
inlinevirtualinherited |
Retrieves a listing of all foreign member keys.
References geojson::FeatureBase::foreign_members.
Referenced by geojson::FeatureBase::FeatureBase(), geojson::FeatureBase::has_key(), and geojson::FeatureBase::operator==().
|
inline |
References geojson::get_geometry_type().
|
inline |
References geojson::get_geometry_type().
|
inline |
References geojson::get_geometry_type().
|
inline |
|
inline |
References geojson::get_geometry_type().
|
inline |
|
inline |
References geojson::get_geometry_type().
|
inline |
|
inlineinherited |
References geojson::FeatureBase::neighbors.
|
inlineinherited |
References geojson::FeatureBase::operator==().
|
inlineinherited |
References geojson::FeatureBase::bounding_box, geojson::contains(), geojson::FeatureBase::destination, geojson::FeatureBase::geom, geojson::FeatureBase::geometry_collection, geojson::GeometryCollection, geojson::FeatureBase::get(), geojson::FeatureBase::get_id(), geojson::FeatureBase::get_property(), geojson::FeatureBase::get_type(), geojson::FeatureBase::keys(), geojson::FeatureBase::neighbors, geojson::FeatureBase::origination, and geojson::FeatureBase::property_keys().
Referenced by geojson::FeatureBase::operator!=().
|
inlineinherited |
References geojson::FeatureBase::origination.
Referenced by geojson::FeatureBase::FeatureBase(), and geojson::FeatureBase::FeatureBase().
|
inline |
References geojson::get_geometry_type().
|
inline |
References geojson::get_geometry_type().
|
inline |
References geojson::get_geometry_type().
|
inline |
References geojson::get_geometry_type().
|
inlinevirtualinherited |
Retireves a listing of all property keys.
References geojson::FeatureBase::properties, and geojson::FeatureBase::property_keys().
Referenced by geojson::FeatureBase::has_property(), geojson::FeatureBase::operator==(), and geojson::FeatureBase::property_keys().
|
inlineprotectedvirtualinherited |
References geojson::FeatureBase::destination.
|
inlineprotectedvirtualinherited |
References geojson::FeatureBase::neighbors.
|
inlineprotectedvirtualinherited |
References geojson::FeatureBase::origination.
|
inlinevirtualinherited |
Sets a foreign member value.
| key | The name of the value to set |
| value | The value to set |
References geojson::FeatureBase::foreign_members.
|
inlinevirtualinherited |
Sets a foreign member value.
| key | The name of the value to set |
| value | The value to set |
References geojson::FeatureBase::foreign_members.
|
inlinevirtualinherited |
Sets a foreign member value.
| key | The name of the value to set |
| value | The value to set |
References geojson::FeatureBase::foreign_members.
|
inlinevirtualinherited |
Sets a foreign member value.
| key | The name of the value to set |
| value | The value to set |
References geojson::FeatureBase::foreign_members.
|
inlinevirtualinherited |
Sets a foreign member value.
| key | The name of the value to set |
| value | The value to set |
References geojson::FeatureBase::foreign_members.
|
inlinevirtualinherited |
Sets a foreign member value.
| key | The name of the value to set |
| value | The value to set |
References geojson::FeatureBase::foreign_members.
Referenced by geojson::FeatureBase::FeatureBase().
|
inlinevirtualinherited |
Sets a foreign member value.
| key | The name of the value to set |
| value | The value to set |
References geojson::FeatureBase::foreign_members.
|
inlineprotectedinherited |
Give this feature a geometry, replacing rather than modifying any it already has.
Referenced by geojson::LineStringFeature::LineStringFeature(), geojson::LineStringFeature::LineStringFeature(), geojson::MultiLineStringFeature::MultiLineStringFeature(), geojson::MultiLineStringFeature::MultiLineStringFeature(), geojson::MultiPointFeature::MultiPointFeature(), geojson::MultiPointFeature::MultiPointFeature(), geojson::MultiPolygonFeature::MultiPolygonFeature(), geojson::MultiPolygonFeature::MultiPolygonFeature(), geojson::PointFeature::PointFeature(), geojson::PointFeature::PointFeature(), and geojson::PolygonFeature::PolygonFeature().
|
inlinevirtualinherited |
Sets the ID for the Feature.
| new_id | The new identifier for this feature |
|
inlineoverridevirtual |
Implements geojson::FeatureBase.
References geojson::FeatureVisitor::visit().
|
protectedinherited |
|
protectedinherited |
Referenced by geojson::FeatureBase::FeatureBase(), geojson::FeatureBase::add_destination_feature(), geojson::FeatureBase::assign_neighbors(), geojson::FeatureBase::break_links(), geojson::FeatureBase::destination_features(), geojson::FeatureBase::get_destination_feature(), geojson::FeatureBase::get_destination_length(), geojson::FeatureBase::get_number_of_destination_features(), geojson::FeatureBase::is_leaf(), geojson::FeatureBase::operator==(), and geojson::FeatureBase::remove_destination().
|
protectedinherited |
Referenced by geojson::FeatureBase::FeatureBase(), geojson::FeatureBase::get(), geojson::FeatureBase::keys(), geojson::FeatureBase::set(), geojson::FeatureBase::set(), geojson::FeatureBase::set(), geojson::FeatureBase::set(), geojson::FeatureBase::set(), geojson::FeatureBase::set(), and geojson::FeatureBase::set().
|
protectedinherited |
The feature's geometry, shared rather than owned outright.
A geometry may hold many thousands of coordinates, and a caller that only reads one should not be made to hold a copy.
Const because it is replaced, never modified: a feature given a new geometry points at a new one through set_geom, leaving whoever still holds the previous one unaffected. Copies of a feature therefore share until one of them is given a different geometry, which keeps them as independent as the rest of this type's value semantics already are.
Referenced by geojson::FeatureBase::FeatureBase(), geojson::FeatureBase::geometry(), geojson::LineStringFeature::geometry(), geojson::MultiLineStringFeature::geometry(), geojson::MultiPointFeature::geometry(), geojson::MultiPolygonFeature::geometry(), geojson::PointFeature::geometry(), geojson::PolygonFeature::geometry(), and geojson::FeatureBase::operator==().
|
protectedinherited |
|
protectedinherited |
Referenced by geojson::FeatureBase::get_id(), and geojson::FeatureBase::get_id().
|
protectedinherited |
|
protectedinherited |
Referenced by geojson::FeatureBase::FeatureBase(), geojson::FeatureBase::add_origination_feature(), geojson::FeatureBase::break_links(), geojson::FeatureBase::get_contributor_count(), geojson::FeatureBase::get_number_of_origination_features(), geojson::FeatureBase::get_origination_feature(), geojson::FeatureBase::get_origination_length(), geojson::FeatureBase::is_root(), geojson::FeatureBase::operator==(), geojson::FeatureBase::origination_features(), and geojson::FeatureBase::remove_origination().
|
protectedinherited |
|
protectedinherited |
Referenced by CollectionFeature(), CollectionFeature(), geojson::FeatureBase::FeatureBase(), geojson::LineStringFeature::LineStringFeature(), geojson::LineStringFeature::LineStringFeature(), geojson::MultiLineStringFeature::MultiLineStringFeature(), geojson::MultiLineStringFeature::MultiLineStringFeature(), geojson::MultiPointFeature::MultiPointFeature(), geojson::MultiPointFeature::MultiPointFeature(), geojson::MultiPolygonFeature::MultiPolygonFeature(), geojson::MultiPolygonFeature::MultiPolygonFeature(), geojson::PointFeature::PointFeature(), geojson::PointFeature::PointFeature(), geojson::PolygonFeature::PolygonFeature(), geojson::SentinelFeature::SentinelFeature(), geojson::FeatureBase::get_geometry_collection(), and geojson::FeatureBase::get_type().