Re: [Qgis-developer] Spatialite in QGIS master

2017-01-30 Thread Ramon Andinach
Hi, 

A quick question from user land.

Does having to explicitly set that option mean that spatialite might not be 
supported in the packaged releases of QGIS 3?

As someone that has (mostly) been paying attention to the continued stream of 
"shape files are so old and decrepit" comments that come up on these lists, and 
is making an attempt to learn one of the “modern” storage types (say 
spatialite) I’d like to know before 3 is released if I should be switching to a 
different path.

> On 30 Jan 2017, at 21:32, David Marteau  wrote:
> 
> PySpatialite is a totally obsoleted python package: you must explicitely load 
> the mod_spatialite extension using the spatialite load_extension(..).
> 
> Qgis use its own version of pyspatialite, but you must enable it in the build 
> configuration as stated by Matthias. 
> 
> 
> 
>> Le 30 janv. 2017 à 13:10, Saber Razmjooei 
>> > > a écrit :
>> 
>>  sudo pip3 install pyspatialite ?
>> 
>> Cheers
>> Saber
>> 
>> On 30 January 2017 at 10:48, matteo > > wrote:
>> Hi all,
>> 
>> I don't know if a miss some older discussion on this topic but I'm not
>> able to load SpatiaLite databases in QGIS 3.
>> 
>> It seems there there is no pyspatialite for python3:
>> 
>> Traceback (most recent call last):
>>   File
>> "/home/matteo/lavori/QGIS/build-qgis3/output/python/qgis/utils.py", line
>> 598, in spatialite_connect
>> from pyspatialite import dbapi2
>>   File
>> "/home/matteo/lavori/QGIS/build-qgis3/output/python/qgis/utils.py", line
>> 647, in _import
>> mod = _builtin_import(name, globals, locals, fromlist, level)
>> ImportError: No module named 'pyspatialite'
>> 
>> 
>> I checked around on the web and I found an issue the github repo [0]
>> 
>> Has anyone a working SpatiaLite db on QGIS?
>> 
>> Thanks to all
>> 
>> Matteo
>> 
>> 
>> [0] https://github.com/lokkju/pyspatialite/issues/27 
>> 
>> ___
>> 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 
>> +44 (0)7568 129733
>> ___
>> 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 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] OTB and LiDAR tools as separate plugins

2017-01-30 Thread Alexander Bruy
AFAIK, OTB version in OSGeo4W is very outdated (5.0 if I'm not wrong).
Right now latest version is 5.8 and OTB team is working on 5.10.
I think having OTB provider separated from core will allow to update it
faster and also support more OTB features like special parameters types.

2017-01-30 20:28 GMT+02:00 Paolo Cavallini :
> Il 30/01/2017 18:24, Victor Olaya ha scritto:
>
>> I think we are not shipping them. OTB is available in OSGeo4W, but not
>> in the standalone installers, if I am right
>
> in 32 bit OTB it is present
>
> agreed, very interesting and useful discussion
> all the best
>
> --
> Paolo Cavallini - www.faunalia.eu
> QGIS & PostGIS courses: http://www.faunalia.eu/training.html
> https://www.google.com/trends/explore?date=all&geo=IT&q=qgis,arcgis
> ___
> 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



-- 
Alexander Bruy
___
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] OTB and LiDAR tools as separate plugins

2017-01-30 Thread Paolo Cavallini
Il 30/01/2017 18:24, Victor Olaya ha scritto:

> I think we are not shipping them. OTB is available in OSGeo4W, but not
> in the standalone installers, if I am right

in 32 bit OTB it is present

agreed, very interesting and useful discussion
all the best

-- 
Paolo Cavallini - www.faunalia.eu
QGIS & PostGIS courses: http://www.faunalia.eu/training.html
https://www.google.com/trends/explore?date=all&geo=IT&q=qgis,arcgis
___
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] OTB and LiDAR tools as separate plugins

2017-01-30 Thread Victor Olaya
2017-01-30 19:00 GMT+01:00 Paolo Cavallini :
> Il 30/01/2017 14:27, Victor Olaya ha scritto:
>
>> If you have any comment, please let us know.
>
> Thanks Victor. I think this is a good improvement, giving OTB and
> LASTools more flexibility to update new versions.
> One thing that worries me is: we are shipping OTB and LASTools at least
> in Windows packages, and I believe we should keep on wit this.

I think we are not shipping them. OTB is available in OSGeo4W, but not
in the standalone installers, if I am right

One good thing that we have been discussing, related to this move, is
that for LiDAR tools, it should be possible to have a plugin that has
not just the code of the Processign provider, but the binaries as
well, so installing the plugin would add the algorithms to Processing
without any need to configure the paths to LASTools and FUSION
binaries, since they can be harcoded. If there is a change in the
binaries (such as an update), and the provider code has to be changed,
a new release can be made, independently of the QGIS release cycle
(unlike it happens now)

I think this is an interesting topic to discuss, and that's why I
wanted to send this email to get more feedback.

Thanks for your ideas!
___
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] OTB and LiDAR tools as separate plugins

2017-01-30 Thread Paolo Cavallini
Il 30/01/2017 14:27, Victor Olaya ha scritto:

> If you have any comment, please let us know.

Thanks Victor. I think this is a good improvement, giving OTB and
LASTools more flexibility to update new versions.
One thing that worries me is: we are shipping OTB and LASTools at least
in Windows packages, and I believe we should keep on wit this. So it
seems weird to me an user is now not able to use it straight away, but
he has to install additional software. Maybe we could find a mechanism
to avoid this (install OTB and LasTools plugin in ~/.qgis3 with a
postinstall? this may cause other problems however; (ab)use the new
profiling?)

All the best.
-- 
Paolo Cavallini - www.faunalia.eu
QGIS & PostGIS courses: http://www.faunalia.eu/training.html
https://www.google.com/trends/explore?date=all&geo=IT&q=qgis,arcgis
___
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] OTB and LiDAR tools as separate plugins

2017-01-30 Thread Victor Olaya
Hi all,

I have set up the OTB and LiDAR tools Processing provider as separate
plugins, each of them in its own repo. The idea is to have those
providers that require 3rd party apps outside of the core Processing,
so they can be installed separately and managed independently. Alex
Bruy already did that for the TauDEM provider.

The removal of these two providers is in this PR (yet to be merged)

https://github.com/qgis/QGIS/pull/4076

LiDAR Tools and OTB plugins are in repos in my github account at the
moment, but they will be transfered. The OTB dev team has accepted
taking the ownership of the OTB plugin, and Martin Isenburg (creator
of LASTools) will take the ownership of the LiDAR tools one. They will
take care of managing them and making releases when needed

I hope this will help better organizing these pieces of Processing,
and making it clearer for users how to use these providers.

If you have any comment, please let us know.

Thanks!
___
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] Spatialite in QGIS master

2017-01-30 Thread matteo
Hi,

just finish to compile QGIS with Matthias suggestion cmake
-DWITH_PYSPATIALITE

it works now thanks!

However, even with the standard SpatiaLite add button I can load layer,
with DB Manager QGIS crashes saying:

QGIS died on signal 11Could not attach to process.  If your uid matches
the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No thread selected
No stack.
gdb returned 0
Aborted

Should I open a ticket?

Thanks again guys for the time and help!

Matteo
___
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] Spatialite in QGIS master

2017-01-30 Thread David Marteau
PySpatialite is a totally obsoleted python package: you must explicitely load 
the mod_spatialite extension using the spatialite load_extension(..).

Qgis use its own version of pyspatialite, but you must enable it in the build 
configuration as stated by Matthias. 



> Le 30 janv. 2017 à 13:10, Saber Razmjooei 
>  a écrit :
> 
>  sudo pip3 install pyspatialite ?
> 
> Cheers
> Saber
> 
> On 30 January 2017 at 10:48, matteo  > wrote:
> Hi all,
> 
> I don't know if a miss some older discussion on this topic but I'm not
> able to load SpatiaLite databases in QGIS 3.
> 
> It seems there there is no pyspatialite for python3:
> 
> Traceback (most recent call last):
>   File
> "/home/matteo/lavori/QGIS/build-qgis3/output/python/qgis/utils.py", line
> 598, in spatialite_connect
> from pyspatialite import dbapi2
>   File
> "/home/matteo/lavori/QGIS/build-qgis3/output/python/qgis/utils.py", line
> 647, in _import
> mod = _builtin_import(name, globals, locals, fromlist, level)
> ImportError: No module named 'pyspatialite'
> 
> 
> I checked around on the web and I found an issue the github repo [0]
> 
> Has anyone a working SpatiaLite db on QGIS?
> 
> Thanks to all
> 
> Matteo
> 
> 
> [0] https://github.com/lokkju/pyspatialite/issues/27 
> 
> ___
> 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 
> +44 (0)7568 129733
> ___
> 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] Plugin [740] qgis2web approval notification.

2017-01-30 Thread noreply

Plugin qgis2web approval by pcav.
The plugin version "[740] qgis2web 2.3.1" is now approved
Link: http://plugins.qgis.org/plugins/qgis2web/
___
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] Spatialite in QGIS master

2017-01-30 Thread Matthias Kuhn
cmake -DWITH_PYSPATIALITE ?

Matthias

On 01/30/2017 01:10 PM, Saber Razmjooei wrote:
>  sudo pip3 install pyspatialite ?
> 
> Cheers
> Saber
> 
> On 30 January 2017 at 10:48, matteo  > wrote:
> 
> Hi all,
> 
> I don't know if a miss some older discussion on this topic but I'm not
> able to load SpatiaLite databases in QGIS 3.
> 
> It seems there there is no pyspatialite for python3:
> 
> Traceback (most recent call last):
>   File
> "/home/matteo/lavori/QGIS/build-qgis3/output/python/qgis/utils.py", line
> 598, in spatialite_connect
> from pyspatialite import dbapi2
>   File
> "/home/matteo/lavori/QGIS/build-qgis3/output/python/qgis/utils.py", line
> 647, in _import
> mod = _builtin_import(name, globals, locals, fromlist, level)
> ImportError: No module named 'pyspatialite'
> 
> 
> I checked around on the web and I found an issue the github repo [0]
> 
> Has anyone a working SpatiaLite db on QGIS?
> 
> Thanks to all
> 
> Matteo
> 
> 
> [0] https://github.com/lokkju/pyspatialite/issues/27
> 
> ___
> 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 
> +44 (0)7568 129733
> 
> 
> ___
> 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] Spatialite in QGIS master

2017-01-30 Thread Saber Razmjooei
 sudo pip3 install pyspatialite ?

Cheers
Saber

On 30 January 2017 at 10:48, matteo  wrote:

> Hi all,
>
> I don't know if a miss some older discussion on this topic but I'm not
> able to load SpatiaLite databases in QGIS 3.
>
> It seems there there is no pyspatialite for python3:
>
> Traceback (most recent call last):
>   File
> "/home/matteo/lavori/QGIS/build-qgis3/output/python/qgis/utils.py", line
> 598, in spatialite_connect
> from pyspatialite import dbapi2
>   File
> "/home/matteo/lavori/QGIS/build-qgis3/output/python/qgis/utils.py", line
> 647, in _import
> mod = _builtin_import(name, globals, locals, fromlist, level)
> ImportError: No module named 'pyspatialite'
>
>
> I checked around on the web and I found an issue the github repo [0]
>
> Has anyone a working SpatiaLite db on QGIS?
>
> Thanks to all
>
> Matteo
>
>
> [0] https://github.com/lokkju/pyspatialite/issues/27
> ___
> 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
+44 (0)7568 129733
___
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] Processing ctest for QGIS timeout

2017-01-30 Thread matteo
I compiled a fresh QGIS master on a virtual machine with ubuntu xenial,
so the machine is super clean (nothing else than the QGIS building
requirements installed)

I still cannot run local ctest for ProcessingQGIS, the terminal just
remains at this line:

4: -- Running /usr/bin/python3
/home/matteo/lavori/QGIS/QGIS/python/plugins/processing/tests/QgisAlgorithmsTest.py

4: Running from build directory!
4: - source directory: /home/matteo/lavori/QGIS/QGIS
4: - output directory of the build:
/home/matteo/lavori/QGIS/build-qgis3/output
4: !!! prefix path was requested, but it is not valid - we do not run
from installed path !!!



as Matthias suggested I also ran the test with gdb [0] to see where the
code gets stuck and it seems that there is a segmentation fault. Here
the pastebin [1] of the complete output.

gdb ends:

Thread 1 "python3" received signal SIGSEGV, Segmentation fault.
0x704df00a in
QExplicitlySharedDataPointer::QExplicitlySharedDataPointer(QExplicitlySharedDataPointer
const&) () from
/home/matteo/lavori/QGIS/build-qgis3/output/lib/libqgis_core.so.2.99.0



Thanks to all that can help on this!

Cheers

Matteo


[0]
https://github.com/qgis/QGIS/blob/85146ca4be9242e0f6c81e0479eb1cc375a04b49/tests/README.md#run-python-tests-in-gdb

[1] http://pastebin.com/FP9NKeAQ
___
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] Spatialite in QGIS master

2017-01-30 Thread matteo
Hi all,

I don't know if a miss some older discussion on this topic but I'm not
able to load SpatiaLite databases in QGIS 3.

It seems there there is no pyspatialite for python3:

Traceback (most recent call last):
  File
"/home/matteo/lavori/QGIS/build-qgis3/output/python/qgis/utils.py", line
598, in spatialite_connect
from pyspatialite import dbapi2
  File
"/home/matteo/lavori/QGIS/build-qgis3/output/python/qgis/utils.py", line
647, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named 'pyspatialite'


I checked around on the web and I found an issue the github repo [0]

Has anyone a working SpatiaLite db on QGIS?

Thanks to all

Matteo


[0] https://github.com/lokkju/pyspatialite/issues/27
___
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