Skip to content

Commit

Permalink
Much needed refactoring and code cleanups in PAL.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wonder committed Jul 30, 2009
1 parent 6e3bafe commit 5e2c1f8
Show file tree
Hide file tree
Showing 18 changed files with 372 additions and 1,200 deletions.
2 changes: 0 additions & 2 deletions src/core/pal/costcalculator.cpp
Expand Up @@ -129,7 +129,6 @@ namespace pal
// center
//cost = feat->getDistInside((this->x[0] + this->x[2])/2.0, (this->y[0] + this->y[2])/2.0 );

lp->feature->fetchCoordinates();
pCost->update( lp->feature );

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

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

lp->feature->releaseCoordinates();
delete pCost;
}

Expand Down

0 comments on commit 5e2c1f8

Please sign in to comment.