Re: [QGIS-Developer] For info: Travis now has supports Windows

2018-10-17 Thread Nathan Woodrow
Oh so OSGeo4w stuff is already in chocolaty?

On Thu, Oct 18, 2018 at 1:23 AM Peter Petrik <
peter.pet...@lutraconsulting.co.uk> wrote:

> Hello,
>
> we managed to add Travis Windows build for MDAL
> . If you are interested, best is
> to look at .travis.yml
>  and
> scripts/travis/windows
> .
> The libraries (GDAL, NetCDF, HDF5, ...) are taken from OSGeo4W which is
> already included in https://chocolatey.org.
>
> Peter
>
> On Mon, Oct 15, 2018 at 5:35 PM Denis Rouzaud 
> wrote:
>
>> That's great news, thanks for the info!
>>
>> Le ven. 12 oct. 2018 à 09:47, Tom Chadwin  a
>> écrit :
>>
>>> Run your single test suite on all major platforms (early release):
>>>
>>>
>>> https://blog.travis-ci.com/2018-10-11-windows-early-release?utm_source=twitter_medium=web_campaign=windows_early_release
>>>
>>> Tom
>>>
>>>
>>>
>>> -
>>> Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon
>>> --
>>> 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
>>
>> --
>>
>> Denis Rouzaud
>> de...@opengis.ch  
>> +41 76 370 21 22
>>
>>
>> ___
>> 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] Adding a panel to layer properties dialog from a python plugin

2018-10-17 Thread Denis Rouzaud
Hi Ricardo,

For python, looking at the python API is always a good start ;)
https://qgis.org/pyqgis/master/gui/other/QgisInterface.html#qgis.gui.QgisInterface.registerOptionsWidgetFactory

This means you must give a QgsOptionsWidgetFactory
https://qgis.org/pyqgis/master/gui/Options/QgsOptionsWidgetFactory.html

Here the docs could be clearer but this is the class you have to inherit.
You need to implement title, icon and createWidget. In the latter, you'll
be able to load your UI and return the widget to be displayed. The widget
you return must inherit QgsOptionsPageWidget.

I hope this helps!


Denis

On Wed, 17 Oct 2018, 18:24 Ricardo Filipe Soares Garcia da, <
ricardo.garcia.si...@gmail.com> wrote:

> Hi all
>
> The API docs for QgisInterface[1] mention the existence of a
> `registerMapLayerConfigWidgetFactory()` method which says in its
> documentation:
>
> > Register a new tab in the vector layer properties dialog.
>
> I've been trying to test this out and see if I can add a new panel to a
> layer's properties dialog via a Python plugin. So far I've had no luck.
> Couldn't find any other docs/samples online showing how to do this. Perhaps
> someone can help me out?
>
> Here is what I have:
>
> -  made a custom .ui file in Qt designer with a simple QWidget that only
> has a QLabel inside
> -  implemented a class inheriting from both
> `qgis.gui.QgsMapLayerConfigWidget` and my ui file (after it is loaded with
> uic.loadUiType)
> - implemented a class inheriting from
> `qgis.gui.QgsMapLayerConfigWidgetFactory`. This class implements all of the
> methods declared as *virtual* in the cpp API, including the
> `createWidget()`, which returns a new instance of my custom
> maplayerconfigwidget class
> - in my plugin's `initGui()` method I'm calling
> `iface.registerMapLayerConfigWidgetFactory()` and pass along my custom
> factory
>
> I guess this should be enough to have a minimum working prototype.
> However, this is what happens:
>
> - When I load up a vector layer and then open it's properties dialog, QGIS
> just crashes with a core dumped message.
> - When I load up a raster layer and then open it's properties dialog,
> nothing happens. I suspect this functionality is probably not even
> available for raster layers. Is this true?
>
> Can someone provide some pointers or some existing reference on how this
> would work? Thanks in advance
>
> [1] -
> https://qgis.org/api/classQgisInterface.html#a2c64949239a7717d181e34d6f2c47851
>
> --
> ___ ___ __
> Ricardo Garcia Silva
> ___
> 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

-- 

Denis Rouzaud
de...@opengis.ch  
+41 76 370 21 22
___
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] Adding a panel to layer properties dialog from a python plugin

2018-10-17 Thread Ricardo Filipe Soares Garcia da
Hi all

The API docs for QgisInterface[1] mention the existence of a
`registerMapLayerConfigWidgetFactory()` method which says in its
documentation:

> Register a new tab in the vector layer properties dialog.

I've been trying to test this out and see if I can add a new panel to a
layer's properties dialog via a Python plugin. So far I've had no luck.
Couldn't find any other docs/samples online showing how to do this. Perhaps
someone can help me out?

Here is what I have:

-  made a custom .ui file in Qt designer with a simple QWidget that only
has a QLabel inside
-  implemented a class inheriting from both
`qgis.gui.QgsMapLayerConfigWidget` and my ui file (after it is loaded with
uic.loadUiType)
- implemented a class inheriting from
`qgis.gui.QgsMapLayerConfigWidgetFactory`. This class implements all of the
methods declared as *virtual* in the cpp API, including the
`createWidget()`, which returns a new instance of my custom
maplayerconfigwidget class
- in my plugin's `initGui()` method I'm calling
`iface.registerMapLayerConfigWidgetFactory()` and pass along my custom
factory

I guess this should be enough to have a minimum working prototype. However,
this is what happens:

- When I load up a vector layer and then open it's properties dialog, QGIS
just crashes with a core dumped message.
- When I load up a raster layer and then open it's properties dialog,
nothing happens. I suspect this functionality is probably not even
available for raster layers. Is this true?

Can someone provide some pointers or some existing reference on how this
would work? Thanks in advance

[1] -
https://qgis.org/api/classQgisInterface.html#a2c64949239a7717d181e34d6f2c47851

-- 
___ ___ __
Ricardo Garcia Silva
___
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] Bug with Advanced Digitizing Tools - Offset Curve

2018-10-17 Thread C Hamilton
There are several issues with the Advanced Digitizing Offset Curve tool and
I don't think is operating as intended.
1. If a MultiPolygon is selected and then I click on the object I get the
error "Creating offset geometry failed".
2. If I try it on a MultiLIneString object, the line segment that I click
on is resized, but not the whole object. I hope this is not the intended
action.

Is the Offset Curve tool meant to be a resize tool? It seems to do that,
but I wonder if there shouldn't be just a simple resize tool without all
the other options.

Thanks,

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] Issues with Importing qgis

2018-10-17 Thread Ryan Ruggiero
Hello Richard, thank you for the response.



I don't have that path in my QGIS install, these are the only folders in the 
'share' directory for QGIS3.2:

[cid:image001.png@01D46617.7D6F3CB0]





What is strange is that I tried importing qgis.core again today just for fun, 
and I got a different error message:

[cid:image002.png@01D46617.EAE4C850]



Im guessing this means I need to be running my python program in a python 3.6 
shell instead of a python 3.7 shell? But before I uninstall 3.7 and install 3.6 
I would like

To see what you make of this error. There isn't much help online with this 
ImportError regarding QGIS.



Thanks!

-Ryan











-Original Message-
From: Richard Duivenvoorde [mailto:rdmaili...@duif.net]
Sent: Wednesday, October 17, 2018 4:40 AM
To: Ryan Ruggiero; qgis-developer@lists.osgeo.org
Subject: Re: [QGIS-Developer] Issues with Importing qgis



On 10/16/2018 04:18 PM, Ryan Ruggiero wrote:

> Hello,

>

> I am seeking help regarding importing 'qgis.core' into a standalone

> python script, python executable in cmd, or in a OSGeo4W shell cmd

> executable. I have python 3.7 installed on my machine along with

> OSGeo4W64, QGIS3.2. The current error message I am getting:

>

> Any help with this issue would be greatly appreciated. My goal with this

> is to use qgis geoprocessing tools in the same manner I am able to use

> the arcpy module to geocode. Most of the solutions online suggested

> adding to the PATH and PYTHONPATH user environmental variables, one of

> them being I have tried adding the location of the 'qgis._core.dll'

> file, and I still get the same error.



Hi Ryan,



It is not the dll's that your are missing, but the actual QGIS python stuff.



In your PYTHONPATH you have to point to the in my install avaialbe dir:



/share/qgis/python/



THERE you find the python dirs/modules:



console  plugins  pyplugin_installer  qgis  qsci_apis



It should be revealed to you also when you do the following in your

python console:



import sys; print(sys.path)



Hope this helps,



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] For info: Travis now has supports Windows

2018-10-17 Thread Peter Petrik
Hello,

we managed to add Travis Windows build for MDAL
. If you are interested, best is
to look at .travis.yml
 and
scripts/travis/windows
.
The libraries (GDAL, NetCDF, HDF5, ...) are taken from OSGeo4W which is
already included in https://chocolatey.org.

Peter

On Mon, Oct 15, 2018 at 5:35 PM Denis Rouzaud 
wrote:

> That's great news, thanks for the info!
>
> Le ven. 12 oct. 2018 à 09:47, Tom Chadwin  a
> écrit :
>
>> Run your single test suite on all major platforms (early release):
>>
>>
>> https://blog.travis-ci.com/2018-10-11-windows-early-release?utm_source=twitter_medium=web_campaign=windows_early_release
>>
>> Tom
>>
>>
>>
>> -
>> Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon
>> --
>> 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
>
> --
>
> Denis Rouzaud
> de...@opengis.ch  
> +41 76 370 21 22
>
>
> ___
> 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 [412] Qgis2threejs approval notification.

2018-10-17 Thread noreply

Plugin Qgis2threejs approval by pcav.
The plugin version "[412] Qgis2threejs 2.1" is now approved
Link: http://plugins.qgis.org/plugins/Qgis2threejs/
___
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 [998] Standard Deviational Ellipse approval notification.

2018-10-17 Thread noreply

Plugin Standard Deviational Ellipse approval by pcav.
The plugin version "[998] Standard Deviational Ellipse 3.0.4" is now approved
Link: http://plugins.qgis.org/plugins/SDEllipse/
___
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] Issues with Importing qgis

2018-10-17 Thread Richard Duivenvoorde
On 10/16/2018 04:18 PM, Ryan Ruggiero wrote:
> Hello,
> 
> I am seeking help regarding importing ‘qgis.core’ into a standalone
> python script, python executable in cmd, or in a OSGeo4W shell cmd
> executable. I have python 3.7 installed on my machine along with
> OSGeo4W64, QGIS3.2. The current error message I am getting:
> 
> Any help with this issue would be greatly appreciated. My goal with this
> is to use qgis geoprocessing tools in the same manner I am able to use
> the arcpy module to geocode. Most of the solutions online suggested
> adding to the PATH and PYTHONPATH user environmental variables, one of
> them being I have tried adding the location of the ‘qgis._core.dll’
> file, and I still get the same error.

Hi Ryan,

It is not the dll's that your are missing, but the actual QGIS python stuff.

In your PYTHONPATH you have to point to the in my install avaialbe dir:

/share/qgis/python/

THERE you find the python dirs/modules:

console  plugins  pyplugin_installer  qgis  qsci_apis

It should be revealed to you also when you do the following in your
python console:

import sys; print(sys.path)

Hope this helps,

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