mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
wrap raster_colorizer in mapnik ns and remove uneeded includes
This commit is contained in:
parent
7079e3266a
commit
bae28f509e
@ -24,11 +24,9 @@
|
||||
|
||||
#include <mapnik/raster_colorizer.hpp>
|
||||
#include <limits>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
using namespace std;
|
||||
using namespace mapnik;
|
||||
|
||||
namespace mapnik
|
||||
{
|
||||
|
||||
//! \brief Strings for the colorizer_mode enumeration
|
||||
static const char *colorizer_mode_strings[] = {
|
||||
@ -86,7 +84,7 @@ std::string colorizer_stop::to_string() const
|
||||
raster_colorizer::raster_colorizer(colorizer_mode mode/* = COLORIZER_LINEAR*/, const color& _color/* = color(0,0,0,0)*/)
|
||||
: default_mode_(mode)
|
||||
, default_color_(_color)
|
||||
, epsilon_(numeric_limits<float>::epsilon())
|
||||
, epsilon_(std::numeric_limits<float>::epsilon())
|
||||
{
|
||||
|
||||
}
|
||||
@ -254,3 +252,5 @@ color raster_colorizer::get_color(float value) const {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user