Permalink
Browse files

Fixed clipping error for point layers (#5652).

  • Loading branch information...
sdlime committed Aug 29, 2018
1 parent 747eea1 commit dbd43dd54969d1df798c2f0598f37d9dfc9a750b
Showing with 1 addition and 1 deletion.
  1. +1 −1 mapmvt.c
@@ -158,7 +158,7 @@ static int mvtClipShape(shapeObj *shape, int layer_type, int buffer, int mvt_lay
}
/* 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))
if(shape->numlines > 0 && (layer_type == MS_LAYER_POINT || (shape->bounds.minx != shape->bounds.maxx || shape->bounds.miny != shape->bounds.maxy)))
return MS_SUCCESS;
else
return MS_FAILURE;

0 comments on commit dbd43dd

Please sign in to comment.