diff --git a/src/load_map.cpp b/src/load_map.cpp index 2a679d3dd..734776f8d 100644 --- a/src/load_map.cpp +++ b/src/load_map.cpp @@ -840,14 +840,14 @@ void map_parser::parse_symbolizer_base(symbolizer_base &sym, xml_node const &pt) } } - optional transform_wkt = pt.get_opt_attr("view-transform"); - if (transform_wkt) + optional geometry_transform_wkt = pt.get_opt_attr("geometry-transform"); + if (geometry_transform_wkt) { mapnik::transform_list_ptr tl = boost::make_shared(); - if (!mapnik::parse_transform(*tl, *transform_wkt, pt.get_tree().transform_expr_grammar)) + if (!mapnik::parse_transform(*tl, *geometry_transform_wkt, pt.get_tree().transform_expr_grammar)) { std::stringstream ss; - ss << "Could not parse transform from '" << transform_wkt << "', expected transform attribute"; + ss << "Could not parse transform from '" << geometry_transform_wkt << "', expected transform attribute"; if (strict_) throw config_error(ss.str()); // value_error here? else diff --git a/tests/data/good_maps/geometry-transform.xml b/tests/data/good_maps/geometry-transform.xml new file mode 100644 index 000000000..d27c1adfc --- /dev/null +++ b/tests/data/good_maps/geometry-transform.xml @@ -0,0 +1,50 @@ + + + + + + style + base + + ../../data/shp/world_merc + shape + + + \ No newline at end of file