Re: [QGIS-Developer] Programmatically iterate over features with Processing in QGIS 3

2018-09-14 Thread DelazJ
Hi,

Thanks Nyall. If it uses the same getFeatures method (already shown
multiple times) then I'll remove that example.

Regards,
Harrissou


Le ven. 14 sept. 2018 à 01:59, Nyall Dawson  a
écrit :

> On Thu, 13 Sep 2018 at 15:40, DelazJ  wrote:
> >
> > Hi,
> > CCing to qgis-dev as nobody in community seems... inspired by the
> question and I'd like to close that old PR and rebase other changes.
> >
> > Thanks for any hint.
> >
> > Harrissou
> >
> > Le mar. 11 sept. 2018 à 18:12, DelazJ  a écrit :
> >>
> >> Hi all,
> >>
> >> QGIS documentation states [0] that Processing can be used to iterate
> over features with the following code:
> >>
> >> import processing
> >> features = processing.features(layer)
> >> for feature in features:
> >> # do whatever you need with the feature
> >>
> >> This code no longer works in QGIS3 and needs an update [1] I fail to
> find.
> >> So anyone to suggest the right replacement, please?
>
> Just iterate directly over the features from the source. The things
> which processing.features used to do is taken care of transparently
> for you now.
>
> I.e.
>
> source = self.parameterAsSource(parameters, 'INPUT', context)
> for f in source.getFeatures():
># do something with f
>
> As much as possible, Processing-specific methods were removed in QGIS
> 3.0 in favour of the standard PyQGIS calls. This was done to reduce
> code duplication, and make the API more consistent (i.e. easier to
> move code between Processing algorithms -> standalone scripts/plugins
> and vice versa).
>
> 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] Debian testing - buster bug

2018-09-14 Thread Paolo Cavallini
Il 09/14/2018 10:50 AM, Richard Duivenvoorde ha scritto:
>
> Hi Debian fans,
>
> Fyi: libqt5network5_5.11.1+dfsg-8_amd64.deb is in testing and working!!
>
> Enjoy QGIS and Debian :-)
>
> Richard
confirmed, obviously, also on Sid. Pretty quick response thank you Debian!
Cheers.

-- 
Paolo Cavallini - www.faunalia.eu
QGIS.ORG Chair:
http://planet.qgis.org/planet/user/28/tag/qgis%20board/

___
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 [1498] Extreme Value Classification for Polygon approval notification.

2018-09-14 Thread noreply

Plugin Extreme Value Classification for Polygon approval by pcav.
The plugin version "[1498] Extreme Value Classification for Polygon 0.5 
Experimental" is now approved
Link: http://plugins.qgis.org/plugins/aChor/
___
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] Issues with QGIS 3 rotate tool

2018-09-14 Thread C Hamilton
If I try to rotate an EPSG:4326 vector object, I get the nice outline while
rotating, but when I click to complete it, the shape is badly misshapen


If am guessing it is because of being in 4326, but the problem is what you
see while rotating is not what you get as the final result. If I do the
same with something like a UTM projection then it works correctly.

What is the intended operation of the tool? It shouldn't show one thing
while rotating and then deliver a different result. I am guessing that the
move tool may also be distorting shapes, but I have not really looked at it.

Do I need to write a geodesic move and rotate tool as part of the Shape
Tools plugin?

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] Use QGIS API in Qt5

2018-09-14 Thread Peter Petrik
Hi,

look at this thread
https://lists.osgeo.org/pipermail/qgis-developer/2018-September/054398.html

I suggest to use https://github.com/OSGeo/homebrew-osgeo4mac

Kind regards,
Peter

On Fri, Sep 14, 2018 at 2:04 PM David Marteau  wrote:

> Hi,
>
> Qgis 3 use Qt5  and Python 3.5+ , if you use Qgis 2 api then you have to
> use Qt4.
>
> You have the Qgis API  documentation here: https://qgis.org/api/
>
> How do you install qgis ? homebrew, macport, custom build or from
> https://www.qgis.org/fr/site/forusers/download.html ? the exact version
> of Qt Qgis depends on may vary with the distribution.
>
>
> Le 14 sept. 2018 à 13:35, Dave Barter  a écrit :
>
> I want to build a very basic desktop map application using the QGIS API.
>
> My development environment is currently Mac OSX High Sierra and Qt5.
>
> I’m struggling to find any developer documentation to get me started and
> the GitHub repo suggests OSX builds of QGIS need Qt4.
>
> Can my objective be achieved? If so can anyone point me to some docs to
> get me started
>
> --
> Dave Barter
>
> Web: http://www.phased.co.uk
> Email:d...@phased.co.uk 
> Twitter:@Citizenfishy
>
>
>
> ___
> 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] Use QGIS API in Qt5

2018-09-14 Thread David Marteau
Hi,

Qgis 3 use Qt5  and Python 3.5+ , if you use Qgis 2 api then you have to use 
Qt4.

You have the Qgis API  documentation here: https://qgis.org/api/

How do you install qgis ? homebrew, macport, custom build or from 
https://www.qgis.org/fr/site/forusers/download.html ? the exact version of Qt 
Qgis depends on may vary with the distribution.


> Le 14 sept. 2018 à 13:35, Dave Barter  a écrit :
> 
> I want to build a very basic desktop map application using the QGIS API. 
> 
> My development environment is currently Mac OSX High Sierra and Qt5. 
> 
> I’m struggling to find any developer documentation to get me started and the 
> GitHub repo suggests OSX builds of QGIS need Qt4.
> 
> Can my objective be achieved? If so can anyone point me to some docs to get 
> me started 
> 
> -- 
> Dave Barter
> 
> Web: http://www.phased.co.uk 
> Email:d...@phased.co.uk 
> Twitter:@Citizenfishy
> 
> 
> 
> ___
> 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] Use QGIS API in Qt5

2018-09-14 Thread Dave Barter
I want to build a very basic desktop map application using the QGIS API. 

My development environment is currently Mac OSX High Sierra and Qt5. 

I’m struggling to find any developer documentation to get me started and the 
GitHub repo suggests OSX builds of QGIS need Qt4.

Can my objective be achieved? If so can anyone point me to some docs to get me 
started 

-- 
Dave Barter

Web: http://www.phased.co.uk
Email:d...@phased.co.uk
Twitter:@Citizenfishy



___
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] Debian testing - buster bug

2018-09-14 Thread Richard Duivenvoorde
On 09/12/2018 09:46 AM, Richard Duivenvoorde wrote:
> On 09/11/2018 10:31 PM, Tudor barascu wrote:
>> hi richard,
>>
>> to quote from my first message
>> “the temporary workaround is to install
>> libqt5network5_5.11.1+dfsg-6_amd64.deb over the latest
>> libqt5network5_5.11.1+dfsg-7_amd64.deb”
>>
>> I did this and qgis master works just fine from source.
>> Why aren’t you doing it?
> 
> Hi Tudor,
> 
> well, because I'm afraid to mess up my system... I do not find myself a
> hardcore Debian admin. But maybe I'll try it.

Hi Debian fans,

Fyi: libqt5network5_5.11.1+dfsg-8_amd64.deb is in testing and working!!

Enjoy QGIS and Debian :-)

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