formatting
This commit is contained in:
parent
b6f02e6d4d
commit
10a14bbda3
1 changed files with 75 additions and 64 deletions
|
@ -84,7 +84,11 @@ void export_inmem_metawriter();
|
|||
static Pycairo_CAPI_t *Pycairo_CAPI;
|
||||
#endif
|
||||
|
||||
void render(const mapnik::Map& map,mapnik::image_32& image, double scale_factor = 1.0 , unsigned offset_x = 0u , unsigned offset_y = 0u)
|
||||
void render(const mapnik::Map& map,
|
||||
mapnik::image_32& image,
|
||||
double scale_factor = 1.0,
|
||||
unsigned offset_x = 0u,
|
||||
unsigned offset_y = 0u)
|
||||
{
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
try
|
||||
|
@ -98,11 +102,14 @@ void render(const mapnik::Map& map,mapnik::image_32& image, double scale_factor
|
|||
throw;
|
||||
}
|
||||
Py_END_ALLOW_THREADS
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(HAVE_CAIRO) && defined(HAVE_PYCAIRO)
|
||||
|
||||
void render3(const mapnik::Map& map,PycairoSurface* surface, unsigned offset_x = 0, unsigned offset_y = 0)
|
||||
void render3(const mapnik::Map& map,
|
||||
PycairoSurface* surface,
|
||||
unsigned offset_x = 0,
|
||||
unsigned offset_y = 0)
|
||||
{
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
try
|
||||
|
@ -117,9 +124,9 @@ void render3(const mapnik::Map& map,PycairoSurface* surface, unsigned offset_x =
|
|||
throw;
|
||||
}
|
||||
Py_END_ALLOW_THREADS
|
||||
}
|
||||
}
|
||||
|
||||
void render4(const mapnik::Map& map,PycairoSurface* surface)
|
||||
void render4(const mapnik::Map& map, PycairoSurface* surface)
|
||||
{
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
try
|
||||
|
@ -134,9 +141,12 @@ void render4(const mapnik::Map& map,PycairoSurface* surface)
|
|||
throw;
|
||||
}
|
||||
Py_END_ALLOW_THREADS
|
||||
}
|
||||
}
|
||||
|
||||
void render5(const mapnik::Map& map,PycairoContext* context, unsigned offset_x = 0, unsigned offset_y = 0)
|
||||
void render5(const mapnik::Map& map,
|
||||
PycairoContext* context,
|
||||
unsigned offset_x = 0,
|
||||
unsigned offset_y = 0)
|
||||
{
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
try
|
||||
|
@ -151,9 +161,9 @@ void render5(const mapnik::Map& map,PycairoContext* context, unsigned offset_x =
|
|||
throw;
|
||||
}
|
||||
Py_END_ALLOW_THREADS
|
||||
}
|
||||
}
|
||||
|
||||
void render6(const mapnik::Map& map,PycairoContext* context)
|
||||
void render6(const mapnik::Map& map, PycairoContext* context)
|
||||
{
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
try
|
||||
|
@ -168,10 +178,11 @@ void render6(const mapnik::Map& map,PycairoContext* context)
|
|||
throw;
|
||||
}
|
||||
Py_END_ALLOW_THREADS
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
void render_tile_to_file(const mapnik::Map& map,
|
||||
unsigned offset_x, unsigned offset_y,
|
||||
unsigned width, unsigned height,
|
||||
|
|
Loading…
Reference in a new issue