Re: [QGIS-Developer] Voronoi tool missing from processing, what could be wrong?

2021-03-02 Thread Hernán De Angelis


On 2021-03-03 00:12, Nyall Dawson wrote:

On Wed, 3 Mar 2021 at 09:10, Tim Sutton  wrote:

Hi

Can you check if you have python-psycopg2 installed on your system? I had a 
similar issue a month or two back which was fixed by installing it. (Thanks for 
the nudge Nyall).

Ah -- that was the one!  I thought it was gdal for some reason...
flaky memory :)

We should really investigate why this caused a silent failure to show
the algorithms instead of an error...


Yes, an error message could be beneficial. I remember from previous 
installations that QGIS would complain on opening that psycopg (or other 
python modules) weren't installed.


/H.






Nyall



Regards

Tim

On Tue, Mar 2, 2021 at 11:19 AM Hernán De Angelis  
wrote:


On 2021-03-02 10:51, Richard Duivenvoorde wrote:

On 3/2/21 10:41 AM, Hernán De Angelis wrote:

On 2021-03-02 10:21, Nyall Dawson wrote:

On Tue, 2 Mar 2021 at 18:34, Hernán De Angelis
 wrote:

Hi,

I wrote about this a few days ago in the user list but I still have the
problem and can find neither a cause nor a solution. I thus post it in
this list in the hope that some developer may have a hint on what is
going wrong here.

Double check that you have the gdal python packages installed

Thanks for this,

from osgeo import gdal

just works, so I guess it is installed.

What is the value of
BINDINGS_GLOBAL_INSTALL
in your compile config?

The value is "YES"

Looks like something is not picked up with your install.

Agree

What if you run qgis 31.8 from the 'output/bin' dir in your build directory?

Behaves just the same

If all fails I would (I think) compile and set CMAKE_INSTALL_PREFIX in some 
local dir in your HOME

I did in ~/bin/qgis_/3.18/debug (for debug build):

And create a startup script like

export LD_LIBRARY_PATH=~/bin/qgis_/3.18/debug/lib/:/usr/lib/grass78/lib/
export PYTHONPATH=~/bin/qgis_/3.18/debug/share/qgis/python:$PYTHONPATH
export QGIS_DEBUG=0
# passing ALL parameters to qgis bin
# eg to be able to call a certain translation
# qgis --lang nl
~/bin/qgis_/3.18/debug/bin/qgis "$@"

Thanks, will think about this and try it.

Thank you again for your ansers. I see I have a sort of linking/library
problem. GRASS is installed and GRASS modules are compiled but then
these do not appear either in the menu.


/Hernán



Suc6

Richard Duivenvoorde

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



--
--

Tim Sutton
Visit http://kartoza.com to find out about open source:
  * Desktop GIS programming services
  * Geospatial web development
* GIS Training
* Consulting Services
Tim is a member of the QGIS Project Steering Committee
---
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

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


Re: [QGIS-Developer] Voronoi tool missing from processing, what could be wrong?

2021-03-02 Thread Hernán De Angelis

On 2021-03-03 00:10, Tim Sutton wrote:

Hi

Can you check if you have python-psycopg2 installed on your system? I 
had a similar issue a month or two back which was fixed by installing 
it. (Thanks for the nudge Nyall).


YES! That was the problem!

Now I have all the tools, including GRASS and GDAL, and Voronoi of course.

Thank you!

Hernán





Regards

Tim

On Tue, Mar 2, 2021 at 11:19 AM Hernán De Angelis 
mailto:variablestarli...@gmail.com>> wrote:



On 2021-03-02 10:51, Richard Duivenvoorde wrote:
> On 3/2/21 10:41 AM, Hernán De Angelis wrote:
>> On 2021-03-02 10:21, Nyall Dawson wrote:
>>> On Tue, 2 Mar 2021 at 18:34, Hernán De Angelis
>>> mailto:variablestarli...@gmail.com>> wrote:
 Hi,

 I wrote about this a few days ago in the user list but I
still have the
 problem and can find neither a cause nor a solution. I thus
post it in
 this list in the hope that some developer may have a hint on
what is
 going wrong here.
>>> Double check that you have the gdal python packages installed
>> Thanks for this,
>>
>> from osgeo import gdal
>>
>> just works, so I guess it is installed.
> What is the value of
> BINDINGS_GLOBAL_INSTALL
> in your compile config?
The value is "YES"
>
> Looks like something is not picked up with your install.
Agree
>
> What if you run qgis 31.8 from the 'output/bin' dir in your
build directory?
Behaves just the same
>
> If all fails I would (I think) compile and set
CMAKE_INSTALL_PREFIX in some local dir in your HOME
>
> I did in ~/bin/qgis_/3.18/debug (for debug build):
>
> And create a startup script like
>
> export
LD_LIBRARY_PATH=~/bin/qgis_/3.18/debug/lib/:/usr/lib/grass78/lib/
> export
PYTHONPATH=~/bin/qgis_/3.18/debug/share/qgis/python:$PYTHONPATH
> export QGIS_DEBUG=0
> # passing ALL parameters to qgis bin
> # eg to be able to call a certain translation
> # qgis --lang nl
> ~/bin/qgis_/3.18/debug/bin/qgis "$@"

Thanks, will think about this and try it.

Thank you again for your ansers. I see I have a sort of
linking/library
problem. GRASS is installed and GRASS modules are compiled but then
these do not appear either in the menu.


/Hernán


>
> Suc6
>
> Richard Duivenvoorde
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org 
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Unsubscribe:
https://lists.osgeo.org/mailman/listinfo/qgis-developer




--
--
​

Tim Sutton
Visit http://kartoza.com  to find out about open 
source:

 * Desktop GIS programming services
 * Geospatial web development
* GIS Training
* Consulting Services
Tim is a member of the QGIS Project Steering Committee
---
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Building QGIS with Visual Studio 2019 CE and vcpkg

2021-03-02 Thread Mats Taraldsvik
Hi Stefan,

vcpkg very recently got a registries feature, so you can avoid forking
vcpkg for custom ports (either modifications of existing ports or new ones)

look here:
https://devblogs.microsoft.com/cppblog/registries-bring-your-own-libraries-to-vcpkg/

You can pin each dependency to a specific version using the versioning
feature mentioned earlier.

Mats



On Mon, Mar 1, 2021 at 4:36 PM Uhrig, Stefan  wrote:

> Hi Benjamin,
>
>
>
> Thanks for the feedback.
>
>
>
> AFAIK, QGIS has only recently be bumped to C++17, and the version of
> spatialindex in vcpkg is still 1.9.0. The fix for the binary_function issue
> made it to a later version only. So, the bad news is that the build with
> vcpkg is broken for now.
>
>
>
> I’ve read Mathias Kuhn’s mail, and his idea of having a curated vcpkg fork
> seems the best approach to me to solve these kind of issues. On the one
> hand, we can prevent changes in upstream from breaking the build. On the
> other hand, we can update dependencies on our own (like the spatialindex
> library), merge it to the fork and then open a pull request to upstream. We
> would not be blocked by the upstream review process that way.
>
>
>
> I’ll fork vcpkg and I’ll try to update the spatialindex library. If I
> succeed, I’ll mail you the link to the repository.
>
>
>
> Best regards,
>
> Stefan
>
>
>
>
>
>
>
> *From:* Benjamin Jakimow 
> *Sent:* Sunday, February 28, 2021 9:03 AM
> *To:* Mats Taraldsvik 
> *Cc:* Uhrig, Stefan ; qgis-developer <
> qgis-developer@lists.osgeo.org>
> *Subject:* Re: [QGIS-Developer] Building QGIS with Visual Studio 2019 CE
> and vcpkg
>
>
>
> Hi Stefan,
>
> thanks for your extensive description. So far it worked out very well to
> setup VS, and I can confirm that geos_c.lib is detected automatically.
>
> Unfortunately my build failed, because MovingRegion.h (which comes with
> vcpkg) wants to use std::binary_function, which was removed with C++17:
>
>  root>\installed\x64-windows\include\spatialindex\MovingRegion.h(155): error
> C2039: 'binary_function': is not a member of 'std'
>
> I wonder why, because this issue has been solved in libspatialindex since
> Oct 2019 (https://github.com/libspatialindex/libspatialindex/pull/153)
>
> Best regards,
> Benjamin
>
>
>
> On 2021-02-11 11:29, Mats Taraldsvik wrote:
>
> Hi Stefan,
>
>
>
> Thank you for this excellent guide to compile with vcpkg, it worked right
> away after me struggling with the official guide+CMake compilation for a
> couple of hours.
>
>
>
> I did make a few modifications that might help:
>
>
>
> 1. Release build:
>
> - geos_c.lib was detected automatically, and for some reason I did not
> need to explicitly set GEOS_LIBRARY
>
>
>
> 2. Debug build:
>
>
>
> I noticed: 1> [CMake] -- Found ZSTD:
> C:/Users/mattar/Source/Repos/vcpkg_qgis/installed/x64-windows/lib/zstd.lib
> in the logs and you wrote:
>
> > The build will fail because the execution of crssync.exe fails. That's
> because crssync.exe tries to load zstd.dll instead of zstdd.dll. I haven't
> figured out why, yet. An easy workaround is copying zstdd.dll to zstd.dll
> in QGIS\out\build\x64-Debug\output\bin. Then restart the build and it
> should succeed.
>
>
>
> By setting ZSTD_LIBRARY explicitly to
> /installed/x64-windows/debug/lib/zstdd.lib it picked the
> right lib and dll:
>
> Then log changed to: 1> [CMake] -- Found ZSTD:
> C:/Users/mattar/Source/Repos/vcpkg_qgis/installed/x64-windows/debug/lib/zstdd.lib
>
>
>
> I hope this does help a bit.
>
>
>
> I'm an outsider to this community, but my humble suggestion _when this
> work is complete_ (what's missing except for python support?):
>
> - add your CMakeSettings.json to the build description or to
> src/CMakeSettings.json
>
> - vcpkg has a new feature "manifests", where a file vcpkg.json describes
> all dependencies. this should also be added or described (instead of the
> vcpkg install command).
>
> - vcpkg just got versioning, which might help align the requirements with
> the rest of qgis
>
> - I see that vcpkg already has flex and bison
> (/downloads/tools/winflexbison), so if there is a way for
> win_bison.exe and win_flex.exe to be copied to the build directory, these
> could be used instead of cygwin, making the build even easier)
>
> - vcpkg does have binary caching, perhaps making a github actions CI build
> using this method feasible?
>
>
>
> Anyway, thank you for your efforts! It made the first QGIS-step more
> pleasant. :)
>
>
>
> Best regards,
>
> Mats Taraldsvik
>
>
>
> On Mon, Feb 1, 2021 at 4:24 PM Uhrig, Stefan  wrote:
>
> Hi all,
>
>
>
> In my opinion, the build with Visual Studio 2019 and vcpkg is still too
> experimental to add it to the INSTALL.md file. It might break any day if
> QGIS requires a package or package version that is not available from vcpkg.
>
>
>
> Actually, I like the idea to add it to the "Show & tell" category. We can
> ask the community for their experiences with that setup. Does it work, is
> it getting used? If it is used by some "critical mass" a

Re: [QGIS-Developer] Temporary hold on merges please!

2021-03-02 Thread Matthias Kuhn
Thanks !

On Wed, Mar 3, 2021 at 12:14 AM Nyall Dawson  wrote:

> On Mon, 1 Mar 2021 at 09:11, Nyall Dawson  wrote:
> >
> > On Fri, 26 Feb 2021 at 17:11, Nyall Dawson 
> wrote:
> > >
> > > Hi all,
> > >
> > > Please don't merge any code to the QGIS repos right now -- we've
> > > identified an issue in the new CI setup which is causing some tests to
> > > report passing results when the test actually should be failing. Until
> > > we resolve this we can't be certain that code isn't breaking things,
> > > so PLEASE do NOT merge anything until further notice!!
> >
> > Update: the master and 3.18 branches are fixed and safe to merge to
> > again, but please hold off on any 3.16 backports until the CI on that
> > branch has also been repaired
>
> Ok, all resolved and back to normal again... phew :)
>
> Nyall
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Agreement

2021-03-02 Thread Alister Hood
Hi Chris,
If you're looking for suggestions on what part of the code to start with,
maybe it is worth looking at the list of issues tagged "easy fix", although
it looks like it isn't really maintained:
https://github.com/qgis/QGIS/issues?q=is%3Aopen+is%3Aissue+label%3A%22Easy+fix%22

Regards,
Alister

From: Peter Petrik 
> To: ch...@clandegrassi.com
> Cc: qgis-developer 
> Subject: Re: [QGIS-Developer] Agreement
> Message-ID:
>  zgy...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Chris and welcome to the team.
>
> Now when you create a pull request, we will review it and give you
> feedback. If you are stuck, feel free to write to the mailing list or
> chat(s) and seek for the help. Best is to start with some easy bug fixes in
> the area of the code you would like to contribute to.
>
> Kind regards,
> Peter
>
> On Tue, Mar 2, 2021 at 4:12 AM  wrote:
>
> >
> > Hello,
> > I apologize in advance if this is going to the wrong place.
> >
> > I have read the New Developer Requirements at
> >
> >
> https://www.qgis.org/en/site/getinvolved/development/contributor_requirements.html
> > and I agree to the Code(s).
> >
> > I am a Software Engineer/GIS Analyst and I would like to contribute to
> > QGIS.
> > I have cloned the repository and successfuly completed the buid following
> > the posted document.
> > I can help with bugs, new code and Plugins.
> >
> > Please let me know how to proceed.
> >
> > Thank you
> > Cheers
> > Chris Degrassi
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] PYQGIS - Numpy array to QgsRasterLayer without writing to file first

2021-03-02 Thread Benjamin Jakimow

Hi Eric,

you might try to use a /vsimem/ path. For example, save your image to 
"/vsimem/myimage.tif" and
open it as QgsRasterLayer. I haven't tested it with gdal.Datasets, but 
it works with with ogr.DataSources.
Probably you shouldn't overwrite or delete the "/vsimem" object while 
QGIS has still a reference on it.


More details here: 
https://gdal.org/user/virtual_file_systems.html#vsimem-in-memory-files


Greetings,

Benjamin

On 2021-03-03 00:00, Eric Younkin - NOAA Federal wrote:


Hello,

I've been trying to figure out how to draw grids and lines from numpy 
arrays without driving to a raster/vector file first.  I tried using 
the gdal 'MEM' driver to make a gdal Dataset from a numpy array and 
pass that in as a QgsRasterLayer, I get the following:



memobj
*' at 0x019B3131AC30> >
QgsRasterLayer(memobj, 'testlayer', 'gdal') Traceback (most recent 
call last):

File "", line 1, in 
TypeError: QgsRasterLayer(): arguments did not match any overloaded 
call:

overload 1: too many arguments
overload 2: argument 1 has unexpected type 'Dataset'

The only other approach that I could find was:

https://gis.stackexchange.com/questions/201804/how-to-create-raster-layer-directly-from-numpy-array-in-qgis-without-saving-to

but I suspect that the return from the processing.run command is 
probably a temp file, so it is still going to file.  Is there not a way 
to generate a raster layer from a numpy array without writing to file 
first?


Thanks,
Eric
--

Eric Younkin
Physical Scientist

NOAA OCS, Hydrographic Systems and Technology Branch
1315 East-West Highway
N/CS11, Room 6604
Silver Spring, MD 20910
Office: 240-847-8208
Cell: 828-331-8197

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


--
--
Benjamin Jakimow, Doctoral Researcher
Earth Observation Lab | Geography Department | Humboldt-Universität zu 
Berlin


e-mail: benjamin.jaki...@geo.hu-berlin.de

phone:  +49 (0) 30 2093 6894
mobile: +49 (0) 157 5656 8477
fax:+49 (0) 30 2093 6848
mail:   Unter den Linden 6 | 10099 Berlin | Germany
room: 2'222___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Reading NetCDF mesh data

2021-03-02 Thread Saber Razmjooei
Hi James,

Similar issue was reported on the MDAL repo:
https://github.com/lutraconsulting/MDAL/issues/155

ADCIRC netcdf appears not to be fully compliant with UGRID and hence you
get the error.

I hope this helps. If not, please open a ticket on MDAL and pass us some
example file and we can dig in deeper to find the issue.

Kind regards
Saber


On Tue, 2 Mar 2021 at 19:27, James McManus  wrote:

> Hi - I'm using QGIS 3.16.1 to read ADCIRC NetCDF Mesh file. When I open
> the file it produces the following error statement:
>
> HDF5-DIAG: Error detected in HDF5 (1.10.6) thread 139951069413888:
>   #000: H5A.c line 430 in H5Aopen(): unable to load attribute info from
> object header for attribute: 'File Type'
> major: Attribute
> minor: Can't open object
>   #001: H5Aint.c line 433 in H5A__open(): unable to load attribute info
> from object header for attribute: 'File Type'
> major: Attribute
> minor: Can't open object
>   #002: H5Oattribute.c line 497 in H5O__attr_open_by_name(): can't open
> attribute
> major: Attribute
> minor: Can't open object
>   #003: H5Adense.c line 429 in H5A__dense_open(): can't locate attribute
> in name index
> major: Attribute
> minor: Object not found
>
> The file is read in properly, but do you know why I am getting this error?
>
> Thanks
> Jim McManus
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>


-- 
Saber Razmjooei
www.lutraconsulting.co.uk
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] WITH_PDAL and WITH_EPT doubt

2021-03-02 Thread Alexandre Neto
Great, thanks!

A quarta, 3/03/2021, 02:03, Nyall Dawson  escreveu:

> On Wed, 3 Mar 2021 at 11:59, Alexandre Neto  wrote:
> >
> > Hi,
> >
> > I am trying to add point cloud support to QGIS on conda-forge [0], but I
> am unsure if I need to use
> > WITH_PDAL=TRUE
>
> yes, you'll need to add this even if you have pdal library available.
> it defaults to false to avoid breaking the compilation if pdal isn't
> available (and we want explicit breaks here rather than silently
> compiling without pdal provider if the library isn't found).
>
> > and WITH_EPT=TRUE
>
> That defaults to true anyway, so you can omit it if you want.
>
> Nyall
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


[QGIS-Developer] PYQGIS - Numpy array to QgsRasterLayer without writing to file first

2021-03-02 Thread Eric Younkin - NOAA Federal
Hello,

I've been trying to figure out how to draw grids and lines from numpy
arrays without driving to a raster/vector file first.  I tried using the
gdal 'MEM' driver to make a gdal Dataset from a numpy array and pass that
in as a QgsRasterLayer, I get the following:

>>> memobj
 >
>>> QgsRasterLayer(memobj, 'testlayer', 'gdal')
Traceback (most recent call last):
  File "", line 1, in 
TypeError: QgsRasterLayer(): arguments did not match any overloaded call:
  overload 1: too many arguments
  overload 2: argument 1 has unexpected type 'Dataset'

The only other approach that I could find was:

https://gis.stackexchange.com/questions/201804/how-to-create-raster-layer-directly-from-numpy-array-in-qgis-without-saving-to

but I suspect that the return from the processing.run command is probably a
temp file, so it is still going to file.  Is there not a way to generate a
raster layer from a numpy array without writing to file first?

Thanks,
Eric

-- 
Eric Younkin
Physical Scientist
NOAA OCS, Hydrographic Systems and Technology Branch
1315 East-West Highway
N/CS11, Room 6604
Silver Spring, MD 20910
Office: 240-847-8208
Cell: 828-331-8197
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] WITH_PDAL and WITH_EPT doubt

2021-03-02 Thread Nyall Dawson
On Wed, 3 Mar 2021 at 11:59, Alexandre Neto  wrote:
>
> Hi,
>
> I am trying to add point cloud support to QGIS on conda-forge [0], but I am 
> unsure if I need to use
> WITH_PDAL=TRUE

yes, you'll need to add this even if you have pdal library available.
it defaults to false to avoid breaking the compilation if pdal isn't
available (and we want explicit breaks here rather than silently
compiling without pdal provider if the library isn't found).

> and WITH_EPT=TRUE

That defaults to true anyway, so you can omit it if you want.

Nyall
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


[QGIS-Developer] WITH_PDAL and WITH_EPT doubt

2021-03-02 Thread Alexandre Neto
Hi,

I am trying to add point cloud support to QGIS on conda-forge [0]
, but I am unsure
if I need to use
WITH_PDAL=TRUE and WITH_EPT=TRUE or just make sure PDAL is available from
the packaging repositories.

Will anything be missing if I skip these two during the compilation?

Thanks,

Alexandre Neto

[0] - https://github.com/conda-forge/qgis-feedstock/pull/174
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Voronoi tool missing from processing, what could be wrong?

2021-03-02 Thread Tim Sutton
Haha, thanks! You are fixing the issue faster than I can document it :-P

Regards

Tim

On Tue, Mar 2, 2021 at 11:41 PM Nyall Dawson  wrote:

> On Wed, 3 Mar 2021 at 09:12, Nyall Dawson  wrote:
> >
> > On Wed, 3 Mar 2021 at 09:10, Tim Sutton  wrote:
> > >
> > > Hi
> > >
> > > Can you check if you have python-psycopg2 installed on your system? I
> had a similar issue a month or two back which was fixed by installing it.
> (Thanks for the nudge Nyall).
> >
> > Ah -- that was the one!  I thought it was gdal for some reason...
> > flaky memory :)
> >
> > We should really investigate why this caused a silent failure to show
> > the algorithms instead of an error...
>
> Or I could JFDI :P https://github.com/qgis/QGIS/pull/41985
>
> Nyall
>
>
> >
> > Nyall
> >
> >
> > >
> > > Regards
> > >
> > > Tim
> > >
> > > On Tue, Mar 2, 2021 at 11:19 AM Hernán De Angelis <
> variablestarli...@gmail.com> wrote:
> > >>
> > >>
> > >> On 2021-03-02 10:51, Richard Duivenvoorde wrote:
> > >> > On 3/2/21 10:41 AM, Hernán De Angelis wrote:
> > >> >> On 2021-03-02 10:21, Nyall Dawson wrote:
> > >> >>> On Tue, 2 Mar 2021 at 18:34, Hernán De Angelis
> > >> >>>  wrote:
> > >>  Hi,
> > >> 
> > >>  I wrote about this a few days ago in the user list but I still
> have the
> > >>  problem and can find neither a cause nor a solution. I thus post
> it in
> > >>  this list in the hope that some developer may have a hint on
> what is
> > >>  going wrong here.
> > >> >>> Double check that you have the gdal python packages installed
> > >> >> Thanks for this,
> > >> >>
> > >> >> from osgeo import gdal
> > >> >>
> > >> >> just works, so I guess it is installed.
> > >> > What is the value of
> > >> > BINDINGS_GLOBAL_INSTALL
> > >> > in your compile config?
> > >> The value is "YES"
> > >> >
> > >> > Looks like something is not picked up with your install.
> > >> Agree
> > >> >
> > >> > What if you run qgis 31.8 from the 'output/bin' dir in your build
> directory?
> > >> Behaves just the same
> > >> >
> > >> > If all fails I would (I think) compile and set CMAKE_INSTALL_PREFIX
> in some local dir in your HOME
> > >> >
> > >> > I did in ~/bin/qgis_/3.18/debug (for debug build):
> > >> >
> > >> > And create a startup script like
> > >> >
> > >> > export
> LD_LIBRARY_PATH=~/bin/qgis_/3.18/debug/lib/:/usr/lib/grass78/lib/
> > >> > export
> PYTHONPATH=~/bin/qgis_/3.18/debug/share/qgis/python:$PYTHONPATH
> > >> > export QGIS_DEBUG=0
> > >> > # passing ALL parameters to qgis bin
> > >> > # eg to be able to call a certain translation
> > >> > # qgis --lang nl
> > >> > ~/bin/qgis_/3.18/debug/bin/qgis "$@"
> > >>
> > >> Thanks, will think about this and try it.
> > >>
> > >> Thank you again for your ansers. I see I have a sort of
> linking/library
> > >> problem. GRASS is installed and GRASS modules are compiled but then
> > >> these do not appear either in the menu.
> > >>
> > >>
> > >> /Hernán
> > >>
> > >>
> > >> >
> > >> > Suc6
> > >> >
> > >> > Richard Duivenvoorde
> > >> ___
> > >> QGIS-Developer mailing list
> > >> QGIS-Developer@lists.osgeo.org
> > >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> > >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> > >
> > >
> > >
> > > --
> > >
> --
> > >
> > > Tim Sutton
> > > Visit http://kartoza.com to find out about open source:
> > >  * Desktop GIS programming services
> > >  * Geospatial web development
> > > * GIS Training
> > > * Consulting Services
> > > Tim is a member of the QGIS Project Steering Committee
> > >
> ---
> > > ___
> > > QGIS-Developer mailing list
> > > QGIS-Developer@lists.osgeo.org
> > > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> > > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>


-- 
--
​

Tim Sutton
Visit http://kartoza.com to find out about open source:
 * Desktop GIS programming services
 * Geospatial web development
* GIS Training
* Consulting Services
Tim is a member of the QGIS Project Steering Committee
---
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Voronoi tool missing from processing, what could be wrong?

2021-03-02 Thread Tim Sutton
Hi

I made this so my previous noodling around to fix the issue are captured
somewhere:

https://github.com/qgis/QGIS/issues/41984

I guess QgsRuntimeProfiler.profile is just sweeping the exceptions under
the rug rather than letting them surface?

Regards

Tim

On Tue, Mar 2, 2021 at 11:12 PM Nyall Dawson  wrote:

> On Wed, 3 Mar 2021 at 09:10, Tim Sutton  wrote:
> >
> > Hi
> >
> > Can you check if you have python-psycopg2 installed on your system? I
> had a similar issue a month or two back which was fixed by installing it.
> (Thanks for the nudge Nyall).
>
> Ah -- that was the one!  I thought it was gdal for some reason...
> flaky memory :)
>
> We should really investigate why this caused a silent failure to show
> the algorithms instead of an error...
>
> Nyall
>
>
> >
> > Regards
> >
> > Tim
> >
> > On Tue, Mar 2, 2021 at 11:19 AM Hernán De Angelis <
> variablestarli...@gmail.com> wrote:
> >>
> >>
> >> On 2021-03-02 10:51, Richard Duivenvoorde wrote:
> >> > On 3/2/21 10:41 AM, Hernán De Angelis wrote:
> >> >> On 2021-03-02 10:21, Nyall Dawson wrote:
> >> >>> On Tue, 2 Mar 2021 at 18:34, Hernán De Angelis
> >> >>>  wrote:
> >>  Hi,
> >> 
> >>  I wrote about this a few days ago in the user list but I still
> have the
> >>  problem and can find neither a cause nor a solution. I thus post
> it in
> >>  this list in the hope that some developer may have a hint on what
> is
> >>  going wrong here.
> >> >>> Double check that you have the gdal python packages installed
> >> >> Thanks for this,
> >> >>
> >> >> from osgeo import gdal
> >> >>
> >> >> just works, so I guess it is installed.
> >> > What is the value of
> >> > BINDINGS_GLOBAL_INSTALL
> >> > in your compile config?
> >> The value is "YES"
> >> >
> >> > Looks like something is not picked up with your install.
> >> Agree
> >> >
> >> > What if you run qgis 31.8 from the 'output/bin' dir in your build
> directory?
> >> Behaves just the same
> >> >
> >> > If all fails I would (I think) compile and set CMAKE_INSTALL_PREFIX
> in some local dir in your HOME
> >> >
> >> > I did in ~/bin/qgis_/3.18/debug (for debug build):
> >> >
> >> > And create a startup script like
> >> >
> >> > export
> LD_LIBRARY_PATH=~/bin/qgis_/3.18/debug/lib/:/usr/lib/grass78/lib/
> >> > export PYTHONPATH=~/bin/qgis_/3.18/debug/share/qgis/python:$PYTHONPATH
> >> > export QGIS_DEBUG=0
> >> > # passing ALL parameters to qgis bin
> >> > # eg to be able to call a certain translation
> >> > # qgis --lang nl
> >> > ~/bin/qgis_/3.18/debug/bin/qgis "$@"
> >>
> >> Thanks, will think about this and try it.
> >>
> >> Thank you again for your ansers. I see I have a sort of linking/library
> >> problem. GRASS is installed and GRASS modules are compiled but then
> >> these do not appear either in the menu.
> >>
> >>
> >> /Hernán
> >>
> >>
> >> >
> >> > Suc6
> >> >
> >> > Richard Duivenvoorde
> >> ___
> >> QGIS-Developer mailing list
> >> QGIS-Developer@lists.osgeo.org
> >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> >
> >
> >
> > --
> >
> --
> >
> > Tim Sutton
> > Visit http://kartoza.com to find out about open source:
> >  * Desktop GIS programming services
> >  * Geospatial web development
> > * GIS Training
> > * Consulting Services
> > Tim is a member of the QGIS Project Steering Committee
> >
> ---
> > ___
> > QGIS-Developer mailing list
> > QGIS-Developer@lists.osgeo.org
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>


-- 
--

Tim Sutton
Visit http://kartoza.com to find out about open source:
 * Desktop GIS programming services
 * Geospatial web development
* GIS Training
* Consulting Services
Tim is a member of the QGIS Project Steering Committee
---
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Voronoi tool missing from processing, what could be wrong?

2021-03-02 Thread Nyall Dawson
On Wed, 3 Mar 2021 at 09:12, Nyall Dawson  wrote:
>
> On Wed, 3 Mar 2021 at 09:10, Tim Sutton  wrote:
> >
> > Hi
> >
> > Can you check if you have python-psycopg2 installed on your system? I had a 
> > similar issue a month or two back which was fixed by installing it. (Thanks 
> > for the nudge Nyall).
>
> Ah -- that was the one!  I thought it was gdal for some reason...
> flaky memory :)
>
> We should really investigate why this caused a silent failure to show
> the algorithms instead of an error...

Or I could JFDI :P https://github.com/qgis/QGIS/pull/41985

Nyall


>
> Nyall
>
>
> >
> > Regards
> >
> > Tim
> >
> > On Tue, Mar 2, 2021 at 11:19 AM Hernán De Angelis 
> >  wrote:
> >>
> >>
> >> On 2021-03-02 10:51, Richard Duivenvoorde wrote:
> >> > On 3/2/21 10:41 AM, Hernán De Angelis wrote:
> >> >> On 2021-03-02 10:21, Nyall Dawson wrote:
> >> >>> On Tue, 2 Mar 2021 at 18:34, Hernán De Angelis
> >> >>>  wrote:
> >>  Hi,
> >> 
> >>  I wrote about this a few days ago in the user list but I still have 
> >>  the
> >>  problem and can find neither a cause nor a solution. I thus post it in
> >>  this list in the hope that some developer may have a hint on what is
> >>  going wrong here.
> >> >>> Double check that you have the gdal python packages installed
> >> >> Thanks for this,
> >> >>
> >> >> from osgeo import gdal
> >> >>
> >> >> just works, so I guess it is installed.
> >> > What is the value of
> >> > BINDINGS_GLOBAL_INSTALL
> >> > in your compile config?
> >> The value is "YES"
> >> >
> >> > Looks like something is not picked up with your install.
> >> Agree
> >> >
> >> > What if you run qgis 31.8 from the 'output/bin' dir in your build 
> >> > directory?
> >> Behaves just the same
> >> >
> >> > If all fails I would (I think) compile and set CMAKE_INSTALL_PREFIX in 
> >> > some local dir in your HOME
> >> >
> >> > I did in ~/bin/qgis_/3.18/debug (for debug build):
> >> >
> >> > And create a startup script like
> >> >
> >> > export LD_LIBRARY_PATH=~/bin/qgis_/3.18/debug/lib/:/usr/lib/grass78/lib/
> >> > export PYTHONPATH=~/bin/qgis_/3.18/debug/share/qgis/python:$PYTHONPATH
> >> > export QGIS_DEBUG=0
> >> > # passing ALL parameters to qgis bin
> >> > # eg to be able to call a certain translation
> >> > # qgis --lang nl
> >> > ~/bin/qgis_/3.18/debug/bin/qgis "$@"
> >>
> >> Thanks, will think about this and try it.
> >>
> >> Thank you again for your ansers. I see I have a sort of linking/library
> >> problem. GRASS is installed and GRASS modules are compiled but then
> >> these do not appear either in the menu.
> >>
> >>
> >> /Hernán
> >>
> >>
> >> >
> >> > Suc6
> >> >
> >> > Richard Duivenvoorde
> >> ___
> >> QGIS-Developer mailing list
> >> QGIS-Developer@lists.osgeo.org
> >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> >
> >
> >
> > --
> > --
> >
> > Tim Sutton
> > Visit http://kartoza.com to find out about open source:
> >  * Desktop GIS programming services
> >  * Geospatial web development
> > * GIS Training
> > * Consulting Services
> > Tim is a member of the QGIS Project Steering Committee
> > ---
> > ___
> > QGIS-Developer mailing list
> > QGIS-Developer@lists.osgeo.org
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Temporary hold on merges please!

2021-03-02 Thread Nyall Dawson
On Mon, 1 Mar 2021 at 09:11, Nyall Dawson  wrote:
>
> On Fri, 26 Feb 2021 at 17:11, Nyall Dawson  wrote:
> >
> > Hi all,
> >
> > Please don't merge any code to the QGIS repos right now -- we've
> > identified an issue in the new CI setup which is causing some tests to
> > report passing results when the test actually should be failing. Until
> > we resolve this we can't be certain that code isn't breaking things,
> > so PLEASE do NOT merge anything until further notice!!
>
> Update: the master and 3.18 branches are fixed and safe to merge to
> again, but please hold off on any 3.16 backports until the CI on that
> branch has also been repaired

Ok, all resolved and back to normal again... phew :)

Nyall
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Voronoi tool missing from processing, what could be wrong?

2021-03-02 Thread Nyall Dawson
On Wed, 3 Mar 2021 at 09:10, Tim Sutton  wrote:
>
> Hi
>
> Can you check if you have python-psycopg2 installed on your system? I had a 
> similar issue a month or two back which was fixed by installing it. (Thanks 
> for the nudge Nyall).

Ah -- that was the one!  I thought it was gdal for some reason...
flaky memory :)

We should really investigate why this caused a silent failure to show
the algorithms instead of an error...

Nyall


>
> Regards
>
> Tim
>
> On Tue, Mar 2, 2021 at 11:19 AM Hernán De Angelis 
>  wrote:
>>
>>
>> On 2021-03-02 10:51, Richard Duivenvoorde wrote:
>> > On 3/2/21 10:41 AM, Hernán De Angelis wrote:
>> >> On 2021-03-02 10:21, Nyall Dawson wrote:
>> >>> On Tue, 2 Mar 2021 at 18:34, Hernán De Angelis
>> >>>  wrote:
>>  Hi,
>> 
>>  I wrote about this a few days ago in the user list but I still have the
>>  problem and can find neither a cause nor a solution. I thus post it in
>>  this list in the hope that some developer may have a hint on what is
>>  going wrong here.
>> >>> Double check that you have the gdal python packages installed
>> >> Thanks for this,
>> >>
>> >> from osgeo import gdal
>> >>
>> >> just works, so I guess it is installed.
>> > What is the value of
>> > BINDINGS_GLOBAL_INSTALL
>> > in your compile config?
>> The value is "YES"
>> >
>> > Looks like something is not picked up with your install.
>> Agree
>> >
>> > What if you run qgis 31.8 from the 'output/bin' dir in your build 
>> > directory?
>> Behaves just the same
>> >
>> > If all fails I would (I think) compile and set CMAKE_INSTALL_PREFIX in 
>> > some local dir in your HOME
>> >
>> > I did in ~/bin/qgis_/3.18/debug (for debug build):
>> >
>> > And create a startup script like
>> >
>> > export LD_LIBRARY_PATH=~/bin/qgis_/3.18/debug/lib/:/usr/lib/grass78/lib/
>> > export PYTHONPATH=~/bin/qgis_/3.18/debug/share/qgis/python:$PYTHONPATH
>> > export QGIS_DEBUG=0
>> > # passing ALL parameters to qgis bin
>> > # eg to be able to call a certain translation
>> > # qgis --lang nl
>> > ~/bin/qgis_/3.18/debug/bin/qgis "$@"
>>
>> Thanks, will think about this and try it.
>>
>> Thank you again for your ansers. I see I have a sort of linking/library
>> problem. GRASS is installed and GRASS modules are compiled but then
>> these do not appear either in the menu.
>>
>>
>> /Hernán
>>
>>
>> >
>> > Suc6
>> >
>> > Richard Duivenvoorde
>> ___
>> QGIS-Developer mailing list
>> QGIS-Developer@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
>
> --
> --
>
> Tim Sutton
> Visit http://kartoza.com to find out about open source:
>  * Desktop GIS programming services
>  * Geospatial web development
> * GIS Training
> * Consulting Services
> Tim is a member of the QGIS Project Steering Committee
> ---
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Voronoi tool missing from processing, what could be wrong?

2021-03-02 Thread Tim Sutton
Hi

Can you check if you have python-psycopg2 installed on your system? I had a
similar issue a month or two back which was fixed by installing it. (Thanks
for the nudge Nyall).

Regards

Tim

On Tue, Mar 2, 2021 at 11:19 AM Hernán De Angelis <
variablestarli...@gmail.com> wrote:

>
> On 2021-03-02 10:51, Richard Duivenvoorde wrote:
> > On 3/2/21 10:41 AM, Hernán De Angelis wrote:
> >> On 2021-03-02 10:21, Nyall Dawson wrote:
> >>> On Tue, 2 Mar 2021 at 18:34, Hernán De Angelis
> >>>  wrote:
>  Hi,
> 
>  I wrote about this a few days ago in the user list but I still have
> the
>  problem and can find neither a cause nor a solution. I thus post it in
>  this list in the hope that some developer may have a hint on what is
>  going wrong here.
> >>> Double check that you have the gdal python packages installed
> >> Thanks for this,
> >>
> >> from osgeo import gdal
> >>
> >> just works, so I guess it is installed.
> > What is the value of
> > BINDINGS_GLOBAL_INSTALL
> > in your compile config?
> The value is "YES"
> >
> > Looks like something is not picked up with your install.
> Agree
> >
> > What if you run qgis 31.8 from the 'output/bin' dir in your build
> directory?
> Behaves just the same
> >
> > If all fails I would (I think) compile and set CMAKE_INSTALL_PREFIX in
> some local dir in your HOME
> >
> > I did in ~/bin/qgis_/3.18/debug (for debug build):
> >
> > And create a startup script like
> >
> > export LD_LIBRARY_PATH=~/bin/qgis_/3.18/debug/lib/:/usr/lib/grass78/lib/
> > export PYTHONPATH=~/bin/qgis_/3.18/debug/share/qgis/python:$PYTHONPATH
> > export QGIS_DEBUG=0
> > # passing ALL parameters to qgis bin
> > # eg to be able to call a certain translation
> > # qgis --lang nl
> > ~/bin/qgis_/3.18/debug/bin/qgis "$@"
>
> Thanks, will think about this and try it.
>
> Thank you again for your ansers. I see I have a sort of linking/library
> problem. GRASS is installed and GRASS modules are compiled but then
> these do not appear either in the menu.
>
>
> /Hernán
>
>
> >
> > Suc6
> >
> > Richard Duivenvoorde
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>


-- 
--
​

Tim Sutton
Visit http://kartoza.com to find out about open source:
 * Desktop GIS programming services
 * Geospatial web development
* GIS Training
* Consulting Services
Tim is a member of the QGIS Project Steering Committee
---
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] QGIS Select by Location, but no within a distance of

2021-03-02 Thread Nyall Dawson
On Wed, 3 Mar 2021 at 04:59, C Hamilton  wrote:
>
> I just had a user tell me he had to go back to ArcGIS so that he could use 
> the Select by Location function and specify a distance from the feature. He 
> could not believe that it was not available in QGIS. See
>
> https://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/using-select-by-location.htm
>
> What he is looking for is the "Are within a distance of" operator. Am I 
> missing it in QGIS if not this is a really important operator to include. I 
> know you can always prebuffer the layer, but for an analyst who does this 
> regularly ours will go back to using ArcGIS.
>
> Would this be fairly easy to implement?

Reasonably so - the bulk of the required changes would all sit within
QgsLocationBasedAlgorithm , specifically in
QgsLocationBasedAlgorithm::processByIteratingOverTargetSource and
QgsLocationBasedAlgorithm::processByIteratingOverIntersectSource
(there's two code paths there, and the one called will depend on
whether its more efficient to iterate over the first or second layer
-- this dual-logic approach is why these algorithms and join by
location are much faster then the intersection algorithm as previously
discussed!). In both of these you'd basically expand out the size of
the bounding box used to request matching features via
QgsRectangle::grow (so the larger bounding box is handed off to the
underlying data provider spatial index for filtering), and then change
the "isMatch" test to use engine->distance(  ) <= buffer distance.
(Might also be worth first testing if the geometries intersect before
calculating the distance as it may be more efficient to do this, but
would need to be tested to verify.). On GEOS >= 3.9 based builds the
distance(... ) check is optimised and uses indexes, so it should be
very fast to perform this check! (As opposed to the inefficient
"buffer the geometries" approach). Basically we'd want to follow
PostGIS ST_DWithin approach, not a ST_Intersects(ST_Buffer(...))
approach.

If I was quoting for a customer I'd estimate 5 hours total for the
change, but of course YMMV.

Nyall


>
> Calvin
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


[QGIS-Developer] Reading NetCDF mesh data

2021-03-02 Thread James McManus
Hi - I'm using QGIS 3.16.1 to read ADCIRC NetCDF Mesh file. When I open the
file it produces the following error statement:

HDF5-DIAG: Error detected in HDF5 (1.10.6) thread 139951069413888:
  #000: H5A.c line 430 in H5Aopen(): unable to load attribute info from
object header for attribute: 'File Type'
major: Attribute
minor: Can't open object
  #001: H5Aint.c line 433 in H5A__open(): unable to load attribute info
from object header for attribute: 'File Type'
major: Attribute
minor: Can't open object
  #002: H5Oattribute.c line 497 in H5O__attr_open_by_name(): can't open
attribute
major: Attribute
minor: Can't open object
  #003: H5Adense.c line 429 in H5A__dense_open(): can't locate attribute in
name index
major: Attribute
minor: Object not found

The file is read in properly, but do you know why I am getting this error?

Thanks
Jim McManus
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


[QGIS-Developer] QGIS Select by Location, but no within a distance of

2021-03-02 Thread C Hamilton
I just had a user tell me he had to go back to ArcGIS so that he could use
the Select by Location function and specify a distance from the feature. He
could not believe that it was not available in QGIS. See

https://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/using-select-by-location.htm

What he is looking for is the "Are within a distance of" operator. Am I
missing it in QGIS if not this is a really important operator to include. I
know you can always prebuffer the layer, but for an analyst who does this
regularly ours will go back to using ArcGIS.

Would this be fairly easy to implement?

Calvin
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Voronoi tool missing from processing, what could be wrong?

2021-03-02 Thread Hernán De Angelis


On 2021-03-02 10:51, Richard Duivenvoorde wrote:

On 3/2/21 10:41 AM, Hernán De Angelis wrote:

On 2021-03-02 10:21, Nyall Dawson wrote:

On Tue, 2 Mar 2021 at 18:34, Hernán De Angelis
 wrote:

Hi,

I wrote about this a few days ago in the user list but I still have the
problem and can find neither a cause nor a solution. I thus post it in
this list in the hope that some developer may have a hint on what is
going wrong here.

Double check that you have the gdal python packages installed

Thanks for this,

from osgeo import gdal

just works, so I guess it is installed.

What is the value of
BINDINGS_GLOBAL_INSTALL
in your compile config?

The value is "YES"


Looks like something is not picked up with your install.

Agree


What if you run qgis 31.8 from the 'output/bin' dir in your build directory?

Behaves just the same


If all fails I would (I think) compile and set CMAKE_INSTALL_PREFIX in some 
local dir in your HOME

I did in ~/bin/qgis_/3.18/debug (for debug build):

And create a startup script like

export LD_LIBRARY_PATH=~/bin/qgis_/3.18/debug/lib/:/usr/lib/grass78/lib/
export PYTHONPATH=~/bin/qgis_/3.18/debug/share/qgis/python:$PYTHONPATH
export QGIS_DEBUG=0
# passing ALL parameters to qgis bin
# eg to be able to call a certain translation
# qgis --lang nl
~/bin/qgis_/3.18/debug/bin/qgis "$@"


Thanks, will think about this and try it.

Thank you again for your ansers. I see I have a sort of linking/library 
problem. GRASS is installed and GRASS modules are compiled but then 
these do not appear either in the menu.



/Hernán




Suc6

Richard Duivenvoorde

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


Re: [QGIS-Developer] Building QGIS with Visual Studio 2019 CE and vcpkg

2021-03-02 Thread Uhrig, Stefan
Hi Benjamin,

I could reproduce the build issues with the current QGIS head. The easiest 
workaround I found was defining _HAS_AUTO_PTR_ETC globally. This will solve 
both the libspatialindex and exiv2 issue.

I defined _HAS_AUTO_PTR_ETC globally in the Visual Studio CMake Settings by 
checking “Show Advanced Variables” and adding /D_HAS_AUTO_PTR_ETC to 
CMAKE_CXX_FLAGS.

Something similar is currently done locally for exiv2 and Clang: 
https://github.com/qgis/QGIS/blob/c6699b28b20ede3f9a6627ae300a670f28312a83/src/analysis/CMakeLists.txt#L449

When I have some spare time, I’ll try to get libspatialindex 1.9.3 to vcpkg. 
The exiv2 issue will only be resolved with 0.28, and that’s not released yet.

Best regards,
Stefan


From: Benjamin Jakimow 
Sent: Tuesday, March 2, 2021 6:59 AM
To: Uhrig, Stefan 
Cc: qgis-developer 
Subject: Re: [QGIS-Developer] Building QGIS with Visual Studio 2019 CE and vcpkg


Hello Stefan.

in my local repo I updated libspatialindex\portfile.cmake to 1.9.3 by

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO libspatialindex/libspatialindex
REF 1.9.3
SHA512 
d4c608abbd631dc163b7b4fb6bf09dee3e85ce692a5f8875d51f05a26e09c75cd17dff1ed9d2c232a071f0f5864d21d877b4cbc252f3416896db24dfa3fa18cb
HEAD_REF master
)

and removed the older patchfile.

However, in the end I had to give up, because MSVC did not compile Exiv2 with 
C++17.

Best regards,

Benjamin
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


[QGIS-Developer] OSGEO QGIS 3.18.0 broken?

2021-03-02 Thread Jakob
Just installed OSGEO QGIS 3.18.0 on Windows 10 on a clean machine. Now QGIS
cannot start claiming:

---
qgis-bin.exe - Entry point was not found
---
Procedure entrance point
?staticMetaObject@QgsPointCloudAttributeComboBox@@2UQMetaObject@@B was not
found in DLL-library C:\OSGEO4~1\apps\qgis\bin\qgis_app.dll. 

Installed OSGEO QGIS 3.18.0 on another Windows machine 3 days ago with no
problem.

Tried reinstall with no luck.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Voronoi tool missing from processing, what could be wrong?

2021-03-02 Thread Hernán De Angelis

On 2021-03-02 10:45, Richard Duivenvoorde wrote:

On 3/2/21 9:51 AM, Hernán De Angelis wrote:

On 2021-03-02 09:48, Alexandre Neto wrote:

Might seem obvious, but have you tried using a brand new profile?


Yes, I just forgot to add that to the description below.

Or even a new profiles_path ?

$ qgis --help
QGIS is a user friendly Open Source Geographic Information System.
Usage: qgis [OPTION] [FILE]
   OPTION:
[--version] display version information and exit
[--snapshot filename]   emit snapshot of loaded datasets to given file
[--width width] width of snapshot to emit
[--height height]   height of snapshot to emit
[--lang language]   use language for interface text (changes 
existing override)
[--project projectfile] load the given QGIS project
[--extent xmin,ymin,xmax,ymax]  set initial map extent
[--nologo]  hide splash screen
[--noversioncheck]  don't check for new version of QGIS at startup
[--noplugins]   don't restore plugins on startup
[--nocustomization] don't apply GUI customization
[--customizationfile path]  use the given ini file as GUI 
customization
[--globalsettingsfile path] use the given ini file as Global 
Settings (defaults)
[--authdbdirectory path] use the given directory for authentication 
database
[--code path]   run the given python file on load
[--defaultui]   start by resetting user ui settings to default
[--hide-browser]hide the browser widget
[--dxf-export filename.dxf] emit dxf output of loaded datasets to 
given file
[--dxf-extent xmin,ymin,xmax,ymax]  set extent to export to dxf
[--dxf-symbology-mode none|symbollayer|feature] symbology mode for dxf 
output
[--dxf-scale-denom scale]   scale for dxf output
[--dxf-encoding encoding]   encoding to use for dxf output
[--dxf-map-theme maptheme]  map theme to use for dxf output
[--take-screenshots output_path]take screen shots for the user 
documentation
[--screenshots-categories categories]   specify the categories of 
screenshot to be used (see QgsAppScreenShots::Categories).
[--profile name]load a named profile from the users profiles 
folder.
[--profiles-path path]  path to store user profile folders. Will create 
profiles inside a {path}\profiles folder
[--version-migration]   force the settings migration from older version 
if found
[--openclprogramfolder] path to the folder containing the 
sources for OpenCL programs.
[--help]this text
[--]treat all following arguments as FILEs


So:

qgis --profiles-name /tmp/superclean

I would not know if this would help... but just in case


Thanks you Richard, but that did not work either.

Thanks Alexander and Nyall too.


This is happening in a fresh install (one month old) of openSUSE 
Tumbleweed in a new machine. No older profiles to blame here. Also I did 
delete the profiles many times.


No clue by now, will have to keep looking.

Thanks again everyone

Hernán

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


Re: [QGIS-Developer] Voronoi tool missing from processing, what could be wrong?

2021-03-02 Thread Richard Duivenvoorde
On 3/2/21 10:41 AM, Hernán De Angelis wrote:
> 
> On 2021-03-02 10:21, Nyall Dawson wrote:
>> On Tue, 2 Mar 2021 at 18:34, Hernán De Angelis
>>  wrote:
>>> Hi,
>>>
>>> I wrote about this a few days ago in the user list but I still have the
>>> problem and can find neither a cause nor a solution. I thus post it in
>>> this list in the hope that some developer may have a hint on what is
>>> going wrong here.
>> Double check that you have the gdal python packages installed
> 
> Thanks for this,
> 
> from osgeo import gdal
> 
> just works, so I guess it is installed.

What is the value of 
BINDINGS_GLOBAL_INSTALL
in your compile config?

Looks like something is not picked up with your install.

What if you run qgis 31.8 from the 'output/bin' dir in your build directory?

If all fails I would (I think) compile and set CMAKE_INSTALL_PREFIX in some 
local dir in your HOME

I did in ~/bin/qgis_/3.18/debug (for debug build):

And create a startup script like

export LD_LIBRARY_PATH=~/bin/qgis_/3.18/debug/lib/:/usr/lib/grass78/lib/
export PYTHONPATH=~/bin/qgis_/3.18/debug/share/qgis/python:$PYTHONPATH
export QGIS_DEBUG=0
# passing ALL parameters to qgis bin
# eg to be able to call a certain translation
# qgis --lang nl
~/bin/qgis_/3.18/debug/bin/qgis "$@"

Suc6

Richard Duivenvoorde
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Voronoi tool missing from processing, what could be wrong?

2021-03-02 Thread Richard Duivenvoorde
On 3/2/21 9:51 AM, Hernán De Angelis wrote:
> On 2021-03-02 09:48, Alexandre Neto wrote:
>> Might seem obvious, but have you tried using a brand new profile?
>>
> Yes, I just forgot to add that to the description below.

Or even a new profiles_path ?

$ qgis --help
QGIS is a user friendly Open Source Geographic Information System.
Usage: qgis [OPTION] [FILE]
  OPTION:
[--version] display version information and exit
[--snapshot filename]   emit snapshot of loaded datasets to given file
[--width width] width of snapshot to emit
[--height height]   height of snapshot to emit
[--lang language]   use language for interface text (changes 
existing override)
[--project projectfile] load the given QGIS project
[--extent xmin,ymin,xmax,ymax]  set initial map extent
[--nologo]  hide splash screen
[--noversioncheck]  don't check for new version of QGIS at startup
[--noplugins]   don't restore plugins on startup
[--nocustomization] don't apply GUI customization
[--customizationfile path]  use the given ini file as GUI 
customization
[--globalsettingsfile path] use the given ini file as Global 
Settings (defaults)
[--authdbdirectory path] use the given directory for authentication 
database
[--code path]   run the given python file on load
[--defaultui]   start by resetting user ui settings to default
[--hide-browser]hide the browser widget
[--dxf-export filename.dxf] emit dxf output of loaded datasets to 
given file
[--dxf-extent xmin,ymin,xmax,ymax]  set extent to export to dxf
[--dxf-symbology-mode none|symbollayer|feature] symbology mode for dxf 
output
[--dxf-scale-denom scale]   scale for dxf output
[--dxf-encoding encoding]   encoding to use for dxf output
[--dxf-map-theme maptheme]  map theme to use for dxf output
[--take-screenshots output_path]take screen shots for the user 
documentation
[--screenshots-categories categories]   specify the categories of 
screenshot to be used (see QgsAppScreenShots::Categories).
[--profile name]load a named profile from the users profiles 
folder.
[--profiles-path path]  path to store user profile folders. Will create 
profiles inside a {path}\profiles folder 
[--version-migration]   force the settings migration from older version 
if found
[--openclprogramfolder] path to the folder containing the 
sources for OpenCL programs.
[--help]this text
[--]treat all following arguments as FILEs


So:

qgis --profiles-name /tmp/superclean

I would not know if this would help... but just in case

Richard
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Voronoi tool missing from processing, what could be wrong?

2021-03-02 Thread Hernán De Angelis


On 2021-03-02 10:21, Nyall Dawson wrote:

On Tue, 2 Mar 2021 at 18:34, Hernán De Angelis
 wrote:

Hi,

I wrote about this a few days ago in the user list but I still have the
problem and can find neither a cause nor a solution. I thus post it in
this list in the hope that some developer may have a hint on what is
going wrong here.

Double check that you have the gdal python packages installed


Thanks for this,

from osgeo import gdal

just works, so I guess it is installed.




Nyall


In my installation the Voronoi Polygon tool is missing from the
Processing menu, both from the bar (vector geometry dialog) and the
processing panel. It is also not listed in the Python console (see below
whole listing).

But, the code seems to be present in the /usr/local/share... folder,
where other plugins live as well:

localhost:/usr/local # find ./share -name *oronoi*
./share/qgis/python/plugins/processing/algs/grass7/description/v.voronoi.skeleton.txt
./share/qgis/python/plugins/processing/algs/grass7/description/v.voronoi.txt
./share/qgis/python/plugins/processing/algs/grass7/ext/v_voronoi.py
./share/qgis/python/plugins/processing/algs/qgis/VoronoiPolygons.py
./share/qgis/python/plugins/processing/algs/qgis/voronoi.py

I compile QGIS from source, things have gone smoothly every time and I
cannot see any obvious particular problem. I have tested with master a
couple of weeks ago, then 3.18.0 a couple of days ago, and moments ago
with 3.16.4 (after wiping all traces of previous installations) but the
problem persists.

Anyone has seen this? What could possibly be wrong here?

Thanks in advance,

Hernán


- - - - -

from qgis import processing
for alg in QgsApplication.processingRegistry().algorithms():
  print(alg.id(), "->", alg.displayName())

native:addautoincrementalfield -> Add autoincremental field
native:addfieldtoattributestable -> Add field to attributes table
native:adduniquevalueindexfield -> Add unique value index field
native:addxyfields -> Add X/Y fields to layer
native:affinetransform -> Affine transform
native:aggregate -> Aggregate
native:angletonearest -> Align points to features
native:antimeridiansplit -> Geodesic line split at antimeridian
native:arrayoffsetlines -> Array of offset (parallel) lines
native:arraytranslatedfeatures -> Array of translated features
native:aspect -> Aspect
native:assignprojection -> Assign projection
native:atlaslayouttoimage -> Export atlas layout as image
native:atlaslayouttopdf -> Export atlas layout as PDF
native:bookmarkstolayer -> Convert spatial bookmarks to layer
native:boundary -> Boundary
native:boundingboxes -> Bounding boxes
native:buffer -> Buffer
native:bufferbym -> Variable width buffer (by M value)
native:calculatevectoroverlaps -> Overlap analysis
native:categorizeusingstyle -> Create categorized renderer from styles
native:cellstatistics -> Cell statistics
native:centroids -> Centroids
native:clip -> Clip
native:collect -> Collect geometries
native:combinestyles -> Combine style databases
native:condition -> Conditional branch
native:converttocurves -> Convert to curved geometries
native:convexhull -> Convex hull
native:countpointsinpolygon -> Count points in polygon
native:createattributeindex -> Create attribute index
native:createconstantrasterlayer -> Create constant raster layer
native:createdirectory -> Create directory
native:creategrid -> Create grid
native:createpointslayerfromtable -> Create points layer from table
native:createrandombinomialrasterlayer -> Create random raster layer
(binomial distribution)
native:createrandomexponentialrasterlayer -> Create random raster layer
(exponential distribution)
native:createrandomgammarasterlayer -> Create random raster layer (gamma
distribution)
native:createrandomgeometricrasterlayer -> Create random raster layer
(geometric distribution)
native:createrandomnegativebinomialrasterlayer -> Create random raster
layer (negative binomial distribution)
native:createrandomnormalrasterlayer -> Create random raster layer
(normal distribution)
native:createrandompoissonrasterlayer -> Create random raster layer
(poisson distribution)
native:createrandomuniformrasterlayer -> Create random raster layer
(uniform distribution)
native:createspatialindex -> Create spatial index
native:dbscanclustering -> DBSCAN clustering
native:deleteduplicategeometries -> Delete duplicate geometries
native:deleteholes -> Delete holes
native:densifygeometries -> Densify by count
native:densifygeometriesgivenaninterval -> Densify by interval
native:detectvectorchanges -> Detect dataset changes
native:difference -> Difference
native:dissolve -> Dissolve
native:dropgeometries -> Drop geometries
native:dropmzvalues -> Drop M/Z values
native:equaltofrequency -> Equal to frequency
native:explodehstorefield -> Explode HStore Field
native:explodelines -> Explode lines
native:extendlines -> Extend lines
native:extenttolayer -> Create layer from extent
native:extractbinary -> Extract binary field
native:extractbyattribute -> Extract by

Re: [QGIS-Developer] Voronoi tool missing from processing, what could be wrong?

2021-03-02 Thread Hernán De Angelis

Thanks for your detailed answer, Richard.


On 2021-03-02 10:16, Richard Duivenvoorde wrote:

On 3/2/21 9:34 AM, Hernán De Angelis wrote:

Hi,

I wrote about this a few days ago in the user list but I still have the problem 
and can find neither a cause nor a solution. I thus post it in this list in the 
hope that some developer may have a hint on what is going wrong here.

In my installation the Voronoi Polygon tool is missing from the Processing 
menu, both from the bar (vector geometry dialog) and the processing panel. It 
is also not listed in the Python console (see below whole listing).

But, the code seems to be present in the /usr/local/share... folder, where 
other plugins live as well:

localhost:/usr/local # find ./share -name *oronoi*
./share/qgis/python/plugins/processing/algs/grass7/description/v.voronoi.skeleton.txt
./share/qgis/python/plugins/processing/algs/grass7/description/v.voronoi.txt
./share/qgis/python/plugins/processing/algs/grass7/ext/v_voronoi.py
./share/qgis/python/plugins/processing/algs/qgis/VoronoiPolygons.py
./share/qgis/python/plugins/processing/algs/qgis/voronoi.py

With me your find-output looks exactly the same


Good





from qgis import processing
for alg in QgsApplication.processingRegistry().algorithms():
     print(alg.id(), "->", alg.displayName())

native:addautoincrementalfield -> Add autoincremental field
native:addfieldtoattributestable -> Add field to attributes table

With me your python code shows voronoi in the 'qgis' group instead of the 
'native' one:

qgis:voronoipolygons -> Voronoi polygons

I do have like 58 algorithms in the 'qgis' group. Are you missing all qgis 
ones? Or just voronoi?


I see, I only have the "native" ones ...




And in processing it just shows up with me (see screenie)

Some things to check:

-1- is the /usr/local/share/qgis/python/plugins/ dir in your PYTHONPATH ?

With me (installed QGIS in /home/richard/bin/qgis_/3.18/debug) these to are in 
my PYTHONPATH:
/home/richard/bin/qgis_/3.18/debug/share/qgis/python
/home/richard/bin/qgis_/3.18/debug/share/qgis/python/plugins

import sys
print(sys.path)

import sys
print(sys.path)

['/usr/local/share/qgis/python', 
'/home/hernan/.local/share/QGIS/QGIS3/profiles/default/python', 
'/home/hernan/.local/share/QGIS/QGIS3/profiles/default/python/plugins', 
'/usr/local/share/qgis/python/plugins', '/usr/lib/python38.zip', 
'/usr/lib64/python3.8', '/usr/lib64/python3.8/lib-dynload', 
'/usr/lib64/python3.8/site-packages', 
'/usr/lib64/python3.8/_import_failed', 
'/usr/lib/python3.8/site-packages', 
'/usr/local/lib64/python3.8/site-packages', 
'/home/hernan/.local/share/QGIS/QGIS3/profiles/default/python']




or is there other 'cruft' in it?

-2- is your LD_LIBRARY_PATH ok? To me (installing in my homedir), I have to add 
the debug/lib dir to my LD_LIBRARY_PATH.
adding:
export LD_LIBRARY_PATH=~/bin/qgis_/3.18/debug/lib/:/usr/lib/grass78/lib/
to my startup of qgis 3.18

I think if you install in default locations (like you do) then this should not 
be a problem, but maybe the QGIS python code can not load the right c++-libs?


Yes, I install in default /usr/local




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


Re: [QGIS-Developer] Voronoi tool missing from processing, what could be wrong?

2021-03-02 Thread Nyall Dawson
On Tue, 2 Mar 2021 at 18:34, Hernán De Angelis
 wrote:
>
> Hi,
>
> I wrote about this a few days ago in the user list but I still have the
> problem and can find neither a cause nor a solution. I thus post it in
> this list in the hope that some developer may have a hint on what is
> going wrong here.

Double check that you have the gdal python packages installed

Nyall

>
> In my installation the Voronoi Polygon tool is missing from the
> Processing menu, both from the bar (vector geometry dialog) and the
> processing panel. It is also not listed in the Python console (see below
> whole listing).
>
> But, the code seems to be present in the /usr/local/share... folder,
> where other plugins live as well:
>
> localhost:/usr/local # find ./share -name *oronoi*
> ./share/qgis/python/plugins/processing/algs/grass7/description/v.voronoi.skeleton.txt
> ./share/qgis/python/plugins/processing/algs/grass7/description/v.voronoi.txt
> ./share/qgis/python/plugins/processing/algs/grass7/ext/v_voronoi.py
> ./share/qgis/python/plugins/processing/algs/qgis/VoronoiPolygons.py
> ./share/qgis/python/plugins/processing/algs/qgis/voronoi.py
>
> I compile QGIS from source, things have gone smoothly every time and I
> cannot see any obvious particular problem. I have tested with master a
> couple of weeks ago, then 3.18.0 a couple of days ago, and moments ago
> with 3.16.4 (after wiping all traces of previous installations) but the
> problem persists.
>
> Anyone has seen this? What could possibly be wrong here?
>
> Thanks in advance,
>
> Hernán
>
>
> - - - - -
>
> from qgis import processing
> for alg in QgsApplication.processingRegistry().algorithms():
>  print(alg.id(), "->", alg.displayName())
>
> native:addautoincrementalfield -> Add autoincremental field
> native:addfieldtoattributestable -> Add field to attributes table
> native:adduniquevalueindexfield -> Add unique value index field
> native:addxyfields -> Add X/Y fields to layer
> native:affinetransform -> Affine transform
> native:aggregate -> Aggregate
> native:angletonearest -> Align points to features
> native:antimeridiansplit -> Geodesic line split at antimeridian
> native:arrayoffsetlines -> Array of offset (parallel) lines
> native:arraytranslatedfeatures -> Array of translated features
> native:aspect -> Aspect
> native:assignprojection -> Assign projection
> native:atlaslayouttoimage -> Export atlas layout as image
> native:atlaslayouttopdf -> Export atlas layout as PDF
> native:bookmarkstolayer -> Convert spatial bookmarks to layer
> native:boundary -> Boundary
> native:boundingboxes -> Bounding boxes
> native:buffer -> Buffer
> native:bufferbym -> Variable width buffer (by M value)
> native:calculatevectoroverlaps -> Overlap analysis
> native:categorizeusingstyle -> Create categorized renderer from styles
> native:cellstatistics -> Cell statistics
> native:centroids -> Centroids
> native:clip -> Clip
> native:collect -> Collect geometries
> native:combinestyles -> Combine style databases
> native:condition -> Conditional branch
> native:converttocurves -> Convert to curved geometries
> native:convexhull -> Convex hull
> native:countpointsinpolygon -> Count points in polygon
> native:createattributeindex -> Create attribute index
> native:createconstantrasterlayer -> Create constant raster layer
> native:createdirectory -> Create directory
> native:creategrid -> Create grid
> native:createpointslayerfromtable -> Create points layer from table
> native:createrandombinomialrasterlayer -> Create random raster layer
> (binomial distribution)
> native:createrandomexponentialrasterlayer -> Create random raster layer
> (exponential distribution)
> native:createrandomgammarasterlayer -> Create random raster layer (gamma
> distribution)
> native:createrandomgeometricrasterlayer -> Create random raster layer
> (geometric distribution)
> native:createrandomnegativebinomialrasterlayer -> Create random raster
> layer (negative binomial distribution)
> native:createrandomnormalrasterlayer -> Create random raster layer
> (normal distribution)
> native:createrandompoissonrasterlayer -> Create random raster layer
> (poisson distribution)
> native:createrandomuniformrasterlayer -> Create random raster layer
> (uniform distribution)
> native:createspatialindex -> Create spatial index
> native:dbscanclustering -> DBSCAN clustering
> native:deleteduplicategeometries -> Delete duplicate geometries
> native:deleteholes -> Delete holes
> native:densifygeometries -> Densify by count
> native:densifygeometriesgivenaninterval -> Densify by interval
> native:detectvectorchanges -> Detect dataset changes
> native:difference -> Difference
> native:dissolve -> Dissolve
> native:dropgeometries -> Drop geometries
> native:dropmzvalues -> Drop M/Z values
> native:equaltofrequency -> Equal to frequency
> native:explodehstorefield -> Explode HStore Field
> native:explodelines -> Explode lines
> native:extendlines -> Extend lines
> native:extenttolayer -> Create layer from extent
> native:ex

Re: [QGIS-Developer] Voronoi tool missing from processing, what could be wrong?

2021-03-02 Thread Richard Duivenvoorde
On 3/2/21 9:34 AM, Hernán De Angelis wrote:
> Hi,
> 
> I wrote about this a few days ago in the user list but I still have the 
> problem and can find neither a cause nor a solution. I thus post it in this 
> list in the hope that some developer may have a hint on what is going wrong 
> here.
> 
> In my installation the Voronoi Polygon tool is missing from the Processing 
> menu, both from the bar (vector geometry dialog) and the processing panel. It 
> is also not listed in the Python console (see below whole listing).
> 
> But, the code seems to be present in the /usr/local/share... folder, where 
> other plugins live as well:
> 
> localhost:/usr/local # find ./share -name *oronoi*
> ./share/qgis/python/plugins/processing/algs/grass7/description/v.voronoi.skeleton.txt
> ./share/qgis/python/plugins/processing/algs/grass7/description/v.voronoi.txt
> ./share/qgis/python/plugins/processing/algs/grass7/ext/v_voronoi.py
> ./share/qgis/python/plugins/processing/algs/qgis/VoronoiPolygons.py
> ./share/qgis/python/plugins/processing/algs/qgis/voronoi.py

With me your find-output looks exactly the same

> from qgis import processing
> for alg in QgsApplication.processingRegistry().algorithms():
>     print(alg.id(), "->", alg.displayName())
> 
> native:addautoincrementalfield -> Add autoincremental field
> native:addfieldtoattributestable -> Add field to attributes table

With me your python code shows voronoi in the 'qgis' group instead of the 
'native' one:

qgis:voronoipolygons -> Voronoi polygons

I do have like 58 algorithms in the 'qgis' group. Are you missing all qgis 
ones? Or just voronoi?

And in processing it just shows up with me (see screenie)

Some things to check:

-1- is the /usr/local/share/qgis/python/plugins/ dir in your PYTHONPATH ?

With me (installed QGIS in /home/richard/bin/qgis_/3.18/debug) these to are in 
my PYTHONPATH:
/home/richard/bin/qgis_/3.18/debug/share/qgis/python
/home/richard/bin/qgis_/3.18/debug/share/qgis/python/plugins

import sys
print(sys.path)

or is there other 'cruft' in it?

-2- is your LD_LIBRARY_PATH ok? To me (installing in my homedir), I have to add 
the debug/lib dir to my LD_LIBRARY_PATH.
adding:
export LD_LIBRARY_PATH=~/bin/qgis_/3.18/debug/lib/:/usr/lib/grass78/lib/
to my startup of qgis 3.18

I think if you install in default locations (like you do) then this should not 
be a problem, but maybe the QGIS python code can not load the right c++-libs?



Regards,

Richard Duivenvoorde
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Voronoi tool missing from processing, what could be wrong?

2021-03-02 Thread Hernán De Angelis

On 2021-03-02 09:48, Alexandre Neto wrote:

Might seem obvious, but have you tried using a brand new profile?


Yes, I just forgot to add that to the description below.

/H.


A terça, 2/03/2021, 08:34, Hernán De Angelis 
mailto:variablestarli...@gmail.com>> 
escreveu:


Hi,

I wrote about this a few days ago in the user list but I still
have the
problem and can find neither a cause nor a solution. I thus post
it in
this list in the hope that some developer may have a hint on what is
going wrong here.

In my installation the Voronoi Polygon tool is missing from the
Processing menu, both from the bar (vector geometry dialog) and the
processing panel. It is also not listed in the Python console (see
below
whole listing).

But, the code seems to be present in the /usr/local/share... folder,
where other plugins live as well:

localhost:/usr/local # find ./share -name *oronoi*

./share/qgis/python/plugins/processing/algs/grass7/description/v.voronoi.skeleton.txt
./share/qgis/python/plugins/processing/algs/grass7/description/v.voronoi.txt
./share/qgis/python/plugins/processing/algs/grass7/ext/v_voronoi.py
./share/qgis/python/plugins/processing/algs/qgis/VoronoiPolygons.py
./share/qgis/python/plugins/processing/algs/qgis/voronoi.py

I compile QGIS from source, things have gone smoothly every time
and I
cannot see any obvious particular problem. I have tested with
master a
couple of weeks ago, then 3.18.0 a couple of days ago, and moments
ago
with 3.16.4 (after wiping all traces of previous installations)
but the
problem persists.

Anyone has seen this? What could possibly be wrong here?

Thanks in advance,

Hernán


- - - - -

from qgis import processing
for alg in QgsApplication.processingRegistry().algorithms():
 print(alg.id (), "->", alg.displayName())

native:addautoincrementalfield -> Add autoincremental field
native:addfieldtoattributestable -> Add field to attributes table
native:adduniquevalueindexfield -> Add unique value index field
native:addxyfields -> Add X/Y fields to layer
native:affinetransform -> Affine transform
native:aggregate -> Aggregate
native:angletonearest -> Align points to features
native:antimeridiansplit -> Geodesic line split at antimeridian
native:arrayoffsetlines -> Array of offset (parallel) lines
native:arraytranslatedfeatures -> Array of translated features
native:aspect -> Aspect
native:assignprojection -> Assign projection
native:atlaslayouttoimage -> Export atlas layout as image
native:atlaslayouttopdf -> Export atlas layout as PDF
native:bookmarkstolayer -> Convert spatial bookmarks to layer
native:boundary -> Boundary
native:boundingboxes -> Bounding boxes
native:buffer -> Buffer
native:bufferbym -> Variable width buffer (by M value)
native:calculatevectoroverlaps -> Overlap analysis
native:categorizeusingstyle -> Create categorized renderer from styles
native:cellstatistics -> Cell statistics
native:centroids -> Centroids
native:clip -> Clip
native:collect -> Collect geometries
native:combinestyles -> Combine style databases
native:condition -> Conditional branch
native:converttocurves -> Convert to curved geometries
native:convexhull -> Convex hull
native:countpointsinpolygon -> Count points in polygon
native:createattributeindex -> Create attribute index
native:createconstantrasterlayer -> Create constant raster layer
native:createdirectory -> Create directory
native:creategrid -> Create grid
native:createpointslayerfromtable -> Create points layer from table
native:createrandombinomialrasterlayer -> Create random raster layer
(binomial distribution)
native:createrandomexponentialrasterlayer -> Create random raster
layer
(exponential distribution)
native:createrandomgammarasterlayer -> Create random raster layer
(gamma
distribution)
native:createrandomgeometricrasterlayer -> Create random raster layer
(geometric distribution)
native:createrandomnegativebinomialrasterlayer -> Create random
raster
layer (negative binomial distribution)
native:createrandomnormalrasterlayer -> Create random raster layer
(normal distribution)
native:createrandompoissonrasterlayer -> Create random raster layer
(poisson distribution)
native:createrandomuniformrasterlayer -> Create random raster layer
(uniform distribution)
native:createspatialindex -> Create spatial index
native:dbscanclustering -> DBSCAN clustering
native:deleteduplicategeometries -> Delete duplicate geometries
native:deleteholes -> Delete holes
native:densifygeometries -> Densify by count
native:densifygeometriesgivenaninterval -> Densify by interval
native:detectvectorchanges -> Detect dataset changes
native:difference 

Re: [QGIS-Developer] Voronoi tool missing from processing, what could be wrong?

2021-03-02 Thread Alexandre Neto
Might seem obvious, but have you tried using a brand new profile?

A terça, 2/03/2021, 08:34, Hernán De Angelis 
escreveu:

> Hi,
>
> I wrote about this a few days ago in the user list but I still have the
> problem and can find neither a cause nor a solution. I thus post it in
> this list in the hope that some developer may have a hint on what is
> going wrong here.
>
> In my installation the Voronoi Polygon tool is missing from the
> Processing menu, both from the bar (vector geometry dialog) and the
> processing panel. It is also not listed in the Python console (see below
> whole listing).
>
> But, the code seems to be present in the /usr/local/share... folder,
> where other plugins live as well:
>
> localhost:/usr/local # find ./share -name *oronoi*
>
> ./share/qgis/python/plugins/processing/algs/grass7/description/v.voronoi.skeleton.txt
>
> ./share/qgis/python/plugins/processing/algs/grass7/description/v.voronoi.txt
> ./share/qgis/python/plugins/processing/algs/grass7/ext/v_voronoi.py
> ./share/qgis/python/plugins/processing/algs/qgis/VoronoiPolygons.py
> ./share/qgis/python/plugins/processing/algs/qgis/voronoi.py
>
> I compile QGIS from source, things have gone smoothly every time and I
> cannot see any obvious particular problem. I have tested with master a
> couple of weeks ago, then 3.18.0 a couple of days ago, and moments ago
> with 3.16.4 (after wiping all traces of previous installations) but the
> problem persists.
>
> Anyone has seen this? What could possibly be wrong here?
>
> Thanks in advance,
>
> Hernán
>
>
> - - - - -
>
> from qgis import processing
> for alg in QgsApplication.processingRegistry().algorithms():
>  print(alg.id(), "->", alg.displayName())
>
> native:addautoincrementalfield -> Add autoincremental field
> native:addfieldtoattributestable -> Add field to attributes table
> native:adduniquevalueindexfield -> Add unique value index field
> native:addxyfields -> Add X/Y fields to layer
> native:affinetransform -> Affine transform
> native:aggregate -> Aggregate
> native:angletonearest -> Align points to features
> native:antimeridiansplit -> Geodesic line split at antimeridian
> native:arrayoffsetlines -> Array of offset (parallel) lines
> native:arraytranslatedfeatures -> Array of translated features
> native:aspect -> Aspect
> native:assignprojection -> Assign projection
> native:atlaslayouttoimage -> Export atlas layout as image
> native:atlaslayouttopdf -> Export atlas layout as PDF
> native:bookmarkstolayer -> Convert spatial bookmarks to layer
> native:boundary -> Boundary
> native:boundingboxes -> Bounding boxes
> native:buffer -> Buffer
> native:bufferbym -> Variable width buffer (by M value)
> native:calculatevectoroverlaps -> Overlap analysis
> native:categorizeusingstyle -> Create categorized renderer from styles
> native:cellstatistics -> Cell statistics
> native:centroids -> Centroids
> native:clip -> Clip
> native:collect -> Collect geometries
> native:combinestyles -> Combine style databases
> native:condition -> Conditional branch
> native:converttocurves -> Convert to curved geometries
> native:convexhull -> Convex hull
> native:countpointsinpolygon -> Count points in polygon
> native:createattributeindex -> Create attribute index
> native:createconstantrasterlayer -> Create constant raster layer
> native:createdirectory -> Create directory
> native:creategrid -> Create grid
> native:createpointslayerfromtable -> Create points layer from table
> native:createrandombinomialrasterlayer -> Create random raster layer
> (binomial distribution)
> native:createrandomexponentialrasterlayer -> Create random raster layer
> (exponential distribution)
> native:createrandomgammarasterlayer -> Create random raster layer (gamma
> distribution)
> native:createrandomgeometricrasterlayer -> Create random raster layer
> (geometric distribution)
> native:createrandomnegativebinomialrasterlayer -> Create random raster
> layer (negative binomial distribution)
> native:createrandomnormalrasterlayer -> Create random raster layer
> (normal distribution)
> native:createrandompoissonrasterlayer -> Create random raster layer
> (poisson distribution)
> native:createrandomuniformrasterlayer -> Create random raster layer
> (uniform distribution)
> native:createspatialindex -> Create spatial index
> native:dbscanclustering -> DBSCAN clustering
> native:deleteduplicategeometries -> Delete duplicate geometries
> native:deleteholes -> Delete holes
> native:densifygeometries -> Densify by count
> native:densifygeometriesgivenaninterval -> Densify by interval
> native:detectvectorchanges -> Detect dataset changes
> native:difference -> Difference
> native:dissolve -> Dissolve
> native:dropgeometries -> Drop geometries
> native:dropmzvalues -> Drop M/Z values
> native:equaltofrequency -> Equal to frequency
> native:explodehstorefield -> Explode HStore Field
> native:explodelines -> Explode lines
> native:extendlines -> Extend lines
> native:extenttolayer -> Create layer from extent
> native:ex

[QGIS-Developer] Voronoi tool missing from processing, what could be wrong?

2021-03-02 Thread Hernán De Angelis

Hi,

I wrote about this a few days ago in the user list but I still have the 
problem and can find neither a cause nor a solution. I thus post it in 
this list in the hope that some developer may have a hint on what is 
going wrong here.


In my installation the Voronoi Polygon tool is missing from the 
Processing menu, both from the bar (vector geometry dialog) and the 
processing panel. It is also not listed in the Python console (see below 
whole listing).


But, the code seems to be present in the /usr/local/share... folder, 
where other plugins live as well:


localhost:/usr/local # find ./share -name *oronoi*
./share/qgis/python/plugins/processing/algs/grass7/description/v.voronoi.skeleton.txt
./share/qgis/python/plugins/processing/algs/grass7/description/v.voronoi.txt
./share/qgis/python/plugins/processing/algs/grass7/ext/v_voronoi.py
./share/qgis/python/plugins/processing/algs/qgis/VoronoiPolygons.py
./share/qgis/python/plugins/processing/algs/qgis/voronoi.py

I compile QGIS from source, things have gone smoothly every time and I 
cannot see any obvious particular problem. I have tested with master a 
couple of weeks ago, then 3.18.0 a couple of days ago, and moments ago 
with 3.16.4 (after wiping all traces of previous installations) but the 
problem persists.


Anyone has seen this? What could possibly be wrong here?

Thanks in advance,

Hernán


- - - - -

from qgis import processing
for alg in QgsApplication.processingRegistry().algorithms():
    print(alg.id(), "->", alg.displayName())

native:addautoincrementalfield -> Add autoincremental field
native:addfieldtoattributestable -> Add field to attributes table
native:adduniquevalueindexfield -> Add unique value index field
native:addxyfields -> Add X/Y fields to layer
native:affinetransform -> Affine transform
native:aggregate -> Aggregate
native:angletonearest -> Align points to features
native:antimeridiansplit -> Geodesic line split at antimeridian
native:arrayoffsetlines -> Array of offset (parallel) lines
native:arraytranslatedfeatures -> Array of translated features
native:aspect -> Aspect
native:assignprojection -> Assign projection
native:atlaslayouttoimage -> Export atlas layout as image
native:atlaslayouttopdf -> Export atlas layout as PDF
native:bookmarkstolayer -> Convert spatial bookmarks to layer
native:boundary -> Boundary
native:boundingboxes -> Bounding boxes
native:buffer -> Buffer
native:bufferbym -> Variable width buffer (by M value)
native:calculatevectoroverlaps -> Overlap analysis
native:categorizeusingstyle -> Create categorized renderer from styles
native:cellstatistics -> Cell statistics
native:centroids -> Centroids
native:clip -> Clip
native:collect -> Collect geometries
native:combinestyles -> Combine style databases
native:condition -> Conditional branch
native:converttocurves -> Convert to curved geometries
native:convexhull -> Convex hull
native:countpointsinpolygon -> Count points in polygon
native:createattributeindex -> Create attribute index
native:createconstantrasterlayer -> Create constant raster layer
native:createdirectory -> Create directory
native:creategrid -> Create grid
native:createpointslayerfromtable -> Create points layer from table
native:createrandombinomialrasterlayer -> Create random raster layer 
(binomial distribution)
native:createrandomexponentialrasterlayer -> Create random raster layer 
(exponential distribution)
native:createrandomgammarasterlayer -> Create random raster layer (gamma 
distribution)
native:createrandomgeometricrasterlayer -> Create random raster layer 
(geometric distribution)
native:createrandomnegativebinomialrasterlayer -> Create random raster 
layer (negative binomial distribution)
native:createrandomnormalrasterlayer -> Create random raster layer 
(normal distribution)
native:createrandompoissonrasterlayer -> Create random raster layer 
(poisson distribution)
native:createrandomuniformrasterlayer -> Create random raster layer 
(uniform distribution)

native:createspatialindex -> Create spatial index
native:dbscanclustering -> DBSCAN clustering
native:deleteduplicategeometries -> Delete duplicate geometries
native:deleteholes -> Delete holes
native:densifygeometries -> Densify by count
native:densifygeometriesgivenaninterval -> Densify by interval
native:detectvectorchanges -> Detect dataset changes
native:difference -> Difference
native:dissolve -> Dissolve
native:dropgeometries -> Drop geometries
native:dropmzvalues -> Drop M/Z values
native:equaltofrequency -> Equal to frequency
native:explodehstorefield -> Explode HStore Field
native:explodelines -> Explode lines
native:extendlines -> Extend lines
native:extenttolayer -> Create layer from extent
native:extractbinary -> Extract binary field
native:extractbyattribute -> Extract by attribute
native:extractbyexpression -> Extract by expression
native:extractbyextent -> Extract/clip by extent
native:extractbylocation -> Extract by location
native:extractmvalues -> Extract M values
native:extractspecificvertices ->