+ fix ident

This commit is contained in:
Artem Pavlenko 2012-02-20 10:53:15 +00:00
parent 256d23d5bc
commit 8e40537c48

View file

@ -36,27 +36,27 @@
namespace mapnik { namespace util { namespace mapnik { namespace util {
namespace karma = boost::spirit::karma; namespace karma = boost::spirit::karma;
bool to_wkt(std::string & wkt, mapnik::geometry_type const& geom) bool to_wkt(std::string & wkt, mapnik::geometry_type const& geom)
{ {
typedef std::back_insert_iterator<std::string> sink_type; typedef std::back_insert_iterator<std::string> sink_type;
sink_type sink(wkt); sink_type sink(wkt);
wkt_generator<sink_type> generator(true); wkt_generator<sink_type> generator(true);
bool result = karma::generate(sink, generator, geom); bool result = karma::generate(sink, generator, geom);
return result; return result;
} }
bool to_wkt(std::string & wkt, mapnik::geometry_container const& geom) bool to_wkt(std::string & wkt, mapnik::geometry_container const& geom)
{ {
typedef std::back_insert_iterator<std::string> sink_type; typedef std::back_insert_iterator<std::string> sink_type;
sink_type sink(wkt); sink_type sink(wkt);
wkt_multi_generator<sink_type> generator; wkt_multi_generator<sink_type> generator;
bool result = karma::generate(sink, generator, geom); bool result = karma::generate(sink, generator, geom);
return result; return result;
} }
}} }}
#endif // MAPNIK_GEOMETRY_TO_WKT_HPP #endif // MAPNIK_GEOMETRY_TO_WKT_HPP