Boost-Geometry-Utils
view release on metacpan or search on metacpan
src/boost/blank.hpp view on Meta::CPAN
inline bool operator<(const blank&, const blank&)
{
return false;
}
inline bool operator>(const blank&, const blank&)
{
return false;
}
// streaming support
//
#if !defined(BOOST_NO_IOSTREAM)
BOOST_TEMPLATED_STREAM_TEMPLATE(E,T)
inline BOOST_TEMPLATED_STREAM(ostream, E,T)& operator<<(
BOOST_TEMPLATED_STREAM(ostream, E,T)& out
, const blank&
)
{
// (output nothing)
src/boost/geometry/io/dsv/write.hpp view on Meta::CPAN
private:
Geometry const& m_geometry;
dsv_settings m_settings;
};
}} // namespace detail::dsv
#endif // DOXYGEN_NO_DETAIL
/*!
\brief Main DSV-streaming function
\details DSV stands for Delimiter Separated Values. Geometries can be streamed
as DSV. There are defaults for all separators.
\note Useful for examples and testing purposes
\note With this function GeoJSON objects can be created, using the right
delimiters
\ingroup utility
*/
template <typename Geometry>
inline detail::dsv::dsv_manipulator<Geometry> dsv(Geometry const& geometry
, std::string const& coordinate_separator = ", "
src/boost/geometry/io/wkt/stream.hpp view on Meta::CPAN
// 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)
#ifndef BOOST_GEOMETRY_IO_WKT_STREAM_HPP
#define BOOST_GEOMETRY_IO_WKT_STREAM_HPP
#include <boost/geometry/io/wkt/write.hpp>
// This short file contains only one manipulator, streaming as WKT
// Don't include this in any standard-included header file.
// Don't use namespace boost::geometry, to enable the library to stream custom
// geometries which are living outside the namespace boost::geometry
/*!
\brief Streams a geometry as Well-Known Text
\ingroup wkt
*/
template<typename Char, typename Traits, typename Geometry>
src/boost/geometry/io/wkt/write.hpp view on Meta::CPAN
geometry::convert(box, ring);
os << "POLYGON(";
wkt_sequence<ring_type>::apply(os, ring);
os << ")";
}
private:
inline wkt_box()
{
// Only streaming of boxes with two dimensions is support, otherwise it is a polyhedron!
//assert_dimension<B, 2>();
}
};
template <typename Segment>
struct wkt_segment
{
typedef typename point_type<Segment>::type point_type;
src/boost/geometry/io/wkt/write.hpp view on Meta::CPAN
>::apply(os, m.m_geometry);
os.flush();
return os;
}
private:
Geometry const& m_geometry;
};
/*!
\brief Main WKT-streaming function
\ingroup wkt
\par Example:
Small example showing how to use the wkt helper function
\dontinclude doxygen_1.cpp
\skip example_as_wkt_vector
\line {
\until }
*/
template <typename Geometry>
inline wkt_manipulator<Geometry> wkt(Geometry const& geometry)
( run in 0.237 second using v1.01-cache-2.11-cpan-a5abf4f5562 )