Quetzal-CoaTL
The Coalescence Template Library
Loading...
Searching...
No Matches
quetzal::geography Namespace Reference

Geospatial data formatting and processing. More...

Namespaces

namespace  detail
 

Classes

struct  colrow
 Grid coordinates. More...
 
class  connect_4_neighbors
 
class  connect_8_neighbors
 
struct  connect_fully
 
struct  dense
 Tag for sparse graph representation. More...
 
class  extent
 extent of a raster grid object More...
 
class  graph
 
class  graph< no_property, EdgeProperty, Representation, Directed >
 A graph class with information attached to edges. More...
 
class  graph< no_property, no_property, Representation, Directed >
 A graph class with no information attached to either vertices nor edges. More...
 
class  graph< VertexProperty, EdgeProperty, Representation, Directed >
 A graph class with information attached to vertices. More...
 
class  graph< VertexProperty, no_property, Representation, Directed >
 A graph class with information attached to vertices. More...
 
class  landscape
 Discrete spatio-temporal variations of a set of environmental variables. More...
 
struct  latlon
 Geographic coordinates. More...
 
struct  lonlat
 Geographic coordinates. More...
 
class  mirror
 Individuals can not escape the landscape's borders. More...
 
class  raster
 Discrete spatio-temporal variations of an environmental variable. More...
 
class  resolution
 Resolution of a spatial grid. More...
 
struct  rowcol
 Grid coordinates. More...
 
class  sink
 Individuals can migrate out of the landscape to a sink vertex, but can not come back. More...
 
struct  sparse
 Tag for sparse graph representation. More...
 
class  torus
 The 2D landscape becomes a 3D torus connecting opposed borders. More...
 

Concepts

concept  GridCoordinate
 Requires a type to define a row and a col member.
 
concept  Coordinate
 Requires a type to define a lat and a lon member.
 
concept  directional
 Concept to represent the directionality of edges in a graph.
 
concept  connectedness
 Concept to represent the connectedness of a graph.
 
concept  two_dimensional
 Concept to represent a 2D spatial grid.
 
concept  bounding
 Concept to represent the bounding policy of a spatial graph.
 

Typedefs

using no_property = boost::no_property
 Represents no information carried by vertices or edges of a graph.
 
using isotropy = boost::undirectedS
 Property of a process independent of the direction of movement.
 
using anisotropy = boost::directedS
 Property of a process dependent of the direction of movement.
 

Functions

template<GridCoordinate C1, GridCoordinate C2>
auto operator== (const C1 &c1, const C2 &c2)
 GridCoordinates are equality comparable.
 
template<GridCoordinate C1, GridCoordinate C2>
auto operator<=> (const C1 &c1, const C2 &c2)
 GridCoordinates are three-way comparable.
 
template<GridCoordinate C>
std::ostream & operator<< (std::ostream &stream, const C &c)
 GridCoordinates are streamable.
 
template<two_dimensional SpatialGrid, directional Directionality, class VertexProperty , class EdgeProperty , class Vicinity , class Policy >
auto from_grid (SpatialGrid const &grid, VertexProperty const &v, EdgeProperty const &e, Vicinity const &vicinity, Directionality dir, Policy const &bounding_policy)
 Spatial graph construction method.
 
template<typename Key , typename Time >
std::ostream & operator<< (std::ostream &os, const landscape< Key, Time > &l)
 
template<typename Time >
std::ostream & operator<< (std::ostream &os, const raster< Time > &r)
 

Detailed Description

Geospatial data formatting and processing.

  • This program is free software; you can redistribute it and/or modify /// it under the terms of the GNU General Public License as published by /// the Free Software Foundation; either version 2 of the License, or /// (at your option) any later version. /// ///

Function Documentation

◆ from_grid()

template<two_dimensional SpatialGrid, directional Directionality, class VertexProperty , class EdgeProperty , class Vicinity , class Policy >
auto quetzal::geography::from_grid ( SpatialGrid const &  grid,
VertexProperty const &  v,
EdgeProperty const &  e,
Vicinity const &  vicinity,
Directionality  dir,
Policy const &  bounding_policy 
)

Spatial graph construction method.

Parameters
gridA spatial grid, e.g. raster or landscape.
vAn example of information to be stored on vertices
eAn example of information to be stored on edges
vicinityA policy class giving the connectivity method to be applied
directionalityA policy class giving the directionality (isotropy or anisotropy)
boundA BoundPolicy
Returns
A graph with the desired level of connectivity

◆ operator<<()

template<GridCoordinate C>
std::ostream & quetzal::geography::operator<< ( std::ostream &  stream,
const C &  c 
)

GridCoordinates are streamable.

Coordinates are streamable.

◆ operator<=>()

template<GridCoordinate C1, GridCoordinate C2>
auto quetzal::geography::operator<=> ( const C1 &  c1,
const C2 &  c2 
)

GridCoordinates are three-way comparable.

Coordinates are three-way comparable.

◆ operator==()

template<GridCoordinate C1, GridCoordinate C2>
auto quetzal::geography::operator== ( const C1 &  c1,
const C2 &  c2 
)

GridCoordinates are equality comparable.

Coordinates are equality comparable.