[Qgis-user] Zonal Statistics Computation

Leo Kris Palao lk.palao at gmail.com
Tue Mar 17 01:01:46 PDT 2015


Hi Stefan,

Yes, I read the issue in the link that you gave me. In one thread, there is
an issue of both zonal statistics plugin and zonal statistics in processing
toolbox are not working. But in my case the ZonalStats Plugin is working
and the other is not. I browsed my data again and found that some polygons
are not in the middle of the raster. However, it seems that ZonalStats
plugin considers the polygons even though other the polygons are not in the
center of the raster. Is there a difference between the algorithm between
the two ZonalStats option. By the way, I am using the ZonalStatistics
under *QGIS
 geoalgorithms* > *Raster tools*.

Is there something that I missed from the threads that you shared with me?

Thanks for the help.

-Leo

On Fri, Mar 13, 2015 at 8:38 AM, Leo Kris Palao <lk.palao at gmail.com> wrote:

> HI Stefan,
>
> Yes, I read the issue in the link that you gave me. In one thread, there
> is an issue of both zonal statistics plugin and zonal statistics in
> processing toolbox are not working. But in my case the ZonalStats Plugin is
> working and the other is not. I browsed my data again and found that some
> polygons are not in the middle of the raster. However, it seems that
> ZonalStats plugin considers the polygons even though other the polygons are
> not in the center of the raster. Is there a difference between the
> algorithm between the two ZonalStats option. By the way, I am using the
> ZonalStatistics under *QGIS  geoalgorithms* > *Raster tools*.
>
> Is there something that I missed from the threads that you shared with me?
>
> Thanks for the help.
>
> -Leo
>
> On Fri, Mar 13, 2015 at 3:01 AM, <qgis-user-request at lists.osgeo.org>
> wrote:
>
>> Send Qgis-user mailing list submissions to
>>         qgis-user at lists.osgeo.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>         http://lists.osgeo.org/mailman/listinfo/qgis-user
>> or, via email, send a message with subject or body 'help' to
>>         qgis-user-request at lists.osgeo.org
>>
>> You can reach the person managing the list at
>>         qgis-user-owner at lists.osgeo.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Qgis-user digest..."
>>
>>
>> Today's Topics:
>>
>>    1. Re: Customised attributes form (emmexx)
>>    2. Re: Customised attributes form (Matthias Kuhn)
>>    3. Re: Zonal Statistics Computation (Blumentrath, Stefan)
>>    4. Attribute copy from point to polygon (Joris Hintjens)
>>    5. Re: Customised attributes form (emmexx)
>>    6. Re: Attribute copy from point to polygon (Raymond Nijssen)
>>    7. Cannot activate grass (Lu?s de Sousa)
>>    8. Re: Cannot activate grass (Carlos Cerd?n)
>>    9. Re: Problem loading ArcGIS georeferenced map in QGIS 2.8
>>       (Nicole Stoffels)
>>   10. Re: GRASS dependency problem on OS X (William Kyngesburye)
>>   11.  Cannot activate grass (Lu?s de Sousa)
>>   12. Re: Cannot activate grass (Carlos Cerd?n)
>>   13. TOA Reflectance (Mariana Buzzi)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Thu, 12 Mar 2015 11:21:07 +0100
>> From: emmexx <emmexx at tiscalinet.it>
>> To: qgis-user at lists.osgeo.org
>> Subject: Re: [Qgis-user] Customised attributes form
>> Message-ID: <55016893.3070404 at tiscalinet.it>
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>> Il 03/12/2015 10:46 AM, emmexx scrisse:
>> > I want to use a custom interface - I need to organize attributes better
>> > than the qgis form can - but I don't understand if, and how, I can mix a
>> > custom interface, custom widgets and custo validation. Is that possible?
>>
>> I overlooked the Drag and drop designer option. Is that the right path
>> to accomplish what I want?
>>
>> thanks
>>         maxx
>>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Thu, 12 Mar 2015 11:32:02 +0100
>> From: Matthias Kuhn <matthias.kuhn at gmx.ch>
>> To: emmexx <emmexx at tiscalinet.it>
>> Cc: qgis-user at lists.osgeo.org
>> Subject: Re: [Qgis-user] Customised attributes form
>> Message-ID: <55016B22.1050802 at gmx.ch>
>> Content-Type: text/plain; charset=UTF-8
>>
>> The d'n'd designer is about grouping, positioning and layouting
>> different fields on a form.
>>
>> If I understand you correctly, you have 1 single attribute that contains
>> a list of values.
>> For that, the linked example is the way to go.
>>
>> In "setValue" you take 1 value (which is a list of values) and highlight
>> the appropriate ones on your tree
>>
>> In "value" you inspect the (user modified) tree and generate a value
>> from it to save back to the attribute.
>>
>> This tree widget can then be positioned with the d'n'd designer (or a
>> QtDesigner form if you like) together with other attributes this layer
>> has.
>>
>> Matthias
>>
>> On 03/12/2015 11:21 AM, emmexx wrote:
>> > Il 03/12/2015 10:46 AM, emmexx scrisse:
>> >> I want to use a custom interface - I need to organize attributes better
>> >> than the qgis form can - but I don't understand if, and how, I can mix
>> a
>> >> custom interface, custom widgets and custo validation. Is that
>> possible?
>> >
>> > I overlooked the Drag and drop designer option. Is that the right path
>> > to accomplish what I want?
>> >
>> > thanks
>> >     maxx
>> > _______________________________________________
>> > Qgis-user mailing list
>> > Qgis-user at lists.osgeo.org
>> > http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>>
>>
>> ------------------------------
>>
>> Message: 3
>> Date: Thu, 12 Mar 2015 10:42:55 +0000
>> From: "Blumentrath, Stefan" <Stefan.Blumentrath at nina.no>
>> To: Leo Kris Palao <lk.palao at gmail.com>, QGIS Mailing List
>>         <qgis-user at lists.osgeo.org>
>> Subject: Re: [Qgis-user] Zonal Statistics Computation
>> Message-ID: <a77d42d6ba394647aa754a91405a2f77 at NINSRV23.nina.no>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Related to this one: https://hub.qgis.org/issues/11135
>> ?
>> Cheers
>> Stefan
>>
>> From: qgis-user-bounces at lists.osgeo.org [mailto:
>> qgis-user-bounces at lists.osgeo.org] On Behalf Of Leo Kris Palao
>> Sent: 12. mars 2015 11:06
>> To: QGIS Mailing List
>> Subject: [Qgis-user] Zonal Statistics Computation
>>
>> Hi QGIS Users,
>>
>> I would like to ask if anybody have experienced getting different results
>> using A) Zonal Statistics Plugin and B) Zonal Statistics in Graphical
>> Modeler?
>>
>> Here is the description of our Dataset:
>>
>> Vector
>> 5 features (2 features have area of 1.74 and 1.89 ha; 3 features have
>> less than 1 ha. area). These are farmer plots.
>>
>> Raster
>> pixel size is 180m X 180m = 3.24ha.
>>
>> Processing
>>
>> Running Zonal Statistics in Graphical Modeler:
>> Only computes realistic statistics for 2 features (area having 1.74 and
>> 1.89 ha) but gives weird computation for features having less than 1 ha.
>> For features less than 1 ha, it gives values 0.0000 and 1.0000
>>
>> Running Zonal Statistics in Raster > Zonal Statistics > Zonal Statistics:
>> It gives realistic values for all features.
>>
>> This happens in QGIS "Brighton" and "Wien".
>>
>> Thanks,
>> -Leo
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <
>> http://lists.osgeo.org/pipermail/qgis-user/attachments/20150312/be327f3a/attachment-0001.html
>> >
>>
>> ------------------------------
>>
>> Message: 4
>> Date: Thu, 12 Mar 2015 12:22:13 +0100
>> From: Joris Hintjens <jorishin at gmail.com>
>> To: qgis-user <Qgis-user at lists.osgeo.org>
>> Subject: [Qgis-user] Attribute copy from point to polygon
>> Message-ID:
>>         <CAOwE6pZQtGKpBDLJ8vd=UMZ6sQiX8_90=
>> rMw42Lmqnc-iCxXUQ at mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Hi,
>> I have a pointlayer and polygon layer in .SHP.
>> I need to copy an attribute from the points within each polygon to the
>> polygon layer.
>> Any suggestions on how to do this?
>>
>> thanks
>> Joris
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <
>> http://lists.osgeo.org/pipermail/qgis-user/attachments/20150312/a0fd7362/attachment-0001.html
>> >
>>
>> ------------------------------
>>
>> Message: 5
>> Date: Thu, 12 Mar 2015 12:33:25 +0100
>> From: emmexx <emmexx at tiscalinet.it>
>> To: qgis-user at lists.osgeo.org
>> Subject: Re: [Qgis-user] Customised attributes form
>> Message-ID: <55017985.7050903 at tiscalinet.it>
>> Content-Type: text/plain; charset=UTF-8; format=flowed
>>
>> Il 03/12/2015 11:32 AM, Matthias Kuhn scrisse:
>>
>> > If I understand you correctly, you have 1 single attribute that contains
>> > a list of values.
>> > For that, the linked example is the way to go.
>>
>> Yes, correct. I'll followed the example. I couldn't reconcile a custom
>> widget with a custom form but your suggestion reassures me. I'm not a qt
>> and python expert, so I want to limit my exploration of unknown APIs and
>> programming quirks.
>>
>> Thank you
>>    maxx
>>
>>
>>
>> ------------------------------
>>
>> Message: 6
>> Date: Thu, 12 Mar 2015 12:33:39 +0100
>> From: Raymond Nijssen <r.nijssen at terglobo.nl>
>> To: qgis-user at lists.osgeo.org
>> Subject: Re: [Qgis-user] Attribute copy from point to polygon
>> Message-ID: <55017993.7060607 at terglobo.nl>
>> Content-Type: text/plain; charset=windows-1252; format=flowed
>>
>> http://www.qgistutorials.com/nl/docs/performing_spatial_joins.html
>>
>> ps use google too ;)
>>
>> On 12-03-15 12:22, Joris Hintjens wrote:
>> > Hi,
>> > I have a pointlayer and polygon layer in .SHP.
>> > I need to copy an attribute from the points within each polygon to the
>> > polygon layer.
>> > Any suggestions on how to do this?
>> >
>> > thanks
>> > Joris
>> >
>> >
>> >
>> > _______________________________________________
>> > Qgis-user mailing list
>> > Qgis-user at lists.osgeo.org
>> > http://lists.osgeo.org/mailman/listinfo/qgis-user
>> >
>>
>> --
>> Terglobo
>> Amp?restraat 110
>> 5223 CT 's-Hertogenbosch
>> 06-25314983
>>
>>
>> ------------------------------
>>
>> Message: 7
>> Date: Thu, 12 Mar 2015 12:40:38 +0100
>> From: Lu?s de Sousa <luis.a.de.sousa at gmail.com>
>> To: qgis-user at lists.osgeo.org
>> Subject: [Qgis-user] Cannot activate grass
>> Message-ID:
>>         <
>> CAEtdG7t2FXKTXZ04+NgPuXwUmnVrSLKajfH8kx_PKqM1GpecQw at mail.gmail.com>
>> Content-Type: text/plain; charset=UTF-8
>>
>> Dear all,
>>
>> I am using QGis 2.8.1 on Ubuntu 14.04. Whenever I try to create a new
>> mapset with the GRASS plug I get the error message: "Cannot activate
>> grass". This issue has been reported by a Windows user at SE:
>>
>>
>> http://gis.stackexchange.com/questions/137025/error-when-creating-a-new-mapset-with-grass-in-qgis
>>
>> In his case he had to set the system user to "the lowest level" -
>> whatever that means - a fix that only applies to Windows. In my case I
>> am trying to create mapsets in a folder owned by my user, so there is
>> not much else I can do regarding permissions.
>>
>> Any other ideas? Thanks,
>>
>> Lu?s
>>
>>
>> ------------------------------
>>
>> Message: 8
>> Date: Thu, 12 Mar 2015 07:40:45 -0500
>> From: Carlos Cerd?n <sig.upagu at gmail.com>
>> To: "qgis-user at lists.osgeo.org" <qgis-user at lists.osgeo.org>
>> Subject: Re: [Qgis-user] Cannot activate grass
>> Message-ID:
>>         <
>> CAFvg7WhBek5mpZa+5xPcUodFpXdTqz45uyaRxN9zKkqCqVTCmw at mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Hi Luis
>>
>> Same here. QGIS 2.8.1 on Ubuntu 14.04. That I do is define a new mapset in
>> GRASS directly, then close GRASS and open this mapset in QGIS and refine
>> limits and resolution. I suppose this will be fixed in next version of
>> QGIS.
>>
>> Best wishes
>>
>> Carlos Cerd?n
>>
>>
>>
>> 2015-03-12 6:40 GMT-05:00 Lu?s de Sousa <luis.a.de.sousa at gmail.com>:
>>
>> > Dear all,
>> >
>> > I am using QGis 2.8.1 on Ubuntu 14.04. Whenever I try to create a new
>> > mapset with the GRASS plug I get the error message: "Cannot activate
>> > grass". This issue has been reported by a Windows user at SE:
>> >
>> >
>> >
>> http://gis.stackexchange.com/questions/137025/error-when-creating-a-new-mapset-with-grass-in-qgis
>> >
>> > In his case he had to set the system user to "the lowest level" -
>> > whatever that means - a fix that only applies to Windows. In my case I
>> > am trying to create mapsets in a folder owned by my user, so there is
>> > not much else I can do regarding permissions.
>> >
>> > Any other ideas? Thanks,
>> >
>> > Lu?s
>> > _______________________________________________
>> > Qgis-user mailing list
>> > Qgis-user at lists.osgeo.org
>> > http://lists.osgeo.org/mailman/listinfo/qgis-user
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <
>> http://lists.osgeo.org/pipermail/qgis-user/attachments/20150312/0acec068/attachment-0001.html
>> >
>>
>> ------------------------------
>>
>> Message: 9
>> Date: Thu, 12 Mar 2015 14:05:54 +0100
>> From: Nicole Stoffels <stoffels at f2e.de>
>> To: qgis-user at lists.osgeo.org
>> Subject: Re: [Qgis-user] Problem loading ArcGIS georeferenced map in
>>         QGIS 2.8
>> Message-ID: <55018F32.5060704 at f2e.de>
>> Content-Type: text/plain; charset=windows-1252
>>
>>
>> >
>> > That might be the reason why you get the offset. It might help to change
>> > the CRS of the layer from the user-defined to the official EPSG code.
>>
>> I changed the CRS, now the map is displayed correctly! Thank you! :)
>>
>> Nicole Stoffels
>>
>>
>>
>> ------------------------------
>>
>> Message: 10
>> Date: Thu, 12 Mar 2015 08:30:09 -0500
>> From: William Kyngesburye <woklist at kyngchaos.com>
>> To: Howard Frederick <simbamangu at gmail.com>
>> Cc: "qgis-user at lists.osgeo.org List" <qgis-user at lists.osgeo.org>
>> Subject: Re: [Qgis-user] GRASS dependency problem on OS X
>> Message-ID: <3D705735-3955-41F4-988E-9AF26186A11D at kyngchaos.com>
>> Content-Type: text/plain; charset=windows-1252
>>
>> Ah, yes, the user settings, hidden away in directory services.  Another
>> place easy to forget about and not user-friendly for messing with.
>>
>> I'll remember this as a troubleshooting point.  I may have stuff in my
>> own from ages ago ;)
>>
>> On Mar 12, 2015, at 2:31 AM, Howard Frederick <simbamangu at gmail.com>
>> wrote:
>>
>> > Aha, found it!
>> >
>> > I do have a customised .bash_profile but as you say it shouldn?t affect
>> an application ? however, I did start using a custom bash (v 4.3.24 from
>> homebrew) some time ago, which necessitated changing /etc/shells (I cannot
>> remember why I thought this was worthwhile). Looking in the QGIS
>> environment variables I found:
>> >
>> > SHELL  /usr/local/Cellar/bash/4.3.24/bin/bash
>> >
>> > ? instead of /bin/bash.
>> >
>> > GRASS runs fine now that SHELL reports /bin/bash. Fixing this was not
>> trivial, with several steps before the SHELL variable was reported
>> correctly and GRASS ran:
>> >       ? I edited /etc/shells to remove the homebrew bash reference;
>> >       ? ran sudo dscl . -change /Users/$USER UserShell
>> /usr/local/Cellar/bash/4.3.24/bin/bash /bin/bash
>> >
>> > Note: adding a custom environment variable in QGIS to set shell did NOT
>> work.
>> >
>> > Many thanks for your help on this!
>> >
>> > _______________________________________________
>> > Qgis-user mailing list
>> > Qgis-user at lists.osgeo.org
>> > http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>> -----
>> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
>> http://www.kyngchaos.com/
>>
>> "The beast is actively interested only in now, and, as it is always now
>> and always shall be, there is an eternity of time for the accomplishment of
>> objects."
>>
>> - the wisdom of Tarzan
>>
>>
>>
>>
>>
>>
>>
>> ------------------------------
>>
>> Message: 11
>> Date: Thu, 12 Mar 2015 17:08:10 +0100
>> From: Lu?s de Sousa <luis.a.de.sousa at gmail.com>
>> To: qgis-user at lists.osgeo.org
>> Subject: [Qgis-user]  Cannot activate grass
>> Message-ID:
>>         <
>> CAEtdG7stnGTCvxOXzL-6LOw+2KjcZZxj9Bsbk1+QOJ5vO4+xBw at mail.gmail.com>
>> Content-Type: text/plain; charset=UTF-8
>>
>> Hi Carlos,
>>
>> Is this bug reported somewhere?
>>
>> Lu?s
>>
>> Carlos Cerd?n sig.upagu at gmail.com :
>> > Hi Luis
>> >
>> > Same here. QGIS 2.8.1 on Ubuntu 14.04. That I do is define a new mapset
>> in
>> > GRASS directly, then close GRASS and open this mapset in QGIS and refine
>> > limits and resolution. I suppose this will be fixed in next version of
>> QGIS.
>> >
>> > Best wishes
>> >
>> > Carlos Cerd?n
>>
>>
>> ------------------------------
>>
>> Message: 12
>> Date: Thu, 12 Mar 2015 11:26:40 -0500
>> From: Carlos Cerd?n <sig.upagu at gmail.com>
>> To: "qgis-user at lists.osgeo.org" <qgis-user at lists.osgeo.org>
>> Subject: Re: [Qgis-user] Cannot activate grass
>> Message-ID:
>>         <CAFvg7WhCbjj6cF5=f0=_
>> gSozvDqG9MH0mADC6AhwBEVAmyUrqA at mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> I don't  know. This issue is new for me with QGIS 2.8. Please check it and
>> if it's the case, report it.
>>
>> Carlos
>>
>> 2015-03-12 11:08 GMT-05:00 Lu?s de Sousa <luis.a.de.sousa at gmail.com>:
>>
>> > Hi Carlos,
>> >
>> > Is this bug reported somewhere?
>> >
>> > Lu?s
>> >
>> > Carlos Cerd?n sig.upagu at gmail.com :
>> > > Hi Luis
>> > >
>> > > Same here. QGIS 2.8.1 on Ubuntu 14.04. That I do is define a new
>> mapset
>> > in
>> > > GRASS directly, then close GRASS and open this mapset in QGIS and
>> refine
>> > > limits and resolution. I suppose this will be fixed in next version of
>> > QGIS.
>> > >
>> > > Best wishes
>> > >
>> > > Carlos Cerd?n
>> > _______________________________________________
>> > Qgis-user mailing list
>> > Qgis-user at lists.osgeo.org
>> > http://lists.osgeo.org/mailman/listinfo/qgis-user
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <
>> http://lists.osgeo.org/pipermail/qgis-user/attachments/20150312/5bd2be22/attachment-0001.html
>> >
>>
>> ------------------------------
>>
>> Message: 13
>> Date: Thu, 12 Mar 2015 14:47:27 -0300
>> From: Mariana Buzzi <marianabuzzi86 at gmail.com>
>> To: qgis-user at lists.osgeo.org
>> Subject: [Qgis-user] TOA Reflectance
>> Message-ID:
>>         <CAJkiiNc1Dbj3Dv4-AXsY52VxuUe337A-o+P0=iW=
>> 0j0LjF9Q6w at mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Hello. I'm working on an image SPOT 5. What I did first was to perform a
>> correction TOA Reflectance (32-bit), to transform DN to TOA.
>>  When georreferenciacion apply this correction the image is lost. What I
>> can do? I have georreferenciarla? or is there another way to do it. Many
>> Thanks.
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <
>> http://lists.osgeo.org/pipermail/qgis-user/attachments/20150312/f195871a/attachment-0001.html
>> >
>>
>> ------------------------------
>>
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>> End of Qgis-user Digest, Vol 109, Issue 23
>> ******************************************
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150317/1384be74/attachment.html>


More information about the Qgis-user mailing list