Permalink
Browse files

Update mapmvt.c

Reverse Geometry with mvtReverseRingDirection only if MS_LAYER_POLYGON, trying to solve sdlime/mvt-demo#2
  • Loading branch information...
fminuti committed May 17, 2017
1 parent c4da16b commit d4468c2c73610c2bd46a51256efbe4177003c83e
Showing with 1 addition and 1 deletion.
  1. +1 −1 mapmvt.c
@@ -107,7 +107,7 @@ static int mvtTransformShape(shapeObj *shape, rectObj *extent, int layer_type, i
is_outer_ring = msIsOuterRing(shape, i);
ring_direction = mvtGetRingDirection(&shape->line[i]);
if(((ring_direction != MS_DIRECTION_INVALID_RING) && ((is_outer_ring && ring_direction != MS_DIRECTION_CLOCKWISE) || (!is_outer_ring && ring_direction != MS_DIRECTION_COUNTERCLOCKWISE))))
if( (layer_type==MS_LAYER_POLYGON) && ((ring_direction != MS_DIRECTION_INVALID_RING) && ((is_outer_ring && ring_direction != MS_DIRECTION_CLOCKWISE) || (!is_outer_ring && ring_direction != MS_DIRECTION_COUNTERCLOCKWISE))))
mvtReverseRingDirection(&shape->line[i]);
}

0 comments on commit d4468c2

Please sign in to comment.