Fast map matching
0.1.0
|
Core data types. More...
Classes | |
class | LineString |
Linestring geometry class. More... | |
struct | Trajectory |
Trajectory class More... | |
Typedefs | |
typedef boost::geometry::model::point< double, 2, boost::geometry::cs::cartesian > | Point |
Point class. | |
Functions | |
std::ostream & | operator<< (std::ostream &os, const FMM::CORE::LineString &rhs) |
LineString | ogr2linestring (const OGRLineString *line) |
Convert a OGRLineString to a linestring. More... | |
LineString | ogr2linestring (const OGRMultiLineString *mline) |
Convert a OGRMultiLineString to a linestring. More... | |
LineString | wkt2linestring (const std::string &wkt) |
Convert a wkt into a linestring. More... | |
OGRLineString * | linestring2ogr (const LineString &line) |
Convert a linestring into a OGRLineString. More... | |
OGRPoint * | point2ogr (const Point &p) |
Convert a point into a OGRPoint. More... | |
Core data types.
OGRLineString * FMM::CORE::linestring2ogr | ( | const LineString & | line | ) |
Convert a linestring into a OGRLineString.
line | input line |
Definition at line 48 of file geometry.cpp.
FMM::CORE::LineString FMM::CORE::ogr2linestring | ( | const OGRLineString * | line | ) |
Convert a OGRLineString to a linestring.
line | a pointer to OGRLineString |
Definition at line 19 of file geometry.cpp.
FMM::CORE::LineString FMM::CORE::ogr2linestring | ( | const OGRMultiLineString * | mline | ) |
Convert a OGRMultiLineString to a linestring.
If the multilinestring contains multiple lines, only the first linestring will be converted and returned as a result.
This function is used in reading data from shapefile.
mline | a pointer to the OGRMultiLineString |
Definition at line 29 of file geometry.cpp.
std::ostream & FMM::CORE::operator<< | ( | std::ostream & | os, |
const FMM::CORE::LineString & | rhs | ||
) |
os | an input stream |
rhs | a linestring object |
Definition at line 13 of file geometry.cpp.
OGRPoint * FMM::CORE::point2ogr | ( | const Point & | p | ) |
Convert a point into a OGRPoint.
p | input point |
Definition at line 56 of file geometry.cpp.
FMM::CORE::LineString FMM::CORE::wkt2linestring | ( | const std::string & | wkt | ) |
Convert a wkt into a linestring.
wkt | A wkt representation of a line |
Definition at line 42 of file geometry.cpp.