Skip to content
Permalink
Browse files

Merge pull request #3374 from nirvn/label_repeat_improvement

[pal] fix repeated labels on curved lines when label width > repeat distance
  • Loading branch information
nyalldawson committed Aug 10, 2016
2 parents 58ea211 + fb346ec commit 44d6d21a3449106e8349bb77400c926afce2a1e9
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core/pal/layer.cpp
@@ -426,6 +426,7 @@ void Layer::chopFeaturesAtRepeatDistance()
double chopInterval = fpart->repeatDistance();
if ( chopInterval != 0. && GEOSGeomTypeId_r( geosctxt, geom ) == GEOS_LINESTRING )
{
chopInterval *= ceil( fpart->getLabelWidth() / fpart->repeatDistance() );

double bmin[2], bmax[2];
fpart->getBoundingBox( bmin, bmax );

0 comments on commit 44d6d21

Please sign in to comment.
You can’t perform that action at this time.