Re: [Qgis-developer] Sample models broken
Yes, exactly. Thanks. Il 28 settembre 2015 12:01:32 CEST, Victor Olayaha scritto: >When you say sample models you mean the ones in the online github >collection? That repo needs a bit of love, i guess... Anita proposed >separating them in folders indicating which version they work on. It's >a good idea, but I have to find some time to implement it and curate >the collection of scripts and models a bit... > > > >2015-09-28 11:50 GMT+02:00 Paolo Cavallini : >> Hi all, >> with current qgis stable (2.10), sample Processing models fail wit >the >> error below. Should I open a ticket? >> All the best. >> === >> Errore durante l'esecuzione di codice Python: >> >> >> Traceback (most recent call last): >> File >> "/usr/share/qgis/python/plugins/processing/gui/ProcessingToolbox.py", >> line 201, in executeAlgorithm >> alg = alg.getCopy() >> File >> >"/usr/share/qgis/python/plugins/processing/modeler/ModelerAlgorithm.py", >> line 169, in getCopy >> newone.defineCharacteristics() >> File >> >"/usr/share/qgis/python/plugins/processing/modeler/ModelerAlgorithm.py", >> line 208, in defineCharacteristics >> modelOutput = copy.deepcopy(alg.algorithm.getOutputFromName(out)) >> File >> >"/usr/share/qgis/python/plugins/processing/modeler/ModelerAlgorithm.py", >> line 110, in algorithm >> self._algInstance = >> ModelerUtils.getAlgorithm(self.consoleName).getCopy() >> AttributeError: 'NoneType' object has no attribute 'getCopy' >> -- >> Paolo Cavallini - www.faunalia.eu >> QGIS & PostGIS courses: http://www.faunalia.eu/training.html >> ___ >> Qgis-developer mailing list >> Qgis-developer@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Paolo Cavallini http://www.faunalia.eu___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Sample models broken
Il 28/09/2015 14:30, Anita Graser ha scritto: > Hi, > I'll put that on my list for the dev meeting in case this hasn't been > solved by then. Thanks, I can help if useful. All the best. -- Paolo Cavallini - www.faunalia.eu QGIS & PostGIS courses: http://www.faunalia.eu/training.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Sample models broken
Hi, I'll put that on my list for the dev meeting in case this hasn't been solved by then. Best wishes Anita On Sep 28, 2015 2:08 PM, "Paolo Cavallini"wrote: > Yes, exactly. > Thanks. > > Il 28 settembre 2015 12:01:32 CEST, Victor Olaya ha > scritto: >> >> When you say sample models you mean the ones in the online github >> collection? That repo needs a bit of love, i guess... Anita proposed >> separating them in folders indicating which version they work on. It's >> a good idea, but I have to find some time to implement it and curate >> the collection of scripts and models a bit... >> >> >> >> 2015-09-28 11:50 GMT+02:00 Paolo Cavallini : >> >>> Hi all, >>> with current qgis stable (2.10), sample Processing models fail wit the >>> error below. Should I open a ticket? >>> All the best. >>> === >>> Errore durante l'esecuzione di codice Python: >>> >>> >>> Traceback (most recent call last): >>>File >>> "/usr/share/qgis/python/plugins/processing/gui/ProcessingToolbox.py", >>> line 201, in >>> executeAlgorithm >>> alg = alg.getCopy() >>>File >>> "/usr/share/qgis/python/plugins/processing/modeler/ModelerAlgorithm.py", >>> line 169, in getCopy >>> newone.defineCharacteristics() >>>File >>> "/usr/share/qgis/python/plugins/processing/modeler/ModelerAlgorithm.py", >>> line 208, in defineCharacteristics >>> modelOutput = copy.deepcopy(alg.algorithm.getOutputFromName(out)) >>>File >>> "/usr/share/qgis/python/plugins/processing/modeler/ModelerAlgorithm.py", >>> line 110, in algorithm >>> self._algInstance = >>> ModelerUtils.getAlgorithm(self.consoleName).getCopy() >>> AttributeError: 'NoneType' object has no attribute 'getCopy' >>> -- >>> Paolo Cavallini - www.faunalia.eu >>> QGIS & PostGIS courses: http://www.faunalia.eu/training.html >>> -- >>> >>> Qgis-developer mailing list >>> Qgis-developer@lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/qgis-developer >>> >> > -- > Paolo Cavallini > http://www.faunalia.eu > > ___ > Qgis-developer mailing list > Qgis-developer@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-developer > ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Sample models broken
When you say sample models you mean the ones in the online github collection? That repo needs a bit of love, i guess... Anita proposed separating them in folders indicating which version they work on. It's a good idea, but I have to find some time to implement it and curate the collection of scripts and models a bit... 2015-09-28 11:50 GMT+02:00 Paolo Cavallini: > Hi all, > with current qgis stable (2.10), sample Processing models fail wit the > error below. Should I open a ticket? > All the best. > === > Errore durante l'esecuzione di codice Python: > > > Traceback (most recent call last): > File > "/usr/share/qgis/python/plugins/processing/gui/ProcessingToolbox.py", > line 201, in executeAlgorithm > alg = alg.getCopy() > File > "/usr/share/qgis/python/plugins/processing/modeler/ModelerAlgorithm.py", > line 169, in getCopy > newone.defineCharacteristics() > File > "/usr/share/qgis/python/plugins/processing/modeler/ModelerAlgorithm.py", > line 208, in defineCharacteristics > modelOutput = copy.deepcopy(alg.algorithm.getOutputFromName(out)) > File > "/usr/share/qgis/python/plugins/processing/modeler/ModelerAlgorithm.py", > line 110, in algorithm > self._algInstance = > ModelerUtils.getAlgorithm(self.consoleName).getCopy() > AttributeError: 'NoneType' object has no attribute 'getCopy' > -- > Paolo Cavallini - www.faunalia.eu > QGIS & PostGIS courses: http://www.faunalia.eu/training.html > ___ > Qgis-developer mailing list > Qgis-developer@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Sample
Seems it calls uniqueValues so if that takes a long time it will block. Depends on the provider I guess. - Nathan On Tue, Jul 15, 2014 at 3:57 PM, Jürgen E. j...@norbit.de wrote: Hi Paolo, On Tue, 15. Jul 2014 at 07:12:22 +0200, Paolo Cavallini wrote: thanks. in this case, I do not see what is the usefulness of it. IMHO it should perform a quick LIMIT 10 query. should I open a ticket? Have you verified that is doesn't? Because that's what it used to do. Jürgen -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31 Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de QGIS release manager (PSC) GermanyIRC: jef on FreeNode -- norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH Rheinstrasse 13, 26506 Norden GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Sample
Hi Nathan, On Tue, 15. Jul 2014 at 15:59:27 +1000, Nathan Woodrow wrote: On Tue, Jul 15, 2014 at 3:57 PM, Jürgen E. j...@norbit.de wrote: On Tue, 15. Jul 2014 at 07:12:22 +0200, Paolo Cavallini wrote: IMHO it should perform a quick LIMIT 10 query. Have you verified that is doesn't? Because that's what it used to do. Seems it calls uniqueValues so if that takes a long time it will block. Depends on the provider I guess. Of course. LIMIT 10 probably is meant for the postgres provider - and that's what it does already. The spatialite provider does too. The oracle provider limits with rownum and mssql uses top. So unless there's something preventing the provider's uniqueValues to kick in, it's already there. Jürgen -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31 Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de QGIS release manager (PSC) GermanyIRC: jef on FreeNode -- norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH Rheinstrasse 13, 26506 Norden GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Sample
Hey, Yeah I'm thinking it might just be slow for something like shapefile where is there no index on that column and it has to get each value to find the unique ones. I'm not looking at the code, just guessing. - Nathan On Tue, Jul 15, 2014 at 4:09 PM, Jürgen E. j...@norbit.de wrote: Hi Nathan, On Tue, 15. Jul 2014 at 15:59:27 +1000, Nathan Woodrow wrote: On Tue, Jul 15, 2014 at 3:57 PM, Jürgen E. j...@norbit.de wrote: On Tue, 15. Jul 2014 at 07:12:22 +0200, Paolo Cavallini wrote: IMHO it should perform a quick LIMIT 10 query. Have you verified that is doesn't? Because that's what it used to do. Seems it calls uniqueValues so if that takes a long time it will block. Depends on the provider I guess. Of course. LIMIT 10 probably is meant for the postgres provider - and that's what it does already. The spatialite provider does too. The oracle provider limits with rownum and mssql uses top. So unless there's something preventing the provider's uniqueValues to kick in, it's already there. Jürgen -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31 Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de QGIS release manager (PSC) GermanyIRC: jef on FreeNode -- norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH Rheinstrasse 13, 26506 Norden GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Sample
Il 15/07/2014 08:11, Nathan Woodrow ha scritto: Yeah I'm thinking it might just be slow for something like shapefile where is there no index on that column and it has to get each value to find the unique ones. I'm not looking at the code, just guessing. Thanks for your comments. I found it rather slow for large PostGIS tables. All the best. -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Sample
Hi Paolo, On Tue, 15. Jul 2014 at 08:50:10 +0200, Paolo Cavallini wrote: Yeah I'm thinking it might just be slow for something like shapefile where is there no index on that column and it has to get each value to find the unique ones. I'm not looking at the code, just guessing. Thanks for your comments. I found it rather slow for large PostGIS tables. As slow as SELECT DISTINCT attribute FROM table ORDER BY attribute LIMIT 10 ? Jürgen -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31 Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de QGIS release manager (PSC) GermanyIRC: jef on FreeNode -- norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH Rheinstrasse 13, 26506 Norden GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Sample
Il 15/07/2014 09:22, Jürgen E. Fischer ha scritto: As slow as SELECT DISTINCT attribute FROM table ORDER BY attribute LIMIT 10 apparently yes - probably I had some additional slowdown. sorry for the noise. -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Sample
In several dialog (e.g. in experssions) there is a button to show only 10 values of a field. I assumed this was a simple and quick way to inspect the kind of data present. In current master, however, clicking on this for a large table freezes QGIS, so I interpret this as an attempt to load all of a table. Is this correct? In case, I think it should be changed. for large table it always took a lot (too much), if I'm not wrong it shouldn't be new in master... -- G -- ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Sample
Il 14/07/2014 20:12, Giovanni Manghi ha scritto: In several dialog (e.g. in experssions) there is a button to show only 10 values of a field. I assumed this was a simple and quick way to inspect the kind of data present. In current master, however, clicking on this for a large table freezes QGIS, so I interpret this as an attempt to load all of a table. Is this correct? In case, I think it should be changed. for large table it always took a lot (too much), if I'm not wrong it shouldn't be new in master... thanks. in this case, I do not see what is the usefulness of it. IMHO it should perform a quick LIMIT 10 query. should I open a ticket? all the best. -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Sample
Hi Paolo, On Tue, 15. Jul 2014 at 07:12:22 +0200, Paolo Cavallini wrote: thanks. in this case, I do not see what is the usefulness of it. IMHO it should perform a quick LIMIT 10 query. should I open a ticket? Have you verified that is doesn't? Because that's what it used to do. Jürgen -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31 Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de QGIS release manager (PSC) GermanyIRC: jef on FreeNode -- norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH Rheinstrasse 13, 26506 Norden GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer