+ re-enable geojson generator
This commit is contained in:
parent
8bb6bb1d68
commit
11bc9a0311
1 changed files with 8 additions and 11 deletions
|
@ -20,13 +20,13 @@
|
|||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#define BOOST_SPIRIT_USE_PHOENIX_V3 1
|
||||
|
||||
// boost
|
||||
#include <boost/version.hpp>
|
||||
#include <mapnik/feature.hpp>
|
||||
#include <mapnik/json/geojson_generator.hpp>
|
||||
|
||||
#define BOOST_SPIRIT_USE_PHOENIX_V3 1
|
||||
|
||||
#if BOOST_VERSION >= 104700
|
||||
|
||||
#include <mapnik/json/feature_generator_grammar.hpp>
|
||||
|
@ -36,28 +36,25 @@
|
|||
namespace mapnik { namespace json {
|
||||
|
||||
feature_generator::feature_generator()
|
||||
: grammar_(0) {} // new feature_generator_grammar<sink_type>()) {}
|
||||
: grammar_(new feature_generator_grammar<sink_type>()) {}
|
||||
|
||||
feature_generator::~feature_generator() {}
|
||||
|
||||
bool feature_generator::generate(std::string & geojson, mapnik::feature_impl const& f)
|
||||
{
|
||||
//sink_type sink(geojson);
|
||||
//return karma::generate(sink, *grammar_,f);
|
||||
return false;
|
||||
sink_type sink(geojson);
|
||||
return karma::generate(sink, *grammar_,f);
|
||||
}
|
||||
|
||||
|
||||
geometry_generator::geometry_generator()
|
||||
: grammar_(0) {} //new multi_geometry_generator_grammar<sink_type>()) {}
|
||||
: grammar_(new multi_geometry_generator_grammar<sink_type>()) {}
|
||||
|
||||
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);
|
||||
return false;
|
||||
sink_type sink(geojson);
|
||||
return karma::generate(sink, *grammar_,g);
|
||||
}
|
||||
|
||||
}}
|
||||
|
|
Loading…
Reference in a new issue