146 lines
3.1 KiB
Plaintext
146 lines
3.1 KiB
Plaintext
[/============================================================================
|
|
Boost.Geometry (aka GGL, Generic Geometry Library)
|
|
|
|
Copyright (c) 2007-2013 Barend Gehrels, Amsterdam, the Netherlands.
|
|
Copyright (c) 2008-2013 Bruno Lalande, Paris, France.
|
|
Copyright (c) 2009-2013 Mateusz Loskot, London, UK.
|
|
|
|
Use, modification and distribution is subject to the Boost Software License,
|
|
Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
|
http://www.boost.org/LICENSE_1_0.txt)
|
|
=============================================================================/]
|
|
|
|
|
|
[/ Generated by doxygen_xml2qbk 1.1.1, don't change, will be overwritten automatically]
|
|
[/ Generated from doxy/doxygen_output/xml/group__wkt.xml]
|
|
[section:from_wkt from_wkt]
|
|
|
|
'''<indexterm><primary>from_wkt</primary></indexterm>'''
|
|
Parses OGC Well-Known Text (WKT (Well-Known Text)) into a geometry (any geometry) and returns it.
|
|
|
|
[heading Synopsis]
|
|
``template<typename Geometry>
|
|
Geometry from_wkt(std::string const & wkt)``
|
|
|
|
[heading Parameters]
|
|
|
|
[table
|
|
[[Type] [Concept] [Name] [Description] ]
|
|
[[Geometry] [Any type fulfilling a Geometry Concept ] [ - ] [Must be specified]]
|
|
[[std::string const &] [] [wkt] [string containing WKT (Well-Known Text)]]
|
|
]
|
|
|
|
|
|
[heading Header]
|
|
Either
|
|
|
|
`#include <boost/geometry.hpp>`
|
|
|
|
|
|
Or
|
|
|
|
`#include <boost/geometry/io/wkt/read.hpp>`
|
|
|
|
[include reference/io/from_wkt.qbk]
|
|
|
|
|
|
[endsect]
|
|
|
|
[section:read_wkt read_wkt]
|
|
|
|
'''<indexterm><primary>read_wkt</primary></indexterm>'''
|
|
Parses OGC Well-Known Text (WKT (Well-Known Text)) into a geometry (any geometry)
|
|
|
|
[heading Synopsis]
|
|
``template<typename Geometry>
|
|
void read_wkt(std::string const & wkt, Geometry & geometry)``
|
|
|
|
[heading Parameters]
|
|
|
|
[table
|
|
[[Type] [Concept] [Name] [Description] ]
|
|
[[std::string const &] [] [wkt] [string containing WKT (Well-Known Text)]]
|
|
[[Geometry &] [Any type fulfilling a Geometry Concept ] [geometry] [A model of the specified concept output geometry]]
|
|
]
|
|
|
|
|
|
[heading Header]
|
|
Either
|
|
|
|
`#include <boost/geometry.hpp>`
|
|
|
|
|
|
Or
|
|
|
|
`#include <boost/geometry/io/wkt/read.hpp>`
|
|
|
|
[include reference/io/read_wkt.qbk]
|
|
|
|
|
|
[endsect]
|
|
|
|
[section:to_wkt to_wkt]
|
|
|
|
'''<indexterm><primary>to_wkt</primary></indexterm>'''
|
|
WKT-string formulating function.
|
|
|
|
[heading Synopsis]
|
|
``template<typename Geometry>
|
|
std::string to_wkt(Geometry const & geometry)``
|
|
|
|
[heading Parameters]
|
|
|
|
[table
|
|
[[Type] [Concept] [Name] [Description] ]
|
|
[[Geometry const &] [Any type fulfilling a Geometry Concept ] [geometry] [A model of the specified concept ]]
|
|
]
|
|
|
|
|
|
[heading Header]
|
|
Either
|
|
|
|
`#include <boost/geometry.hpp>`
|
|
|
|
|
|
Or
|
|
|
|
`#include <boost/geometry/io/wkt/write.hpp>`
|
|
|
|
[include reference/io/to_wkt.qbk]
|
|
|
|
|
|
[endsect]
|
|
|
|
[section:wkt wkt]
|
|
|
|
'''<indexterm><primary>wkt</primary></indexterm>'''
|
|
Main WKT-streaming function.
|
|
|
|
[heading Synopsis]
|
|
``template<typename Geometry>
|
|
wkt_manipulator<Geometry> wkt(Geometry const & geometry)``
|
|
|
|
[heading Parameters]
|
|
|
|
[table
|
|
[[Type] [Concept] [Name] [Description] ]
|
|
[[Geometry const &] [Any type fulfilling a Geometry Concept ] [geometry] [A model of the specified concept]]
|
|
]
|
|
|
|
|
|
[heading Header]
|
|
Either
|
|
|
|
`#include <boost/geometry.hpp>`
|
|
|
|
|
|
Or
|
|
|
|
`#include <boost/geometry/io/wkt/write.hpp>`
|
|
|
|
[include reference/io/wkt.qbk]
|
|
|
|
|
|
[endsect]
|
|
|