Permalink
Browse files

Add test to make sure extent (and hence geometry) isn't degenerate af…

…ter clipping.
  • Loading branch information...
sdlime committed Jul 13, 2018
1 parent 1ebf223 commit fb5b7cb274b863887ea8fc52ccea0a836b28e766
Showing with 2 additions and 1 deletion.
  1. +2 −1 mapmvt.c
@@ -157,7 +157,8 @@ static int mvtClipShape(shapeObj *shape, int layer_type, int buffer, int mvt_lay
msClipPolylineRect(shape, tile_rect);
}
if(shape->numlines>0)
/* success if at least one line and not a degenerate bounding box */
if(shape->numlines > 0 && (shape->bounds.minx != shape->bounds.maxx || shape->bounds.miny != shape->bounds.maxy))
return MS_SUCCESS;
else
return MS_FAILURE;

0 comments on commit fb5b7cb

Please sign in to comment.