added check for num_points in line/polygon symbolizers:
1. don't bother with line_symbolizer unless at least 2 points 2. at least 3 points for polygon_symbolizer
This commit is contained in:
parent
6b7d874ff3
commit
c97fb0bf57
2 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ namespace mapnik
|
|||
typedef agg::renderer_scanline_aa_solid<ren_base> renderer;
|
||||
|
||||
geometry_ptr const& geom=feat.get_geometry();
|
||||
if (geom)
|
||||
if (geom && geom->num_points() > 1)
|
||||
{
|
||||
path_type path(t,*geom);
|
||||
agg::row_ptr_cache<agg::int8u> buf(image.raw_data(),image.width(),image.height(),
|
||||
|
|
|
@ -46,7 +46,7 @@ namespace mapnik
|
|||
typedef agg::renderer_scanline_aa_solid<ren_base> renderer;
|
||||
|
||||
geometry_ptr const& geom=feat.get_geometry();
|
||||
if (geom)
|
||||
if (geom && geom->num_points() > 2)
|
||||
{
|
||||
path_type path(t,*geom);
|
||||
agg::row_ptr_cache<agg::int8u> buf(image.raw_data(),image.width(),image.height(),
|
||||
|
|
Loading…
Reference in a new issue