mapnik/include/mapnik/simplify.hpp
Mathis Logemann 64054fade4 compiler independent warning ignore
Signed-off-by: Mathis Logemann <mathisloge@gmail.com>
2020-11-19 17:25:10 +01:00

33 lines
660 B
C++

#ifndef MAPNIK_SIMPLIFY_HPP
#define MAPNIK_SIMPLIFY_HPP
// mapnik
#include <mapnik/config.hpp>
// stl
#include <string>
#include <mapnik/warning.hpp>
MAPNIK_DISABLE_WARNING_PUSH
#include <mapnik/warning_ignore.hpp>
#include <boost/optional.hpp>
MAPNIK_DISABLE_WARNING_POP
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