Use mapnik::value_integer for id
type in feature generator
This commit is contained in:
parent
a9d9f7ed99
commit
3a58dd89b5
2 changed files with 3 additions and 3 deletions
|
@ -86,7 +86,7 @@ struct end_container<mapnik::kv_store const>
|
||||||
|
|
||||||
BOOST_FUSION_ADAPT_ADT(
|
BOOST_FUSION_ADAPT_ADT(
|
||||||
mapnik::feature_impl,
|
mapnik::feature_impl,
|
||||||
(int, int, obj.id(), /**/)
|
(mapnik::value_integer, mapnik::value_integer, obj.id(), /**/)
|
||||||
(mapnik::geometry::geometry<double>const&, mapnik::geometry::geometry<double> const&, obj.get_geometry(),/**/)
|
(mapnik::geometry::geometry<double>const&, mapnik::geometry::geometry<double> const&, obj.get_geometry(),/**/)
|
||||||
(mapnik::kv_store const, mapnik::kv_store const, mapnik::kv_store(obj), /**/))
|
(mapnik::kv_store const, mapnik::kv_store const, mapnik::kv_store(obj), /**/))
|
||||||
|
|
||||||
|
|
|
@ -29,10 +29,10 @@ feature_generator_grammar<OutputIterator, FeatureType>::feature_generator_gramma
|
||||||
: feature_generator_grammar::base_type(feature)
|
: feature_generator_grammar::base_type(feature)
|
||||||
{
|
{
|
||||||
boost::spirit::karma::lit_type lit;
|
boost::spirit::karma::lit_type lit;
|
||||||
boost::spirit::karma::int_type int_;
|
boost::spirit::karma::long_long_type id;
|
||||||
|
|
||||||
feature = lit("{\"type\":\"Feature\"")
|
feature = lit("{\"type\":\"Feature\"")
|
||||||
<< lit(",\"id\":") << int_
|
<< lit(",\"id\":") << id
|
||||||
<< lit(",\"geometry\":") << geometry
|
<< lit(",\"geometry\":") << geometry
|
||||||
<< lit(",\"properties\":") << properties
|
<< lit(",\"properties\":") << properties
|
||||||
<< lit('}')
|
<< lit('}')
|
||||||
|
|
Loading…
Reference in a new issue