12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #ifndef BOOST_GEOMETRY_IO_HPP
- #define BOOST_GEOMETRY_IO_HPP
- #include <boost/geometry/io/wkt/read.hpp>
- #include <boost/geometry/io/wkt/write.hpp>
- namespace boost { namespace geometry
- {
- struct format_wkt {};
- struct format_wkb {};
- struct format_dsv {};
- #ifndef DOXYGEN_NO_DISPATCH
- namespace dispatch
- {
- template <typename Tag, typename Geometry>
- struct read
- {
- };
- template <typename Geometry>
- struct read<format_wkt, Geometry>
- {
- static inline void apply(Geometry& geometry, std::string const& wkt)
- {
- read_wkt<typename tag<Geometry>::type, Geometry>::apply(wkt, geometry);
- }
- };
- }
- #endif
- template <typename Format, typename Geometry>
- inline void read(Geometry& geometry, std::string const& wkt)
- {
- geometry::concepts::check<Geometry>();
- dispatch::read<Format, Geometry>::apply(geometry, wkt);
- }
- }}
- #endif
|