Commit 220860da authored by Emmanuel Christophe's avatar Emmanuel Christophe

Writing text and not only numbers

parent 28d8bc89
......@@ -102,10 +102,13 @@
// mfeature->properties().insert(make_pair(std::string("name"),
// std::string("test")));
boost::put(*mfeature, "name", mapnik::value("test"));
// boost::put(*mfeature, "name", mapnik::value("test"));
mapnik::transcoder tr("ISO-8859");
boost::put(*mfeature, "name", tr.transcode("test"));
boost::put(*mfeature, "name2", 10);
std::cout << mfeature->props().size() << std::endl;
std::cout << (*mfeature)["name"] << std::endl;
std::cout << " -> " << (*mfeature)["name"] << std::endl;
std::cout << " -> " << (*mfeature)["name2"] << std::endl;
mDatasource->push(mfeature);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment