mirror of
https://github.com/openstreetmap/mod_tile.git
synced 2025-08-12 02:41:14 +00:00
check mapnik version, compatibility with 0.8
This commit is contained in:
@ -1,3 +1,4 @@
|
|||||||
|
#include <mapnik/version.hpp>
|
||||||
#include <mapnik/map.hpp>
|
#include <mapnik/map.hpp>
|
||||||
#include <mapnik/datasource_cache.hpp>
|
#include <mapnik/datasource_cache.hpp>
|
||||||
#include <mapnik/agg_renderer.hpp>
|
#include <mapnik/agg_renderer.hpp>
|
||||||
@ -28,7 +29,11 @@
|
|||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if MAPNIK_VERSION >= 800
|
||||||
|
#define Image32 image_32
|
||||||
|
#define ImageData32 image_data_32
|
||||||
|
#define Envelope box2d
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace mapnik;
|
using namespace mapnik;
|
||||||
#define DEG_TO_RAD (M_PI/180)
|
#define DEG_TO_RAD (M_PI/180)
|
||||||
|
Reference in New Issue
Block a user