NGen
|
#include <PointFeature.hpp>
Public Member Functions | |
PointFeature (const FeatureBase &feature) | |
PointFeature (const PointFeature &feature) | |
PointFeature (coordinate_t coordinate, 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 | geometry () const |
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 (int index) const |
bool | operator== (const FeatureBase &rhs) |
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) |
Protected Attributes | |
FeatureType | type |
::geojson::geometry | geom |
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 |
References geojson::FeatureBase::geom, geojson::Point, and geojson::FeatureBase::type.
|
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().
|
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().
|
inlineinherited |
References geojson::FeatureBase::geometry_collection, and geojson::get_geometry_type().
|
inline |
References geojson::FeatureBase::geom.
Referenced by PointFeature().
|
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 geojson::CollectionFeature::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(), 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==().
|
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().
|
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.
|
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 |
Referenced by 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(), PointFeature(), PointFeature(), geojson::PolygonFeature::PolygonFeature(), geojson::FeatureBase::geometry(), geojson::LineStringFeature::geometry(), geojson::MultiLineStringFeature::geometry(), geojson::MultiPointFeature::geometry(), geojson::MultiPolygonFeature::geometry(), 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 geojson::CollectionFeature::CollectionFeature(), geojson::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(), PointFeature(), PointFeature(), geojson::PolygonFeature::PolygonFeature(), geojson::FeatureBase::get_geometry_collection(), and geojson::FeatureBase::get_type().