Skip to content

Commit

Permalink
Use QgsLabelFeature internally by PAL
Browse files Browse the repository at this point in the history
This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
  • Loading branch information
wonder-sk committed Sep 21, 2015
1 parent 26c1e0f commit b5e4922
Show file tree
Hide file tree
Showing 9 changed files with 201 additions and 375 deletions.
2 changes: 1 addition & 1 deletion src/core/pal/costcalculator.cpp
Expand Up @@ -86,7 +86,7 @@ namespace pal
lp->setConflictsWithObstacle( true );

//scale cost by obstacle's factor
double obstacleCost = obstacle->getFeature()->obstacleFactor() * double( n );
double obstacleCost = obstacle->obstacleFactor() * double( n );

// label cost is penalized
lp->setCost( lp->cost() + obstacleCost );
Expand Down

0 comments on commit b5e4922

Please sign in to comment.