NGen
Loading...
Searching...
No Matches
HY_Features_Attributes_Test Class Reference

Reading the hydrofabric attributes a catchment is realized from. More...

+ Inheritance diagram for HY_Features_Attributes_Test:
+ Collaboration diagram for HY_Features_Attributes_Test:

Static Protected Member Functions

static geojson::polygon_t unitSquare ()
 A square degree of WGS84, as a ring boost::geometry will accept.
 
static geojson::Feature polygonFeature (geojson::PropertyMap properties)
 A catchment feature carrying the given properties and a single-polygon geometry.
 
static geojson::Feature multiPolygonFeature (geojson::PropertyMap properties)
 A catchment feature with the given properties and a two-ring multipolygon face.
 
static geojson::Feature facelessFeature (geojson::PropertyMap properties)
 A catchment feature with the given properties and no face to measure.
 
static geojson::PropertyMap withArea (const std::string &key, double value)
 

Detailed Description

Reading the hydrofabric attributes a catchment is realized from.

GeoPackage is the current input format and GeoJSON remains supported. Both are read into the same geojson::Feature, in WGS84 either way, so these cases stand for both; what differs between them is how an attribute is spelled, which is the subject of the first cases here.

Member Function Documentation

◆ facelessFeature()

static geojson::Feature HY_Features_Attributes_Test::facelessFeature ( geojson::PropertyMap properties)
inlinestaticprotected

A catchment feature with the given properties and no face to measure.

◆ multiPolygonFeature()

static geojson::Feature HY_Features_Attributes_Test::multiPolygonFeature ( geojson::PropertyMap properties)
inlinestaticprotected

A catchment feature with the given properties and a two-ring multipolygon face.

References unitSquare().

◆ polygonFeature()

static geojson::Feature HY_Features_Attributes_Test::polygonFeature ( geojson::PropertyMap properties)
inlinestaticprotected

A catchment feature carrying the given properties and a single-polygon geometry.

References unitSquare().

◆ unitSquare()

static geojson::polygon_t HY_Features_Attributes_Test::unitSquare ( )
inlinestaticprotected

A square degree of WGS84, as a ring boost::geometry will accept.

Referenced by multiPolygonFeature(), and polygonFeature().

◆ withArea()

static geojson::PropertyMap HY_Features_Attributes_Test::withArea ( const std::string & key,
double value )
inlinestaticprotected

The documentation for this class was generated from the following file: