2012-08-16 14:53:38 +00:00
|
|
|
#ifndef MAPNIK_SIMPLIFY_HPP
|
|
|
|
#define MAPNIK_SIMPLIFY_HPP
|
|
|
|
|
2013-01-04 02:06:07 +00:00
|
|
|
// mapnik
|
|
|
|
#include <mapnik/config.hpp>
|
2012-08-16 14:53:38 +00:00
|
|
|
|
2013-01-04 02:06:07 +00:00
|
|
|
// stl
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
// boost
|
2012-08-16 14:53:38 +00:00
|
|
|
#include <boost/optional.hpp>
|
|
|
|
|
|
|
|
namespace mapnik
|
|
|
|
{
|
|
|
|
|
|
|
|
enum simplify_algorithm_e
|
|
|
|
{
|
|
|
|
radial_distance = 0,
|
|
|
|
douglas_peucker,
|
|
|
|
visvalingam_whyatt,
|
|
|
|
zhao_saalfeld
|
|
|
|
};
|
|
|
|
|
|
|
|
MAPNIK_DECL boost::optional<simplify_algorithm_e> simplify_algorithm_from_string(std::string const& name);
|
|
|
|
MAPNIK_DECL boost::optional<std::string> simplify_algorithm_to_string(simplify_algorithm_e algorithm);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // MAPNIK_SIMPLIFY_HPP
|