fix repeated labels on curved lines when label width > repeat distance

This commit is contained in:
nirvn 2016-08-10 17:33:35 +07:00
parent 56400b147b
commit fb346ecf4f

View File

@ -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 );