[QGIS-Developer] integrating tesorflow with QGIS

shiva Reddy kotishiva at gmail.com
Thu Jun 20 06:17:04 PDT 2019


Hi,
Is there any plan to integrate tensorflow or any such library in QGIS where one can develop tools which canexecute   pre trained models inside QGIS environment?

Beat wishes!

Sent from my iPhone

> On 20-Jun-2019, at 13:12, qgis-developer-request at lists.osgeo.org wrote:
> 
> Send QGIS-Developer mailing list submissions to
>    qgis-developer at lists.osgeo.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>    https://lists.osgeo.org/mailman/listinfo/qgis-developer
> or, via email, send a message with subject or body 'help' to
>    qgis-developer-request at lists.osgeo.org
> 
> You can reach the person managing the list at
>    qgis-developer-owner at lists.osgeo.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of QGIS-Developer digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: translate plugin gui and log messages (Jonas)
>   2. Re: Preferred way to set startup options on Windows and is
>      qgis_global_settings.ini used or not (Larry Shaffer)
>   3. Re: ProcessingAlgorithm: get filename of the INPUT    param
>      (Nyall Dawson)
>   4. Re: translate plugin gui and log messages (matteo)
>   5. Re: translate plugin gui and log messages (Ismail Sunni)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Wed, 19 Jun 2019 21:08:42 +0200
> From: Jonas <qgis at ag99.de>
> To: C Hamilton <adenaculture at gmail.com>
> Cc: qgis-developer <qgis-developer at lists.osgeo.org>
> Subject: Re: [QGIS-Developer] translate plugin gui and log messages
> Message-ID: <9858ec0b-403f-2829-4677-02b64137efe8 at ag99.de>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
> 
> You can just use the pylupdate5 script, its in 
> %OSGeo4Win%\apps\Python37\Scripts
> 
> It loads your .pro file and creates the .ts files which you can open in 
> QtLinguist. After translating you release within QtLinguist to a .qm file.
> 
> See: 
> https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/plugins.html?highlight=plugin#ts-file
> 
> 
> jonas
> 
> 
>> On 19.06.2019 20:01, C Hamilton wrote:
>> I am also interested in how you do this on Windows because I had a 
>> request to add translation ability to the Shape Tools plugin, but 
>> these instructions don't seem to include anything for Windows.
>> 
>> Thanks,
>> 
>> Calvin
>> 
>> On Wed, Jun 19, 2019 at 2:24 AM matteo <matteo.ghetta at gmail.com 
>> <mailto:matteo.ghetta at gmail.com>> wrote:
>> 
>>    Hi Roberta,
>> 
>>    well the process is pretty easy and straightforward.
>> 
>>    I use the Makefile to manage all the process [0].
>> 
>>    Basically the steps are:
>> 
>>    * adding a list to locales in the Makefile, like: LOCALES = en it nl
>>    * always in the Makefile add all the paths to the files that contains
>>    the string you want to translate (managed by the self.tr
>>    <http://self.tr>() method):
>> 
>>    SOURCES = \
>>            __init__.py \
>>            plugin.py plugin_dialog.py
>> 
>>    UI_FILES = plugin_base.ui
>> 
>>    * now you can use make transup to create the ts file in all the
>>    languages
>>    * translate using the software you prefer
>>    * compile the ts in qm using make transcompile
>> 
>>    That's it. Whenever you add/change something in the files/UI you
>>    have to
>>    run make transup again, translate, recompile
>> 
>>    Cheers
>> 
>>    Matteo
>> 
>> 
>> 
>>    [0]
>>    https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/plugins.html#translate-using-makefile
>>    _______________________________________________
>>    QGIS-Developer mailing list
>>    QGIS-Developer at lists.osgeo.org <mailto:QGIS-Developer at lists.osgeo.org>
>>    List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>    Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190619/57d9840f/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 2
> Date: Wed, 19 Jun 2019 15:58:57 -0600
> From: Larry Shaffer <larrys at dakotacarto.com>
> To: qgis-developer <qgis-developer at lists.osgeo.org>
> Subject: Re: [QGIS-Developer] Preferred way to set startup options on
>    Windows and is qgis_global_settings.ini used or not
> Message-ID:
>    <CA+nQOR-Y7SBZ=jBkCfOp3yzKB9X=++0GYN5X3Rwm8Kz+zMx_eA at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Hi All,
> 
> Of note from the Boundless docs repo is this little script I wrote to dump
> existing settings to an .ini file:
> https://github.com/boundlessgeo/desktop-documentation/blob/master/docs/source/system_admins/qgis-settings-to-ini.py
> 
> Just load it into the Python Console's editor and run. It may need updated
> a bit to be purely Python 3, for installs that don't have Python 2 around.
> 
> I think it should be added to QGIS src code repo, maybe under 'resources,'
> and linked-to from QGIS docs. It is already GPLv2+ licensed.
> 
> Larry Shaffer
> Dakota Cartography
> Black Hills, South Dakota
> 
> 
>> On Wed, Jun 19, 2019 at 6:17 AM DelazJ <delazj at gmail.com> wrote:
>> 
>> Hi all,
>> Does this not help
>> https://docs.qgis.org/testing/en/docs/user_manual/introduction/qgis_configuration.html#deploying-qgis-within-an-organization
>> ?
>> 
>> Regards,
>> Harrissou
>> 
>> Le mer. 19 juin 2019 à 14:11, Richard Duivenvoorde <rdmailings at duif.net>
>> a écrit :
>> 
>>>> On 19/06/2019 11.00, Alexandre Neto wrote:
>>>> Hi Richard,
>>>> 
>>>> In preparation for a release of Boundless Desktop 2, which would be
>>>> based on QGIS 3 (I don't know nothing about it now) we prepared some
>>>> documentation for system administrators. See if any of this helps:
>>>> 
>>>> 
>>> https://github.com/boundlessgeo/desktop-documentation/tree/master/docs/source/system_admins
>>>> 
>>>> BTW, I am not sure if any of this was specific of the product or if it
>>>> should work with any version of QGIS.
>>> 
>>> Hi Alexandre,
>>> 
>>> From that docs, I think only the globalsetting.rst is still relevant.
>>> And there is already info about it in the docs.
>>> 
>>> But I agree we should have more info for sysadmins, who have to deploy
>>> QGIS in large scale environments, and have to set certain
>>> connections/plugins/defaults etc etc
>>> 
>>> Regards,
>>> 
>>> Richard
>>> 
>>> 
>>> _______________________________________________
>>> QGIS-Developer mailing list
>>> QGIS-Developer at 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 at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190619/4a275d2a/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 3
> Date: Thu, 20 Jun 2019 08:47:35 +1000
> From: Nyall Dawson <nyall.dawson at gmail.com>
> To: Richard Duivenvoorde <rdmailings at duif.net>
> Cc: qgis-developer <qgis-developer at lists.osgeo.org>
> Subject: Re: [QGIS-Developer] ProcessingAlgorithm: get filename of the
>    INPUT    param
> Message-ID:
>    <CAB28AshrmsrQAD59Sjr5eWUyqz7DJ7mrn2qrGgYh8U46GU35Kw at mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
> 
>> On Wed, 19 Jun 2019 at 22:20, Richard Duivenvoorde <rdmailings at duif.net> wrote:
>> 
>> Hi,
>> 
>> got a question from somebody who needed to find the filename of an input
>> param in a ProcessingAlgorithm
>> (because he is going to read that file again or something like that).
> 
> Short answer -- it's not possible, and if you DO find a workaround, DON'T do it.
> 
> By design feature sources aren't layers, and the features coming from
> a feature source may not even be associated with any layer at all. If
> you need to get the path to a input file, you should be using a vector
> layer parameter instead (but be very careful of thread safety issues,
> and consider returning the FlagNoThreading flag for your algorithm to
> ensure it's not crashy)
> 
> Nyall
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Thu, 20 Jun 2019 09:11:11 +0200
> From: matteo <matteo.ghetta at gmail.com>
> To: Roberta Fagandini <robifagandini at gmail.com>
> Cc: qgis-developer at lists.osgeo.org
> Subject: Re: [QGIS-Developer] translate plugin gui and log messages
> Message-ID: <1049ed47-1e2c-69aa-bda2-ef5fbe5fcd96 at gmail.com>
> Content-Type: text/plain; charset=utf-8
> 
>> Hi Matteo,
>> thank you for the help, your solution works fine in linux. Do you know
>> if something similar exists for Windows?
> 
> make transup and make transcompile just call bash scripts..... not sure
> what the workaround could be in Windows. Doesn't Windows have a kind of
> linux bash integrated?
> 
> Matteo
> 
> 
> ------------------------------
> 
> Message: 5
> Date: Thu, 20 Jun 2019 09:42:41 +0200
> From: Ismail Sunni <imajimatika at gmail.com>
> To: matteo <matteo.ghetta at gmail.com>
> Cc: Roberta Fagandini <robifagandini at gmail.com>,  QGIS Developer List
>    <qgis-developer at lists.osgeo.org>
> Subject: Re: [QGIS-Developer] translate plugin gui and log messages
> Message-ID:
>    <CAEh5jtHOgPfb9L5Jkxh5KrsAhbwBbg90TTyQY-mfF8LdkS5+XA at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Hello,
> 
> Perhaps it's overkill, but we can use Docker to run the script for managing
> the translation (update, compile, and see how many untranslated strings).
> You can find an example
> https://github.com/inasafe/inasafe/blob/develop/Makefile#L346
> 
> I find it easier even if I use Linux since I don't need to install the
> required package to run the scripts one by one.
> 
> Unfortunately, installing Docker on Windows is not easy AFAIK, unless it's
> Windows 10 Pro.
> 
> Best regards
> 
> On Thu, Jun 20, 2019 at 9:11 AM matteo <matteo.ghetta at gmail.com> wrote:
> 
>>> Hi Matteo,
>>> thank you for the help, your solution works fine in linux. Do you know
>>> if something similar exists for Windows?
>> 
>> make transup and make transcompile just call bash scripts..... not sure
>> what the workaround could be in Windows. Doesn't Windows have a kind of
>> linux bash integrated?
>> 
>> Matteo
>> _______________________________________________
>> QGIS-Developer mailing list
>> QGIS-Developer at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> 
> 
> 
> -- 
> Ismail Sunni
> ismailsunni.wordpress.com
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190620/1ffce7ee/attachment.html>
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> 
> ------------------------------
> 
> End of QGIS-Developer Digest, Vol 164, Issue 55
> ***********************************************


More information about the QGIS-Developer mailing list