Re: [QGIS-Developer] Custom widgets and Qt Designer 4 and 5

2018-03-19 Thread C Hamilton
I had the same problem so I am still using the QGIS 2.x Qt Designer for my
QGIS 3.0 dialogs figuring that at some point someone would fix it.So far so
good.

Calvin

On Mon, Mar 19, 2018 at 12:29 PM, matteo  wrote:

> Hi devs,
>
> sorry for raising this issue again. Some old and useful references at
> the end of the page.
>
> I'm getting a little bit confused with the usage of the custom widget
> for the plugin. I have compiled qgis (while not installed, I'm running
> it directly from source) and both Qt4 and Qt5 designer installed.
>
> With Qt4 designer I see the custom widgets, even if I always have the
> import error when loading the plugin (and I have to manually change the
> ui file from qgsmaplayercombobox.h to
> qgis.gui). Not a big deal but still...
>
> With Qt5 designer I cannot see the widget in the interface at all. I
> tried to copy
> /usr/lib/x86_64-linux-gnu/qt4/plugins/designer/libqgis_customwidgets.so
> to /usr/lib/x86_64-linux-gnu/qt5/plugins/designer but Qt5 designer tells
> me that something went wrong with the import.
>
> Do you have some suggestions to use a correct workflow to use these
> widgets in Qt x Designer?
>
> Thanks for all the feedbacks
>
> Cheers
>
>
> Matteo
>
>
> https://lists.osgeo.org/pipermail/qgis-developer/2016-June/043543.html
> https://lists.osgeo.org/pipermail/qgis-developer/2016-December/046063.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
___
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] Custom widgets and Qt Designer 4 and 5

2018-03-19 Thread matteo
Hi devs,

sorry for raising this issue again. Some old and useful references at
the end of the page.

I'm getting a little bit confused with the usage of the custom widget
for the plugin. I have compiled qgis (while not installed, I'm running
it directly from source) and both Qt4 and Qt5 designer installed.

With Qt4 designer I see the custom widgets, even if I always have the
import error when loading the plugin (and I have to manually change the
ui file from qgsmaplayercombobox.h to
qgis.gui). Not a big deal but still...

With Qt5 designer I cannot see the widget in the interface at all. I
tried to copy
/usr/lib/x86_64-linux-gnu/qt4/plugins/designer/libqgis_customwidgets.so
to /usr/lib/x86_64-linux-gnu/qt5/plugins/designer but Qt5 designer tells
me that something went wrong with the import.

Do you have some suggestions to use a correct workflow to use these
widgets in Qt x Designer?

Thanks for all the feedbacks

Cheers


Matteo


https://lists.osgeo.org/pipermail/qgis-developer/2016-June/043543.html
https://lists.osgeo.org/pipermail/qgis-developer/2016-December/046063.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

Re: [QGIS-Developer] [Qgis-user] QGIS 3 OS X/macOS

2018-03-19 Thread Tim Sutton
Hi William

Sorry for not replying to your email earlier - I was totally off grid for a 
week (wheee!). Thank you so much for preparing the packages. I’ve tested here 
on my Mac and it works beautifully. I think Richard and Jürgen have already 
picked up the bits of info you were looking for - feel free to ping me here on 
the list or by direct if you still need anything.

Regards

Tim

> On 15 Mar 2018, at 23:34, William Kyngesburye  wrote:
> 
> Oops, accidentally removed QGIS 2 from the page.  Restored now.
> 
>> On Mar 15, 2018, at 3:54 PM, Mike Hyslop > > wrote:
>> 
>> There is a “download archive” link on the left under Software Menu. You can 
>> find the 2.18 installer there.
>> 
>> Best,
>> Mike
>> 
>> On Thu, Mar 15, 2018 at 4:48 PM, Etienne Trimaille 
>> > wrote:
>> Thanks a lot William for this work! Very very appreciated!
>> 
>> BTW, I noticed you removed the QGIS 2 installer from the webpage: 
>> http://www.kyngchaos.com/software/qgis 
>> 
>> QGIS 2 is maintained until January 2019, can you put back at least the QGIS 
>> 2.18.15 so users can download it again? Thanks.
>> https://qgis.org/en/site/getinvolved/development/roadmap.html#release-schedule
>>  
>> 
>> 
>> Regards,
>> Etienne
>> 
>> 2018-03-15 2:06 GMT+01:00 David Fawcett > >:
>> Thank you William! You provide a very valuable services for all of us who do 
>> GIS on a Mac.
>> 
>> David.
>> 
>> On Tue, Mar 13, 2018 at 9:21 PM, Madry, Scott > > wrote:
>> Scott Madry
>> 
>> and just FYI, I had to load matplotlib and scipy to get the Semi Automatic 
>> Classification plugin to work.
>> 
>> S
>> > On Mar 12, 2018, at 7:31 PM, Nyall Dawson > > > wrote:
>> >
>> > On 13 March 2018 at 04:29, William Kyngesburye > > > wrote:
>> >> Sorry for the long wait.  It's been a hectic year - personal life changes 
>> >> (marriage), but I'm finally getting back into gear.
>> >>
>> >> My QGIS 3 package for OS X/macOS is ready.
>> >
>> > Champion! I'm sure you've made a lot of people very happy with this
>> > announcement.
>> >
>> > For those who know what you do, your work is very much valued! It's a
>> > shame that packaging is somewhat underappreciated and under-supported
>> > by the wider QGIS user community :(
>> >
>> > Nyall
>> >
>> >
>> >  Besides the big QGIS release, there are a couple other big changes
>> > in the packaging.
>> >>
>> >> - Minimum OS X 10.10 Yosemite
>> >>
>> >> - Requires Python 3.6 from python.org  (note it must 
>> >> be this and not homebrew or other distribution).
>> >>
>> >> - except for what I include in the GDAL Complete package, all extra 
>> >> necessary python modules are available from pypi with pip.  These are 
>> >> installed by the QGIS installer and need an internet connection at that 
>> >> time.
>> >>
>> >> Make sure to install Python 3 first, otherwise the GDAL Complete python 
>> >> components will not be installed (these are also required by QGIS).
>> >>
>> >> Currently the globe plugin is not included, but I'll get that out in an 
>> >> update soon.  The new QGIS 3D features are included.
>> >>
>> >> GDAL format plugins will follow soon (ECW, MrSID, GRASS).
>> >>
>> >> -
>> >> William Kyngesburye 
>> >> http://www.kyngchaos.com/ 
>> >>
>> >> The equator is so long, it could encircle the earth completely once.
>> >>
>> >> ___
>> >> Qgis-user mailing list
>> >> qgis-u...@lists.osgeo.org 
>> >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user 
>> >> 
>> >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user 
>> >> 
>> > ___
>> > Qgis-user mailing list
>> > qgis-u...@lists.osgeo.org 
>> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user 
>> > 
>> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user 
>> > 
>> 
>> ___
>> Qgis-user mailing list
>> qgis-u...@lists.osgeo.org 
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user 
>> 
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user 
>> 

Re: [QGIS-Developer] Visual Changelog: ready? Move to Website? Or Not?

2018-03-19 Thread Tim Sutton
Hi

> On 16 Mar 2018, at 14:39, Régis Haubourg  wrote:
> 
> Hi,
> 
> I agree with what Andreas proposes, ie announce clearly a date to the end of 
> April, then make a copy to the website.
> 
> I still try to polish the changelog currently, some entries are hard to 
> understand or deserve animated gif's and some entries can be factorized in 
> one only for a shorter changelog. If the changelog is too long to be read, 
> that means it is too long :)

I don’t think a long changelog is a limitation - in many cases this may be the 
only place where details of new features are available and enthusiastic users 
will happily pick through the details of the changelog to find things that are 
interesting for them.




> 
> Another glitch linked to the validation workflow. When someone submit an 
> entry, the entry disappears until it is validated. So that leaded to 
> duplicates, probably because some thought they had an issue with the website.

As Etienne mentioned we will get rid of this soon - hopefully in time for 3.2.

Thanks for all your contributions!

Regards

Tim

> 
> I would suggest that the validation workflow submits the new version to 
> moderators, and that a copy of the old version stays published. A message to 
> inform the author he needs some validation would be necessary too.
> 
> Cheers!
> 
> Régis
> 
> 

—







Tim Sutton

Co-founder: Kartoza
Project chair: QGIS.org

Visit http://kartoza.com  to find out about open source:

Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services

Skype: timlinux
IRC: timlinux on #qgis at freenode.net



signature.asc
Description: Message signed with OpenPGP
___
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] QEP: Projects in PostgreSQL

2018-03-19 Thread Martin Dobias
Hi everyone

Here is a new proposal to add support for storage of QGIS projects
inside PostgreSQL (and possibly in other backends in the future):

https://github.com/qgis/QGIS-Enhancement-Proposals/issues/118

Any comments would be highly appreciated!

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

[QGIS-Developer] Plugin [1402] Calculate Geometry approval notification.

2018-03-19 Thread noreply

Plugin Calculate Geometry approval by zimbogisgeek.
The plugin version "[1402] Calculate Geometry 0.3.2" is now approved
Link: http://plugins.qgis.org/plugins/CalculateGeometry/
___
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 [974] DWA M150 XML Import approval notification.

2018-03-19 Thread noreply

Plugin DWA M150 XML Import approval by zimbogisgeek.
The plugin version "[974] DWA M150 XML Import 1.1" is now approved
Link: http://plugins.qgis.org/plugins/M150XML/
___
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 [1402] Calculate Geometry approval notification.

2018-03-19 Thread noreply

Plugin Calculate Geometry approval by zimbogisgeek.
The plugin version "[1402] Calculate Geometry 0.3.2" is now approved
Link: http://plugins.qgis.org/plugins/CalculateGeometry/
___
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 [1343] PaPRIKa Toolbox approval notification.

2018-03-19 Thread noreply

Plugin PaPRIKa Toolbox approval by zimbogisgeek.
The plugin version "[1343] PaPRIKa Toolbox 1.1" is now approved
Link: http://plugins.qgis.org/plugins/Paprika/
___
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 [1242] QuickPrint approval notification.

2018-03-19 Thread noreply

Plugin QuickPrint approval by zimbogisgeek.
The plugin version "[1242] QuickPrint 3.4.3" is now approved
Link: http://plugins.qgis.org/plugins/QuickPrint/
___
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] only read name and group name of processing algorithms during startup

2018-03-19 Thread Rashad Kanavath
Nyall,

could we have defineCharacteristicsFromFile method in
QgsProcessingAlgorithm ?.
the diff with canExecute is more of a working draft.



On Thu, Mar 15, 2018 at 03:27:50PM +0100, Rashad Kanavath wrote:
> Hello,
> 
> On Wed, Mar 14, 2018 at 4:38 AM, Nyall Dawson 
> wrote:
> 
> > On 13 March 2018 at 20:56, Rashad Kanavath  wrote:
> > > if a provier is enabled then qgis reads all algorithm's during
> > > startup. This involves reading descriptor files and doing all parsing
> > > required to make gui when user actually open algorithm (click on
> > > treeitem).
> > > So If I have like three provider enabled it takes more time to start
> > qgis than
> > > usual. Even though, I might open one or two later at some point.
> > >
> > > It is not necessary here to parse "all" data during startup.  name and
> > > group name is only needed to fill provider-algorithm tree. This is
> > > true for any provider which uses descriptor files (OTB, GRASS, SAGA
> > etc..).
> >
> > Actually it's a bit trickier here -- models make things more complex
> > as they self-validate on creation, and need full knowledge of the
> > dependent algorithm's parameters and outputs.
> >
> 
> Yes. there are different cases like modeler, standard, batch, scripts.
> I tried to utilize canExecute() in otb and seems to be working.
> You already have a very flexible, strong API in qgis processing such
> trickier feature like this one has become too easy!!.
> 
> I had to call alg.canExecute() in two places and that's it.
> diff attached below. With this loading time will be hopefully improved for
> OTB, SAGA, GRASS GIS.
> 
> index f5bdc40dc5..1cca57769a 100644
> --- a/python/plugins/processing/modeler/ModelerParametersDialog.py
> +++ b/python/plugins/processing/modeler/ModelerParametersDialog.py
> @@ -70,6 +70,7 @@ class ModelerParametersDialog(QDialog):
>  QDialog.__init__(self)
>  self.setModal(True)
>  # The algorithm to define in this dialog. It is an instance of
> QgsProcessingModelAlgorithm
> +alg.canExecute()
>  self._alg = alg
>  # The model this algorithm is going to be added to
>  self.model = model
> @@ -80,6 +81,9 @@ class ModelerParametersDialog(QDialog):
>  settings = QgsSettings()
>  self.restoreGeometry(settings.value("/Processing/
> modelParametersDialogGeometry", QByteArray()))
> 
> +def algorithm(self):
> +return self._alg
> +
>  def closeEvent(self, event):
>  settings = QgsSettings()
>  settings.setValue("/Processing/modelParametersDialogGeometry",
> self.saveGeometry())
> @@ -242,7 +246,6 @@ class ModelerParametersDialog(QDialog):
>  outTypes = []
>  elif not isinstance(outTypes, (tuple, list)):
>  outTypes = [outTypes]
> -
>  return self.model.availableSourcesForChild(self.childId,
> [p.typeName() for p in paramType if
> 
>  issubclass(p, QgsProcessingParameterDefinition)],
> [o.typeName() for o in
> outTypes if
> diff --git a/src/core/processing/models/qgsprocessingmodelchildalgorithm.cpp
> b/src/core/processing/models/qgsprocessingmodelchildalgorithm.cpp
> index f5f8074c88..01906a7f62 100644
> --- a/src/core/processing/models/qgsprocessingmodelchildalgorithm.cpp
> +++ b/src/core/processing/models/qgsprocessingmodelchildalgorithm.cpp
> @@ -58,7 +58,7 @@ QgsProcessingModelChildAlgorithm &
> QgsProcessingModelChildAlgorithm::operator=( c
> 
>  const QgsProcessingAlgorithm *QgsProcessingModelChildAlgorithm::algorithm()
> const
>  {
> -  return mAlgorithm.get();
> +  return mAlgorithm && mAlgorithm->canExecute() ? mAlgorithm.get():
> nullptr;
>  }
> 
>  void QgsProcessingModelChildAlgorithm::setModelOutputs( const
> QMap  )
> 
> test code for otb provider:
> https://gitlab.orfeo-toolbox.org/orfeotoolbox/qgis-otb-plugin
> I can add modification to SAGA and GRASS if you are okay to move this to PR.
> 
> 
> > > Issue is more about calling defineDescriptorFile() in Algorithm's
> > > __init__ method. And ofcourse, one cannot avoid init when adding
> > > algorithm and tree need to add an instance of algorithm. what can be
> > > done?
> >
> > What I've been thinking/planning is to take advantage of task manager
> > here. So basically:
> >
> > - on processing startup, there's no providers added
> > - when the qgis interface is fully loaded then we fire up a background
> > task which loads the providers, allowing them to fully build their
> > available algorithms and parameters without blocking the startup
> > - after the task completes, the tree is populated
> >
> 
> this is still loading all algorithm with parsing but things will be in
> background to not block ui for users. correct?
> In that case, you could include above diff and then add loading in
> background task. IMHO that will be best.
> 
> 
> > I'd like to see more plugins take this approach, so 

[QGIS-Developer] Submissions for FOSS4G Dar es Salaam

2018-03-19 Thread Andreas Neumann
Hi, 

I just submitted two entries at the FOSS4G conference - note that the
CfP is open until March 21 (three more days). 

1. Presentation titled "Selective improvements in QGIS 3.x" 

2. Workshop "Unleashing the power of QGIS expressions" 

The reason I write here are two-fold: 

* avoid overlap with other submissions
* find a co-presenter co-workshop instructor

So if you intend to attend FOSS4G and would like to team up with me -
esp. for the workshop - please contact me. I could then provide more
details and you could still influence the submissions. 

If you already submitted a QGIS talk to FOSS4G, please also respond with
your submission title - so we can coordinate a bit and see what areas
are already covered. 

Thanks for your replies, 

Andreas___
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