From f802a4a60bf5be3b0a069c56b495af506aa65a8c Mon Sep 17 00:00:00 2001 From: artemp Date: Wed, 8 Aug 2012 12:12:23 +0100 Subject: [PATCH] + ident --- src/json/geojson_generator.cpp | 64 +++++++++++++++++----------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/src/json/geojson_generator.cpp b/src/json/geojson_generator.cpp index 750489690..b086179ad 100644 --- a/src/json/geojson_generator.cpp +++ b/src/json/geojson_generator.cpp @@ -32,30 +32,30 @@ namespace mapnik { namespace json { - feature_generator::feature_generator() - : grammar_(new feature_generator_grammar()) {} +feature_generator::feature_generator() + : grammar_(new feature_generator_grammar()) {} - feature_generator::~feature_generator() {} +feature_generator::~feature_generator() {} - bool feature_generator::generate(std::string & geojson, mapnik::Feature const& f) - { - sink_type sink(geojson); - return karma::generate(sink, *grammar_,f); - } +bool feature_generator::generate(std::string & geojson, mapnik::Feature const& f) +{ + sink_type sink(geojson); + return karma::generate(sink, *grammar_,f); +} - geometry_generator::geometry_generator() - : grammar_(new multi_geometry_generator_grammar()) {} +geometry_generator::geometry_generator() + : grammar_(new multi_geometry_generator_grammar()) {} - geometry_generator::~geometry_generator() {} +geometry_generator::~geometry_generator() {} - bool geometry_generator::generate(std::string & geojson, mapnik::geometry_container const& g) - { - sink_type sink(geojson); - return karma::generate(sink, *grammar_,g); - } +bool geometry_generator::generate(std::string & geojson, mapnik::geometry_container const& g) +{ + sink_type sink(geojson); + return karma::generate(sink, *grammar_,g); +} - }} +}} #else @@ -65,22 +65,22 @@ namespace mapnik { namespace json { namespace mapnik { namespace json { - bool feature_generator::generate(std::string & geojson, mapnik::Feature const& f) - { - std::ostringstream s; - s << BOOST_VERSION/100000 << "." << BOOST_VERSION/100 % 1000 << "." << BOOST_VERSION % 100; - throw std::runtime_error("feature_generator::generate() requires at least boost 1.47 while your build was compiled against boost " + s.str()); - return false; - } +bool feature_generator::generate(std::string & geojson, mapnik::Feature const& f) +{ + std::ostringstream s; + s << BOOST_VERSION/100000 << "." << BOOST_VERSION/100 % 1000 << "." << BOOST_VERSION % 100; + throw std::runtime_error("feature_generator::generate() requires at least boost 1.47 while your build was compiled against boost " + s.str()); + return false; +} - bool geometry_generator::generate(std::string & geojson, mapnik::geometry_container const& g) - { - std::ostringstream s; - s << BOOST_VERSION/100000 << "." << BOOST_VERSION/100 % 1000 << "." << BOOST_VERSION % 100; - throw std::runtime_error("geometry_generator::generate() requires at least boost 1.47 while your build was compiled against boost " + s.str()); - return false; - } +bool geometry_generator::generate(std::string & geojson, mapnik::geometry_container const& g) +{ + std::ostringstream s; + s << BOOST_VERSION/100000 << "." << BOOST_VERSION/100 % 1000 << "." << BOOST_VERSION % 100; + throw std::runtime_error("geometry_generator::generate() requires at least boost 1.47 while your build was compiled against boost " + s.str()); + return false; +} - }} +}} #endif