void nsclient_core::settings_client::dump_path(std::string root) {
	BOOST_FOREACH(const std::string &path, get_core()->get()->get_sections(root)) {
		if (!root.empty())
			dump_path(root + "/" + path);
		else
			dump_path(path);
	}
	BOOST_FOREACH(std::string key, get_core()->get()->get_keys(root)) {
		std::cout << root << "." << key << "=" << get_core()->get()->get_string(root, key) << std::endl;
	}
Beispiel #2
0
std::string clip_line(mapnik::box2d<double> const& bbox,
                      mapnik::geometry_type & geom)
{
    using line_clipper = agg::conv_clip_polyline<mapnik::geometry_type>;
    line_clipper clipped(geom);
    clipped.clip_box(bbox.minx(),bbox.miny(),bbox.maxx(),bbox.maxy());
    return dump_path(clipped);
}
Beispiel #3
0
std::string clip_line(mapnik::box2d<double> const& bbox,
                      mapnik::path_type const& path)
{
    using line_clipper = agg::conv_clip_polyline<mapnik::vertex_adapter>;
    mapnik::vertex_adapter va(path);
    line_clipper clipped(va);
    clipped.clip_box(bbox.minx(),bbox.miny(),bbox.maxx(),bbox.maxy());
    return dump_path(clipped);
}