Re: [QGIS-Developer] Calling Processing Algorithm GUI From Menu

2017-12-20 Thread C Hamilton
My purpose is with my Shape Tools plugin. Currently I have several
functions that have a GUI and are launched from the Shape Tools menu. With
Victor's help I have one of them as a processing module and I will convert
more. I still want to be able to launch the functions from the Shape Tools
menu, but I see no reason to have two different GUI instances if I can run
the processing GUI. There is one advantage with the processing GUI in that
it automatically handles saving the output to various formats which my GUI
does not.

On Tue, Dec 19, 2017 at 3:19 PM, matteo  wrote:

> > No, I meant: if your algorithms are already working *in processing* - ie
> you
> > have them set up as processing algorithms, and you also have your own
> GUI,
> > why would you need to trigger the processing algorithm GUI?
>
> ah ok.. in that case I cannot see any reason to do that :)
>
> 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
>
___
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] Concatenating QgsFeatureRequest

2017-12-20 Thread matteo
Hi Etienne,

yep Nyall's blog is really outstanding useful, thanks!

Cheers

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] Concatenating QgsFeatureRequest

2017-12-20 Thread matteo
Hi Matthias,

thanks for the 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] PostGIS 3D cube lacks vertical faces

2017-12-20 Thread G. Allegri
My bad Martin, I thought 3d renderer was on. Now I can see the cube
correctly.

For the zoom limit, I can understand the rationale, but it should be at
least configurable.
In this case we have a cube with a unit face and this will probably hit the
current limit, but in case of man made artifacts (buildings, etc.) these
tiny dimensions will happen frequently

giovanni

2017-12-20 11:38 GMT+01:00 Martin Dobias :

> Hi Giovanni!
>
> On Wed, Dec 20, 2017 at 11:06 AM, G. Allegri  wrote:
> > I've just updated to the latest nightly build from osgeo4w on my Dell
> XPS13
> > with Windows 10 Home Edition.
> > The result is:
> >
> >  - flat geometry inside 3d view
> >  - cannot zoom more then what can be seen in the following image
> >
> > https://photos.app.goo.gl/NjiE12dN7ajY4ASr1
>
> There is an intentional zoom limit to protect users from zooming in
> too much and getting strange rendering results. We could probably
> extend it a bit more if needed.
>
> For the flat geometry, have you enabled 3D renderer for the layer? (in
> vector layer properties or in layer styling panel) If not, the layer
> will be only rendered as a texture (together with other layers) on the
> terrain.
>
> Cheers
> Martin
>
___
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] PostGIS 3D cube lacks vertical faces

2017-12-20 Thread Martin Dobias
Hi Giovanni!

On Wed, Dec 20, 2017 at 11:06 AM, G. Allegri  wrote:
> I've just updated to the latest nightly build from osgeo4w on my Dell XPS13
> with Windows 10 Home Edition.
> The result is:
>
>  - flat geometry inside 3d view
>  - cannot zoom more then what can be seen in the following image
>
> https://photos.app.goo.gl/NjiE12dN7ajY4ASr1

There is an intentional zoom limit to protect users from zooming in
too much and getting strange rendering results. We could probably
extend it a bit more if needed.

For the flat geometry, have you enabled 3D renderer for the layer? (in
vector layer properties or in layer styling panel) If not, the layer
will be only rendered as a texture (together with other layers) on the
terrain.

Cheers
Martin
___
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] PostGIS 3D cube lacks vertical faces

2017-12-20 Thread G. Allegri
I've just updated to the latest nightly build from osgeo4w on my Dell XPS13
with Windows 10 Home Edition.
The result is:

 - flat geometry inside 3d view
 - cannot zoom more then what can be seen in the following image

https://photos.app.goo.gl/NjiE12dN7ajY4ASr1

giovanni

2017-12-20 10:19 GMT+01:00 Anita Graser :

> Hi Jakob,
>
> On Wed, Dec 20, 2017 at 9:26 AM, Jakob Lanstorp 
> wrote:
>
>> Hi Anita et al,
>>
>> How did you get the geometry into QGIS. I have tried running a sql from
>> within the db manager plugin on a postgis datebase like:
>>
>> SELECT
>> 'POLYHEDRALSURFACE Z (
>> ((0 0 0, 0 1 0, 1 1 0, 1 0 0, 0 0 0)),
>> ((0 0 0, 0 1 0, 0 1 1, 0 0 1, 0 0 0)),
>> ((0 0 0, 1 0 0, 1 0 1, 0 0 1, 0 0 0)),
>> ((1 1 1, 1 0 1, 0 0 1, 0 1 1, 1 1 1)),
>> ((1 1 1, 1 0 1, 1 0 0, 1 1 0, 1 1 1)),
>> ((1 1 1, 1 1 0, 0 1 0, 0 1 1, 1 1 1))
>>   )'::geometry
>>
>> It show the polyhedral in 2D in both QGIS 2D and 3D window, but crashes
>> QGIS
>> when changing properties.
>>
>>
> ​The crashes are a general issue reported here: https://issues.qgis.org/
> issues/17416
>
> On some machines it crashes, on others it doesn't. If you find a
> non-crashing machine, you'll see the cube.
>
> Regards,
> Anita​
>
>
>
>
> ___
> 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] OSGeo4W networkx broken?

2017-12-20 Thread Matthias Kuhn
Hi Jürgen


On 12/19/2017 11:51 PM, Jürgen E. Fischer wrote:
> Hi Matthias,
>
> On Tue, 19. Dec 2017 at 17:28:06 +0100, Matthias Kuhn wrote:
>>> networkx was updated - introducing python3?-decorator - which as dependency 
>>> of
>>> python-networkx it's also included in the standalones.
>> As far as I know the systems were upgraded (and not clean
>> installations), could this be caused by leftovers?
> Maybe.  They should have networkx 2.0-1 installed,  which is the old name of
> the package and is empty, but depends on python-networkx, which is the new
> package with the actual content.

After digging around a bit more, the first error is about a missing
package pkg_resources (the other one seems to have been a follow up
error). This pointed towards the *python setuptools* package, which,
once installed on an affected osgeo4w-x64 machine, fixed things.

Matthias


>
> Maybe there are circumstances where the previous version of networkx, that had
> content, is removed after the new version of python-networkx is installed.
>
>
> Jürgen
>
>
>
> ___
> 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] PostGIS 3D cube lacks vertical faces

2017-12-20 Thread Anita Graser
Hi Jakob,

On Wed, Dec 20, 2017 at 9:26 AM, Jakob Lanstorp  wrote:

> Hi Anita et al,
>
> How did you get the geometry into QGIS. I have tried running a sql from
> within the db manager plugin on a postgis datebase like:
>
> SELECT
> 'POLYHEDRALSURFACE Z (
> ((0 0 0, 0 1 0, 1 1 0, 1 0 0, 0 0 0)),
> ((0 0 0, 0 1 0, 0 1 1, 0 0 1, 0 0 0)),
> ((0 0 0, 1 0 0, 1 0 1, 0 0 1, 0 0 0)),
> ((1 1 1, 1 0 1, 0 0 1, 0 1 1, 1 1 1)),
> ((1 1 1, 1 0 1, 1 0 0, 1 1 0, 1 1 1)),
> ((1 1 1, 1 1 0, 0 1 0, 0 1 1, 1 1 1))
>   )'::geometry
>
> It show the polyhedral in 2D in both QGIS 2D and 3D window, but crashes
> QGIS
> when changing properties.
>
>
​The crashes are a general issue reported here:
https://issues.qgis.org/issues/17416

On some machines it crashes, on others it doesn't. If you find a
non-crashing machine, you'll see the cube.

Regards,
Anita​
___
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] PostGIS 3D cube lacks vertical faces

2017-12-20 Thread Jakob Lanstorp
Hi Anita et al,

How did you get the geometry into QGIS. I have tried running a sql from
within the db manager plugin on a postgis datebase like:

SELECT
'POLYHEDRALSURFACE Z (
((0 0 0, 0 1 0, 1 1 0, 1 0 0, 0 0 0)),
((0 0 0, 0 1 0, 0 1 1, 0 0 1, 0 0 0)),
((0 0 0, 1 0 0, 1 0 1, 0 0 1, 0 0 0)),
((1 1 1, 1 0 1, 0 0 1, 0 1 1, 1 1 1)),
((1 1 1, 1 0 1, 1 0 0, 1 1 0, 1 1 1)),
((1 1 1, 1 1 0, 0 1 0, 0 1 1, 1 1 1))
  )'::geometry

It show the polyhedral in 2D in both QGIS 2D and 3D window, but crashes QGIS
when changing properties.

I have also tried creating a view in postgis like:

CREATE OR REPLACE VIEW test.polyhedraltest AS (
  SELECT
row_number() OVER () AS row_id,
'POLYHEDRALSURFACE Z (
((0 0 0, 0 1 0, 1 1 0, 1 0 0, 0 0 0)),
((0 0 0, 0 1 0, 0 1 1, 0 0 1, 0 0 0)),
((0 0 0, 1 0 0, 1 0 1, 0 0 1, 0 0 0)),
((1 1 1, 1 0 1, 0 0 1, 0 1 1, 1 1 1)),
((1 1 1, 1 0 1, 1 0 0, 1 1 0, 1 1 1)),
((1 1 1, 1 1 0, 0 1 0, 0 1 1, 1 1 1))
  )'::geometry AS geom
);

This just loades an empty layer in QGIS.

regards
Jakob

Using the 64 bit OSGEO4W downloaded 2017-dec-14:
QGIS version 2.99.0-Master
QGIS code revision 010cb1567b



-
Jakob Lanstorp
--
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