Skip to content

Commit 82448a6

Browse files
author
Dane Springmeyer
committed
fix compile against lastest mapnik
1 parent 1227cb0 commit 82448a6

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/mapnik_python.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -476,22 +476,22 @@ void render_to_file1(mapnik::Map const& map,
476476
std::ofstream file (filename.c_str(), std::ios::out|std::ios::trunc|std::ios::binary);
477477
if (!file)
478478
{
479-
throw mapnik::ImageWriterException("could not open file for writing: " + filename);
479+
throw mapnik::image_writer_exception("could not open file for writing: " + filename);
480480
}
481481
using iter_type = std::ostream_iterator<char>;
482482
iter_type output_stream_iterator(file);
483483
mapnik::svg_renderer<iter_type> ren(map,output_stream_iterator);
484484
ren.apply();
485485
#else
486-
throw mapnik::ImageWriterException("SVG backend not available, cannot write to format: " + format);
486+
throw mapnik::image_writer_exception("SVG backend not available, cannot write to format: " + format);
487487
#endif
488488
}
489489
else if (format == "pdf" || format == "svg" || format =="ps" || format == "ARGB32" || format == "RGB24")
490490
{
491491
#if defined(HAVE_CAIRO)
492492
mapnik::save_to_cairo_file(map,filename,format,1.0);
493493
#else
494-
throw mapnik::ImageWriterException("Cairo backend not available, cannot write to format: " + format);
494+
throw mapnik::image_writer_exception("Cairo backend not available, cannot write to format: " + format);
495495
#endif
496496
}
497497
else
@@ -510,7 +510,7 @@ void render_to_file2(mapnik::Map const& map,std::string const& filename)
510510
#if defined(HAVE_CAIRO)
511511
mapnik::save_to_cairo_file(map,filename,format,1.0);
512512
#else
513-
throw mapnik::ImageWriterException("Cairo backend not available, cannot write to format: " + format);
513+
throw mapnik::image_writer_exception("Cairo backend not available, cannot write to format: " + format);
514514
#endif
515515
}
516516
else
@@ -533,22 +533,22 @@ void render_to_file3(mapnik::Map const& map,
533533
std::ofstream file (filename.c_str(), std::ios::out|std::ios::trunc|std::ios::binary);
534534
if (!file)
535535
{
536-
throw mapnik::ImageWriterException("could not open file for writing: " + filename);
536+
throw mapnik::image_writer_exception("could not open file for writing: " + filename);
537537
}
538538
using iter_type = std::ostream_iterator<char>;
539539
iter_type output_stream_iterator(file);
540540
mapnik::svg_renderer<iter_type> ren(map,output_stream_iterator,scale_factor);
541541
ren.apply();
542542
#else
543-
throw mapnik::ImageWriterException("SVG backend not available, cannot write to format: " + format);
543+
throw mapnik::image_writer_exception("SVG backend not available, cannot write to format: " + format);
544544
#endif
545545
}
546546
else if (format == "pdf" || format == "svg" || format =="ps" || format == "ARGB32" || format == "RGB24")
547547
{
548548
#if defined(HAVE_CAIRO)
549549
mapnik::save_to_cairo_file(map,filename,format,scale_factor);
550550
#else
551-
throw mapnik::ImageWriterException("Cairo backend not available, cannot write to format: " + format);
551+
throw mapnik::image_writer_exception("Cairo backend not available, cannot write to format: " + format);
552552
#endif
553553
}
554554
else

0 commit comments

Comments
 (0)