Skip to content
Snippets Groups Projects
Commit d5062285 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

ENH: working on filters

parent 140bb04d
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ def start_element(name, attrs):
if (name == 'Rule'):
fout.write("{\nmapnik::rule_type rule;\n")
if (name == 'Filter'):
fout.write("mapnik::filter_ptr filt = mapnik::create_filter(\"")
fout.write("rule.set_filter(mapnik::create_filter(\"")
writeNextCharData=1
if (name == 'MaxScaleDenominator'):
fout.write("rule.set_max_scale(")
......@@ -57,8 +57,7 @@ def end_element(name):
if (name == 'Rule'):
fout.write("style.add_rule(rule);\n}\n")
if (name == 'Filter'):
fout.write("\");\n")
fout.write("rule.set_filter(filt);\n")
fout.write("\"));\n")
writeNextCharData=0
if (name == 'MaxScaleDenominator'):
fout.write("LLU);\n");
......
This diff is collapsed.
......@@ -353,6 +353,7 @@ namespace otb
// std::cout << " -> " << (*mfeature)["name2"] << std::endl;
std::cout << "Type: " << dataNode->GetFieldAsString("type") << std::endl;
boost::put(*mfeature, "highway", tr.transcode((dataNode->GetFieldAsString("type")).c_str()));
mDatasource->push(mfeature);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment