Shapes
GIS made easy, a lightweight header-only planar geometry library for Modern C++
Public Types | Public Member Functions | Friends | List of all members
simo::shapes::basic_multilinestring< T, AllocatorType > Class Template Reference
Inheritance diagram for simo::shapes::basic_multilinestring< T, AllocatorType >:
simo::shapes::basic_geometry< basic_multilinestring< T > >

Public Types

using base_type = std::vector< T, AllocatorType >
 
using point_type = typename T::point_type
 
using point_iterator = typename std::vector< T >::iterator
 
using point_const_iterator = typename std::vector< T >::const_iterator
 
using coord_type = typename T::coord_type
 
using coord_iterator = typename std::vector< coord_type >::iterator
 
using coord_const_iterator = typename std::vector< coord_type >::const_iterator
 

Public Member Functions

 basic_multilinestring (point_iterator first, point_iterator last)
 
 basic_multilinestring (point_const_iterator first, point_const_iterator last)
 
 basic_multilinestring (std::initializer_list< T > init)
 
template<typename CoordIterator , typename OffsetIterator >
 basic_multilinestring (CoordIterator coord_first, CoordIterator coord_last, OffsetIterator offset_first, OffsetIterator offset_last)
 
std::vector< std::tuple< double, double > > xy () const
 
- Public Member Functions inherited from simo::shapes::basic_geometry< basic_multilinestring< T > >
geometry_type geom_type () const noexcept
 Returns the geometry type. More...
 
std::string tagged_text () const noexcept
 Returns the geometry type as a string. More...
 
dimension_type dim () const noexcept
 Returns the dimension type for the geometry. More...
 
size_t ndim () const noexcept
 Returns the number of dimensions of the geometry. More...
 
void throw_for_invalid () const
 Raise an error if the geometry is invalid. More...
 
bool is_closed () const noexcept
 Whether the geometry is closed. More...
 
bool is_valid () const noexcept
 Whether the geometry is valid. More...
 
bounds_t bounds () const
 Returns the bounding box of the geometry. More...
 
bool has_z () const noexcept
 Whether the geometry has the z-coordinate. More...
 
bool has_m () const noexcept
 Whether the geometry has the m-coordinate (measurement coordinate) More...
 
std::string json (std::int32_t precision=-1) const
 Dumps the geojson representation of the geometry. More...
 
std::string wkt (std::int32_t precision=-1) const
 Dumps the wkt representation of the geometry. More...
 

Friends

class basic_geometry< basic_multilinestring< T > >
 for allow basic_geometry to access basic_multipoint private members
 
bool operator== (const basic_multilinestring< T > &lhs, const basic_multilinestring< T > &rhs)
 
bool operator!= (const basic_multilinestring< T > &lhs, const basic_multilinestring< T > &rhs)
 

Additional Inherited Members

- Static Public Member Functions inherited from simo::shapes::basic_geometry< basic_multilinestring< T > >
static basic_multilinestring< T > from_json (const std::string &json)
 Creates a geometry from a geojson string. More...
 
static basic_multilinestring< T > from_wkt (const std::string &wkt)
 Creates a Geometry from a wkt string. More...
 

Detailed Description

template<typename T, typename AllocatorType = std::allocator<T>>
class simo::shapes::basic_multilinestring< T, AllocatorType >

Definition at line 18 of file multilinestring.hpp.


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