Skip to content
Permalink
Browse files

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
  • Loading branch information
wonder
wonder committed Jul 30, 2009
1 parent 6e3bafe commit 5e2c1f86586e0266be04cadf7281877779cbdd0f
@@ -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 );
@@ -144,7 +143,6 @@ namespace pal

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

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

0 comments on commit 5e2c1f8

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