Re: [Qgis-user] SAGA Next Gen for MacOS

2023-06-26 Thread chris hermansen via QGIS-User
Etsuko and list,

On Mon, Jun 26, 2023 at 8:53 AM Etsuko Nonaka via QGIS-User <
qgis-user@lists.osgeo.org> wrote:

> Hello Lorenzo,
>
> Thank you for your help! I tried both QGIS 3.30.x and 3.32, but I do not
> have Providers under Processing. QGIS 3.32 has SAGA Next Gen plugin already
> installed, but it is version 7.2, not 7.8 as you say, and it still says
> "Requires manuaö installation of SAGA 7.2 binaries."
>

Try  Settings > Options > Processing > Providers?

-- 
Chris Hermansen · clhermansen "at" gmail "dot" com

C'est ma façon de parler.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] SAGA Next Gen for MacOS

2023-06-26 Thread Etsuko Nonaka via QGIS-User
Hello Lorenzo,

Thank you for your help! I tried both QGIS 3.30.x and 3.32, but I do not
have Providers under Processing. QGIS 3.32 has SAGA Next Gen plugin already
installed, but it is version 7.2, not 7.8 as you say, and it still says
"Requires manuaö installation of SAGA 7.2 binaries."

I installed SAGA 9.0.2, and it is a standalone software package. I suppose
that I could perform the analyses in SAGA 9.0.2, export the results in
geotiff, and import them into QGIS to continue working, if I cannot get
SAGA Next Gen work as a plugin inside QGIS.

My Mac is old (7-8 years old), not the newer Apple processor.

Thank you for your help!
Etsuko

On Mon, 26 Jun 2023 at 16:20, Lorenzo Moretti via QGIS-User <
qgis-user@lists.osgeo.org> wrote:

> Hi Etsuko
>
> Inside QGIS 3.30.x for macOS there are still the old libraries of SAGA
> version 7.8 and so the SAGA Next Gen plugin works without providing any
> paths. I use this system. If, on the other hand, you want something more
> such as using SAGA 9, the latest version, where there are many new
> algorithms, you need to download SAGA for Mac, currently 9.0.2, directly
> from the SAGA website:
>
> https://sourceforge.net/projects/saga-gis/files/SAGA%20-%209/SAGA%20-%209.0.2/
> It is a normal application that you drag into Applications. Then in QGIS
> inside Processing > Providers > SAGANG > SAGA folder enter the path:
> /Applications/SAGA.app/Contents/MacOS
>
> Press OK and you have all the algorithms in the latest version of SAGA 9:
> QGIS works fine.
>
> For those who have the Apple Silicon processor, however, better install
> QGIS3, currently 3.28.7, from MacPorts. QGIS3 is native with all the native
> external libraries (including SAGA, GDAL, Grass, etc.) and the performance
> is spectacular.
>
> Regards
> Lorenzo
>
>
> Il giorno 26 giu 2023, alle ore 12:08, Etsuko Nonaka via QGIS-User <
> qgis-user@lists.osgeo.org> ha scritto:
>
> Hello the QGIS community,
>
> I wish to use SAGA Terrain Analysis - Lighting Topographic correction in
> QGIS. I installed the SAGA Next Gen plugin, and it says it requires a
> manual installation of SAGA 7.2 binaries. I see a folder for SAGA 7.2.0
> under SAGA GIS on Source Forge, but there are no binary files for Mac for
> this version.
>
> I ran Topographi Analysis despite the lacking file, it seemed to have run
> fine but was not able to save the resulting output.
>
> I contacted the SAGA help and was instructed to follow the
> installation instructions here
> https://sourceforge.net/p/saga-gis/wiki/Compiling%20SAGA%20on%20Mac%20OS%20X/
>
> However, the program failed to compile at the very last step and generated
> this error.
> CMake Error at
> /usr/local/Cellar/cmake/3.26.4/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230
> (message):
> Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
>
> If anyone knows how to use SAGA Next Gen on MacOS (I have macOS Monterey
> version 12.6.6), I would appreciate any help.
>
> Thank you very much.
> Etsuko
> Postdoc at U of Helsinki
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] SAGA Next Gen for MacOS

2023-06-26 Thread Lorenzo Moretti via QGIS-User
Hi Etsuko

Inside QGIS 3.30.x for macOS there are still the old libraries of SAGA version 
7.8 and so the SAGA Next Gen plugin works without providing any paths. I use 
this system. If, on the other hand, you want something more such as using SAGA 
9, the latest version, where there are many new algorithms, you need to 
download SAGA for Mac, currently 9.0.2, directly from the SAGA website:
https://sourceforge.net/projects/saga-gis/files/SAGA%20-%209/SAGA%20-%209.0.2/
It is a normal application that you drag into Applications. Then in QGIS inside 
Processing > Providers > SAGANG > SAGA folder enter the path:
/Applications/SAGA.app/Contents/MacOS

Press OK and you have all the algorithms in the latest version of SAGA 9: QGIS 
works fine.

For those who have the Apple Silicon processor, however, better install QGIS3, 
currently 3.28.7, from MacPorts. QGIS3 is native with all the native external 
libraries (including SAGA, GDAL, Grass, etc.) and the performance is 
spectacular.

Regards
Lorenzo


Il giorno 26 giu 2023, alle ore 12:08, Etsuko Nonaka via QGIS-User 
 ha scritto:

Hello the QGIS community,

I wish to use SAGA Terrain Analysis - Lighting Topographic correction in QGIS. 
I installed the SAGA Next Gen plugin, and it says it requires a manual 
installation of SAGA 7.2 binaries. I see a folder for SAGA 7.2.0 under SAGA GIS 
on Source Forge, but there are no binary files for Mac for this version.

I ran Topographi Analysis despite the lacking file, it seemed to have run fine 
but was not able to save the resulting output.

I contacted the SAGA help and was instructed to follow the installation 
instructions here 
https://sourceforge.net/p/saga-gis/wiki/Compiling%20SAGA%20on%20Mac%20OS%20X/

However, the program failed to compile at the very last step and generated this 
error.
CMake Error at 
/usr/local/Cellar/cmake/3.26.4/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230
 (message):
Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)

If anyone knows how to use SAGA Next Gen on MacOS (I have macOS Monterey 
version 12.6.6), I would appreciate any help.

Thank you very much.
Etsuko
Postdoc at U of Helsinki
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Measuring Map Rendering Time using PyQGIS

2023-06-26 Thread Alexandre Neto via QGIS-User
Hi,

I am looking for a way to audit a QGIS projects in terms of layer rendering
time.

I was able to measuring the rendering every time I refresh the the map
canvas, change layers or change extent, using the following code (inspired
by Anita code):

from datetime import datetime

def get_time():
t1 = datetime.now()
print('Rendering time:',t1-t0, 'seconds')

def reset_time():
global t0
t0 = datetime.now()

canvas = iface.mapCanvas()
canvas.mapCanvasRefreshed.connect(get_time)
canvas.extentsChanged.connect(reset_time)
canvas.layersChanged.connect(reset_time)

Now, I wanted to programmatically zoom in, zoom out, enable and disable
layers, etc... but If I give two or more of these commands together, each
command won't wait for the other to finish rendering, therefore I am unable
to measure the time.

For example:
iface.actionZoomFullExtent()
canvas.zoomByFactor(0.5)

Only returns the time for the last zoom to render.

I have tried using time.wait() but that stops the rendering all together.

Thanks,

Alexandre Neto
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] SAGA Next Gen for MacOS

2023-06-26 Thread Etsuko Nonaka via QGIS-User
Hello the QGIS community,

I wish to use SAGA Terrain Analysis - Lighting Topographic correction in
QGIS. I installed the SAGA Next Gen plugin, and it says it requires a
manual installation of SAGA 7.2 binaries. I see a folder for SAGA 7.2.0
under SAGA GIS on Source Forge, but there are no binary files for Mac for
this version.

I ran Topographi Analysis despite the lacking file, it seemed to have run
fine but was not able to save the resulting output.

I contacted the SAGA help and was instructed to follow the
installation instructions here
https://sourceforge.net/p/saga-gis/wiki/Compiling%20SAGA%20on%20Mac%20OS%20X/

However, the program failed to compile at the very last step and generated
this error.
CMake Error at
/usr/local/Cellar/cmake/3.26.4/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230
(message):
Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)

If anyone knows how to use SAGA Next Gen on MacOS (I have macOS Monterey
version 12.6.6), I would appreciate any help.

Thank you very much.
Etsuko
Postdoc at U of Helsinki
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Adding delimited text layer in QGIS using Geographical modeler- reg

2023-06-26 Thread Abhi Shek via QGIS-User
Hi,
I am struggling to create points using csv (having lat long in it) in
Geographical modeler, getting frequent errors/not running modeler . Can
anyone guide me the same please.

-- 
with warm regards,
P S N Abhishek,
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Request for Guidance on Using 'Dissolve' Tool in QGIS with IUCN Data

2023-06-26 Thread Ujaval Gandhi via QGIS-User
There is Vector Geometry --> Aggregate algorithm in the Processing Toolbox
that can summarize values while dissolving features. It can be a little tricky
to use so if you can't figure out how to use it - see my
tutorial https://www.qgistutorials.com/en/docs/3/areal_mean_rainfall.html
[https://mailtrack.io/trace/link/43bf6ee36d437ce2c50d26c89696b2046c0225b5?url=https%3A%2F%2Fwww.qgistutorials.com%2Fen%2Fdocs%2F3%2Fareal_mean_rainfall.html&userId=8747767&signature=d01c47db48ea788d]


Use Field Calculator for updating values using an expression, or just put the
layer in Edit mode, open the Attribute Table and update the values manually. 

---
Ujaval Gandhi
Spatial Thoughts
www.spatialthoughts.com
[https://mailtrack.io/trace/link/f80872d1a86e7c96a2818d9f373eff28606b2163?url=http%3A%2F%2Fwww.spatialthoughts.com&userId=8747767&signature=88087252a09861e6]




[data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAQABAAACAkQBADs=3D]
On Mon, Jun 26, 2023 at 11:33 AM Bernhard Ströbl via QGIS-User
 wrote:


> Hi Marcello,
> 
> you can choose which fields QGIS should use for the dissolve process. Only
> features that are homogeneous throughout the chosen fields will be dissolved
> into a new feature.
> Hope this helps
> Bernhard
> 
> 
> > Marcello Bilancioni via QGIS-User  [qgis-user@lists.osgeo.org]> hat am 26.06.2023 01:54 CEST geschrieben:
> >
> > 
> > Good morning,
> >
> > I am currently working with the mammal species distribution data provided
> > by IUCN, and analyzing these shape files in QGIS.
> >
> > As part of my analysis, I have been using the 'Dissolve' tool in QGIS to
> > merge rows of the same species into a single entry. This operation is aimed
> > at creating a single comprehensive polygon that represents each species'
> > entire distribution range. However, while the tool successfully
> > consolidates the geometries, it looses important attribute data from the
> > original attribute table. In particular, this leads to the loss of valuable
> > information within the "Presence" and "Origin" columns, where the values
> > can differ across entries for the same species.
> >
> > Could you provide any recommendations on how to avoid such data loss? Is
> > there a strategy or method that could effectively summarize or retain this
> > varied information while processing the data using the 'Dissolve' tool?
> >
> > Furthermore, in my dataset, I have noticed some specific values under the
> > "Presence" and "Origin" columns: "presence 3", "presence 6", and "origin 5"
> > (I have attached a list with those species here). According to the IUCN
> > guidelines, these values need to be updated or adjusted. Do you happen to
> > know how to update these entries within QGIS best?
> >
> > Thank you in advance for any assistance you can provide.
> >
> > Best regards,
> >
> > Marcello Bilancioni
> > ___
> > QGIS-User mailing list
> > QGIS-User@lists.osgeo.org [QGIS-User@lists.osgeo.org]
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [https://lists.osgeo.org/mailman/listinfo/qgis-user]
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [https://lists.osgeo.org/mailman/listinfo/qgis-user]
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org [QGIS-User@lists.osgeo.org]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [https://lists.osgeo.org/mailman/listinfo/qgis-user]
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [https://lists.osgeo.org/mailman/listinfo/qgis-user]___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user