<div dir="ltr"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">But the raster and vector have the same CRS.</span><br>The raster is 20X20m, the grid 100mX100m <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">and<span> </span></span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">the two files have the same origin.</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 5, 2018 at 4:06 PM, Luigi Pirelli <span dir="ltr"><<a href="mailto:luipir@gmail.com" target="_blank">luipir@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">please check if this is fixed by Nyall Dawson <a href="https://github.com/qgis/QGIS/commit/88a49e7e331e0f728ffed8c63d99eb0f59fb2272" target="_blank">https://github.com/qgis/QGIS/<wbr>commit/<wbr>88a49e7e331e0f728ffed8c63d99eb<wbr>0f59fb2272</a> not sure it's related</div><div class="gmail_extra"><br clear="all"><div><div class="m_-7300932021049751159gmail_signature" data-smartmail="gmail_signature">Luigi Pirelli<br><br>******************************<wbr>******************************<wbr>******************************<wbr>********<br>* LinkedIn: <a href="https://www.linkedin.com/in/luigipirelli" target="_blank">https://www.linkedin.com/in/<wbr>luigipirelli</a><br>* Stackexchange: <a href="http://gis.stackexchange.com/users/19667/luigi-pirelli" target="_blank">http://gis.stackexchange.com/<wbr>users/19667/luigi-pirelli</a><br>* GitHub: <a href="https://github.com/luipir" target="_blank">https://github.com/luipir</a><br>* Mastering QGIS 2nd Edition:<br>* <a href="https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition" target="_blank">https://www.packtpub.com/big-<wbr>data-and-business-<wbr>intelligence/mastering-qgis-<wbr>second-edition</a><br>* Hire me: <a href="http://goo.gl/BYRQKg" target="_blank">http://goo.gl/BYRQKg</a><br>******************************<wbr>******************************<wbr>******************************<wbr>********</div></div><div><div class="h5">
<br><div class="gmail_quote">On 5 June 2018 at 15:50, Mensio Federico <span dir="ltr"><<a href="mailto:mensio@ipla.org" target="_blank">mensio@ipla.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ok. I prepared the data. Because they are very large i post here the wetransfer link (available up to 06/12) <a class="m_-7300932021049751159m_6288113628253521797m_-1088613678384717213gmail-m_-1047094155158558840download_link_link" href="https://wetransfer.com/downloads/7639472c353a5c3c151972d694fa148d20180605134054/6594c239a24a7e346bb3bd5b0a38533220180605134054/21473e" style="color:rgb(23,24,26);font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:-webkit-left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);font-family:"Fakt Pro Medium","Segoe UI","SanFrancisco Display",Arial,sans-serif;text-decoration:underline;word-wrap:break-word" target="_blank"><span class="m_-7300932021049751159m_6288113628253521797m_-1088613678384717213gmail-m_-1047094155158558840download_link_link" style="color:rgb(64,159,255);font-weight:normal;text-decoration:underline;word-wrap:break-word">https://wetransfer.com<wbr>/downloads/7639472c353a5c3c151<wbr>972d694fa148d20180605134054/<wbr>6594c239a24a7e346bb3bd5b0a3853<wbr>3220180605134054/21473e</span></a> <br>All vector data are stored in a Postgres DB, exported to a csv (with header comma delimited) and they are:<br>grid.csv, the grid zone where i need to calculate the number of pixel contained in the raster file uf.tif. All pixel have vale of 1<br>uf_qgis2.csv the result of zonal statistics using qgis 2.18.15 that is correct<br>uf_qgis3<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">.csv the result of zonal statistics using qgis 3.0.3 <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">that is not correct</span><br></span><br>If you compare the uf_count or uf_sum fields of the two files you can see difference<br><br>thanks in advance for explain and eventually solve the problem<br><br>Sincerly Federico</div><div class="gmail_extra"><br><div class="gmail_quote">2018-06-04 9:31 GMT+02:00 Mensio Federico <span dir="ltr"><<a href="mailto:mensio@ipla.org" target="_blank">mensio@ipla.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">yes. ASAP</div><div class="m_-7300932021049751159m_6288113628253521797HOEnZb"><div class="m_-7300932021049751159m_6288113628253521797h5"><div class="gmail_extra"><br><div class="gmail_quote">2018-06-01 2:06 GMT+02:00 Nyall Dawson <span dir="ltr"><<a href="mailto:nyall.dawson@gmail.com" target="_blank">nyall.dawson@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>2018-05-31 22:34 GMT+10:00 Mensio Federico <<a href="mailto:mensio@ipla.org" target="_blank">mensio@ipla.org</a>>:<br>
> Hi.<br>
> I used zonal statistics for raster analysis both in Qgis 2.18 and Qgis 3.0.<br>
> In the first it's work perfectly with the count of cell is correct, in the<br>
> second is totally uncorrect.<br>
> Some solution?<br>
<br>
</span>Can you share sample data and the parameters you use?<br>
<br>
Nyall<br>
<span><br>
><br>
> --<br>
> Federico MENSIO<br>
> IPLA spa<br>
> <a href="https://maps.google.com/?q=Corso+Casale,+476+-+10132+Torino&entry=gmail&source=g">Corso Casale, 476 - 10132 Torino</a><br>
> Mobile +39.340.06.01.363<br>
> TEL +39.011.432.0443 FAX +39.011.89.89.333<br>
> <a href="mailto:mensio@ipla.org" target="_blank">mensio@ipla.org</a> - <a href="http://www.ipla.org" rel="noreferrer" target="_blank">www.ipla.org</a><br>
><br>
> ------------------------------<wbr>------------------------------<wbr>-------------------------<br>
> Questa e-mail è personale e i suoi contenuti contengono informazioni<br>
> riservate ai destinatari. Pertanto la lettura, copia od altro uso da parte<br>
> di altri o qualsiasi altra azione derivante dalla conoscenza di queste<br>
> informazioni sono rigorosamente vietate e perseguibili ai sensi del Dlgs<br>
> 196/03.<br>
> Qualora abbiate ricevuto questo documento per errore siete cortesemente<br>
> pregati di darne immediata comunicazione al mittente ai riferimenti indicati<br>
> e provvedere immediatamente alla sua distruzione.<br>
><br>
> Salvaguardiamo l'ambiente: se non ti è necessario, non stampare questa mail<br>
><br>
</span>> ______________________________<wbr>_________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-user</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-user</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-7300932021049751159m_6288113628253521797m_-6219045960201064844gmail_signature" data-smartmail="gmail_signature">Federico MENSIO<br>IPLA spa<br><a href="https://maps.google.com/?q=Corso+Casale,+476+-+10132+Torino&entry=gmail&source=g">Corso Casale, 476 - 10132 Torino</a><br>Mobile +39.340.06.01.363<br>TEL +39.011.432.0443 FAX +39.011.89.89.333<br><a href="mailto:mensio@ipla.org" target="_blank">mensio@ipla.org</a> - <a href="http://www.ipla.org" target="_blank">www.ipla.org</a><br><br>------------------------------<wbr>------------------------------<wbr>-------------------------<br>Questa e-mail è personale e i suoi contenuti contengono informazioni riservate ai destinatari. Pertanto la lettura, copia od altro uso da parte di altri o qualsiasi altra azione derivante dalla conoscenza di queste informazioni sono rigorosamente vietate e perseguibili ai sensi del Dlgs 196/03.<br>Qualora abbiate ricevuto questo documento per errore siete cortesemente pregati di darne immediata comunicazione al mittente ai riferimenti indicati e provvedere immediatamente alla sua distruzione.<br><br>Salvaguardiamo l'ambiente: se non ti è necessario, non stampare questa mail</div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-7300932021049751159m_6288113628253521797gmail_signature" data-smartmail="gmail_signature">Federico MENSIO<br>IPLA spa<br><a href="https://maps.google.com/?q=Corso+Casale,+476+-+10132+Torino&entry=gmail&source=g">Corso Casale, 476 - 10132 Torino</a><br>Mobile +39.340.06.01.363<br>TEL +39.011.432.0443 FAX +39.011.89.89.333<br><a href="mailto:mensio@ipla.org" target="_blank">mensio@ipla.org</a> - <a href="http://www.ipla.org" target="_blank">www.ipla.org</a><br><br>------------------------------<wbr>------------------------------<wbr>-------------------------<br>Questa e-mail è personale e i suoi contenuti contengono informazioni riservate ai destinatari. Pertanto la lettura, copia od altro uso da parte di altri o qualsiasi altra azione derivante dalla conoscenza di queste informazioni sono rigorosamente vietate e perseguibili ai sensi del Dlgs 196/03.<br>Qualora abbiate ricevuto questo documento per errore siete cortesemente pregati di darne immediata comunicazione al mittente ai riferimenti indicati e provvedere immediatamente alla sua distruzione.<br><br>Salvaguardiamo l'ambiente: se non ti è necessario, non stampare questa mail</div>
</div>
<br>______________________________<wbr>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-user</a><br></blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Federico MENSIO<br>IPLA spa<br>Corso Casale, 476 - 10132 Torino<br>Mobile +39.340.06.01.363<br>TEL +39.011.432.0443 FAX +39.011.89.89.333<br><a href="mailto:mensio@ipla.org" target="_blank">mensio@ipla.org</a> - <a href="http://www.ipla.org" target="_blank">www.ipla.org</a><br><br>-------------------------------------------------------------------------------------<br>Questa e-mail è personale e i suoi contenuti contengono informazioni riservate ai destinatari. Pertanto la lettura, copia od altro uso da parte di altri o qualsiasi altra azione derivante dalla conoscenza di queste informazioni sono rigorosamente vietate e perseguibili ai sensi del Dlgs 196/03.<br>Qualora abbiate ricevuto questo documento per errore siete cortesemente pregati di darne immediata comunicazione al mittente ai riferimenti indicati e provvedere immediatamente alla sua distruzione.<br><br>Salvaguardiamo l'ambiente: se non ti è necessario, non stampare questa mail</div>
</div>