[QGIS-trac] Re: [Quantum GIS] #2513: ftools: "join attributes by location" tool -> option "take summary of intersecting features" do not work

Quantum GIS qgis at qgis.org
Mon Mar 8 05:42:57 EST 2010


#2513: ftools: "join attributes by location" tool -> option "take summary of
intersecting features" do not work
-----------------------------------------------------+----------------------
        Reporter:  lutra                             |         Owner:  cfarmer      
            Type:  bug                               |        Status:  closed       
        Priority:  major: does not work as expected  |     Milestone:  Version 1.5.0
       Component:  Python plugins and bindings       |       Version:  HEAD         
      Resolution:  wontfix                           |      Keywords:               
Platform_version:                                    |      Platform:  All          
        Must_fix:  Yes                               |   Status_info:  0            
-----------------------------------------------------+----------------------
Changes (by lutra):

  * platform:  Debian => All

Comment:

 Hi Carson,
 thanks for the feedback.

 I am probably the one missing something, but please then help me
 understand how this option works because I'm probably get it all wrong.

 Let's do an example.

 Take a polygon with a column called "valor" and its actual value is 5

 Then take a point inside the above polygon with a column called "valor"
 and its actual value is 10.

 [[BR]]

 Looking at the "Join attributes by location" tool and at the option "take
 summary of intersecting features" I would expect to obtain (using as
 "target" the point and "join" the polygon) in the output:


 {{{
 valor SUMValor MEANValor MINValor MAXValor COUNT
 10    15       7.5       5        10       1
 }}}


 instead I always get


 {{{
 valor SUMValor MEANValor MINValor MAXValor COUNT
 10    5        5         5        5        1
 }}}


 but then I see that the output has also the SUM*,MEAN*, MIN*,MAX* columns
 for fields that are not in common between "target" and "join" (and COUNT
 is always 1), so I'm actually lost.


 Any feedback will be much appreciated.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2513#comment:2>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list