[Qgis-developer] Announcing the vector_overlay_branch for testing

John C. Tull john.tull at wildnevada.org
Mon Mar 2 22:28:41 EST 2009


On Mar 2, 2009, at 11:40 AM, Hugentobler Marco wrote:

> Hi devs
>
> The vector overlay branch (which adds support for diagrams on maps)  
> is in a state where it can be tested. Check out the source from svn  
> with 'svn co https://svn.osgeo.org/qgis/branches/vector_overlay_branch' 
> .
>
> The new features from a user perspective are:
> - a diagram Plugin. If it is selected, there is a new tab in the  
> vector properties dialog where pie/bar/proportional symbol diagrams  
> may be selected
> - in the option dialog, there is a new tab 'overlay' where it is  
> possible to select the placement algorithm of the diagrams. The  
> central point method is the old one, the others use algorithms of  
> the PAL library. They also consider diagram objects in different  
> layers. It is planned to use these algorithms also for label placement
>
>> From a developer perspective, the branch makes the following changes:
> - It adds a new plugin type (overlay plugin) such that it is  
> possible to have the diagrams in a plugin
> - It adds the interface QgsVectorOverlay. Currently the diagram  
> overlay is the only implementation, but we are looking forward for  
> the labels...
> - The diagram plugin is new
> - The sources of the PAL library are in core
> - The placement method of QgsVectorOverlay is called in the render  
> loop in QgsMapRenderer
>
> A known issue is that the PAL library placement methods currently  
> only work for meter units, not for maps in degrees. There is work in  
> progress to change this.
>
> Regards and looking forward for your feedback,

On my machine (OS X with Qt-4.5-rc1), I get the following error during  
the build:

... (no prior errors)
[ 10%] Building CXX object src/core/CMakeFiles/qgis_core.dir/pal/ 
labelposition.o
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp: In constructor  
‘pal 
::LabelPosition 
::PolygonCostCalculator::PolygonCostCalculator(pal::LabelPosition*)’:
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
pointset.h:126: error: ‘double pal::PointSet::xmax’ is protected
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp:432: error: within this context
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
pointset.h:125: error: ‘double pal::PointSet::xmin’ is protected
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp:432: error: within this context
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
pointset.h:128: error: ‘double pal::PointSet::ymax’ is protected
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp:432: error: within this context
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
pointset.h:127: error: ‘double pal::PointSet::ymin’ is protected
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp:432: error: within this context
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp: In member function ‘void  
pal::LabelPosition::PolygonCostCalculator::update(pal::PointSet*)’:
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
pointset.h:112: error: ‘int pal::PointSet::type’ is protected
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp:459: error: within this context
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
pointset.h:182: error: ‘double pal::PointSet::getDist(double, double,  
double*, double*)’ is protected
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp:464: error: within this context
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
pointset.h:119: error: ‘pal::PointSet::PointSet(double, double)’ is  
protected
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp:465: error: within this context
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
pointset.h:132: error: ‘pal::PointSet::~PointSet()’ is protected
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp:467: error: within this context
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp: In member function ‘void  
pal::LabelPosition::PolygonCostCalculator::updatePoint(pal::PointSet*)’:
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
pointset.h:106: error: ‘double* pal::PointSet::y’ is protected
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp:473: error: within this context
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
pointset.h:105: error: ‘double* pal::PointSet::x’ is protected
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp:473: error: within this context
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
pointset.h:105: error: ‘double* pal::PointSet::x’ is protected
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp:488: error: within this context
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
pointset.h:106: error: ‘double* pal::PointSet::y’ is protected
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp:488: error: within this context
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp: In member function ‘double  
pal 
::LabelPosition::PolygonCostCalculator::updateLinePoly(pal::PointSet*)’:
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
pointset.h:112: error: ‘int pal::PointSet::type’ is protected
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp:503: error: within this context
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
pointset.h:104: error: ‘int pal::PointSet::nbPoints’ is protected
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp:503: error: within this context
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
pointset.h:104: error: ‘int pal::PointSet::nbPoints’ is protected
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp:503: error: within this context
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
pointset.h:104: error: ‘int pal::PointSet::nbPoints’ is protected
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp:507: error: within this context
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
pointset.h:105: error: ‘double* pal::PointSet::x’ is protected
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp:511: error: within this context
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
pointset.h:106: error: ‘double* pal::PointSet::y’ is protected
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp:511: error: within this context
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
pointset.h:105: error: ‘double* pal::PointSet::x’ is protected
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp:511: error: within this context
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
pointset.h:106: error: ‘double* pal::PointSet::y’ is protected
/Users/jctull/sources/qgis/vector_overlay_branch/src/core/pal/ 
labelposition.cpp:511: error: within this context
make[2]: *** [src/core/CMakeFiles/qgis_core.dir/pal/labelposition.o]  
Error 1
make[1]: *** [src/core/CMakeFiles/qgis_core.dir/all] Error 2
make: *** [all] Error 2



More information about the Qgis-developer mailing list