Skip to content

Commit 5e2c1f8

Browse files
author
wonder
committed
Much needed refactoring and code cleanups in PAL.
Removed temporary "Feat" class used for conversion of geometries from GEOS. Renamed "Feature" class to FeaturePart as it only represents on feature part. Added Feature class which contains common properties among feature parts. Greatly simplified registration of features in Layer. Simplified Layer interface. git-svn-id: http://svn.osgeo.org/qgis/branches/symbology-ng-branch@11207 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 6e3bafe commit 5e2c1f8

18 files changed

+372
-1200
lines changed

src/core/pal/costcalculator.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ namespace pal
129129
// center
130130
//cost = feat->getDistInside((this->x[0] + this->x[2])/2.0, (this->y[0] + this->y[2])/2.0 );
131131

132-
lp->feature->fetchCoordinates();
133132
pCost->update( lp->feature );
134133

135134
PointSet *extent = new PointSet( 4, bbx, bby );
@@ -144,7 +143,6 @@ namespace pal
144143

145144
lp->setCost( pCost->getCost() );
146145

147-
lp->feature->releaseCoordinates();
148146
delete pCost;
149147
}
150148

0 commit comments

Comments
 (0)