Re: [QGIS-Developer] Alternative for python 'request' library in QGIS

2018-12-11 Thread Nyall Dawson
On Wed, 12 Dec 2018 at 17:21, Richard Duivenvoorde  wrote:
>
> On 12/12/18 5:55 AM, shiva reddy wrote:
> > Hi,
> > I have used 'requests'  library to access web resources in my plugin.
> > I am wondering if I should  migrate to  any QGIS core library instead ?
> > If yes would appreciate getting any  cheat sheet.
>
> Hi Shiva,
>
> there is no python core lib yet, but I often pull the
> Boundles/Alessandro/Luigi's one from here:
>
> https://github.com/boundlessgeo/lib-qgis-commons/blob/master/qgiscommons2/network/networkaccessmanager.py
>
> For now I copy it in my plugins, but I'm very much in favour of adding
> some python core/common libs to QGIS so everybody uses the same/right
> way of doing http(s) stuff (meaning: using the proxy from settings etc)

That's what this (WIP) does:
https://github.com/qgis/QGIS/pull/8440

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] Alternative for python 'request' library in QGIS

2018-12-11 Thread Richard Duivenvoorde
On 12/12/18 5:55 AM, shiva reddy wrote:
> Hi,
> I have used 'requests'  library to access web resources in my plugin.
> I am wondering if I should  migrate to  any QGIS core library instead ?
> If yes would appreciate getting any  cheat sheet.

Hi Shiva,

there is no python core lib yet, but I often pull the
Boundles/Alessandro/Luigi's one from here:

https://github.com/boundlessgeo/lib-qgis-commons/blob/master/qgiscommons2/network/networkaccessmanager.py

For now I copy it in my plugins, but I'm very much in favour of adding
some python core/common libs to QGIS so everybody uses the same/right
way of doing http(s) stuff (meaning: using the proxy from settings etc)

Regards,

Richard Duivenvoorde
___
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 [1581] LINZ Data Importer approval notification.

2018-12-11 Thread noreply

Plugin LINZ Data Importer approval by pcav.
The plugin version "[1581] LINZ Data Importer 1.0.4" is now approved
Link: http://plugins.qgis.org/plugins/linz-data-importer/
___
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] Alternative for python 'request' library in QGIS

2018-12-11 Thread shiva reddy
Hi,
I have used 'requests'  library to access web resources in my plugin.
I am wondering if I should  migrate to  any QGIS core library instead ?
If yes would appreciate getting any  cheat sheet.


Thanks & Regards
Shiva Reddy K.
Scientist/Engineer 'SD'
Indian Institute of Remote Sensing,
Indian Space Research Organisation
Department of Space
4-Kalidas Road
Dehradun
Landline: +91 135-2524126
Mobile :+917017035414
___
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 web client alternatives

2018-12-11 Thread Andreas Neumann

Hi,

Yes - GISQuick - that's the one I meant.

Thanks for helping!

And thanks for all the other mentions from other people.

Andreas

Am 11.12.18 um 08:14 schrieb Peter Petrik:

Hi,

Marcel from Lutra is also involved in http://gisquick.org

Cheers,
Peter

On Tue, Dec 11, 2018 at 7:51 AM Andreas Neumann > wrote:


Hi,

For a presentation I want to list all existing web clients
specializing in collaboration with QGIS-Server.

I know that there is:

  * QWC2: https://github.com/qgis/qwc2-demo-app
  * Lizmap: https://www.lizmap.com/en/

but there are at least 2-3 more web clients that specialize in
QGIS server collaboration.

There is one from eastern Europe built with Angular - I forgot the
name.

And isn't there one from Italy as well?

Can you help me fill the gaps?

Thanks,
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

___
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] MSSQL driver not found & Can't open lib 'SQL Server' - QGIS 2.18 LTR on Debian

2018-12-11 Thread kimaidou
The primary keys were integer only. So the issues was not caused by
nvarchar as Pkeys. The issue was with nvarchars in general. This behaviour
can be tested with ogr2ogr by converting a table into a geojson or CSV ->
you will see hieroglyphs for exported nvarchar fields.

Le lun. 10 déc. 2018 à 01:03, Nyall Dawson  a
écrit :

> On Sun, 9 Dec 2018 at 03:11, kimaidou  wrote:
> >
> > Hi Nyall,
> >
> > Thanks for your answer. I had already checked that the layers had
> integer primary keys. I have discovered that the "wrong" layers had
> "nvarchar" fields, instead of "varchar". We changed the types of the view
> fields from nvarchar to varchar, and it solved the issue.
>
> Can you elaborate here? Was the issue "nvarchars" in general? Or
> nvarchars used as primary keys?
>
> Nyall
>
> >
> > Cheers,
> > Michaël
> >
> > Le mer. 5 déc. 2018 à 23:55, Nyall Dawson  a
> écrit :
> >>
> >> On Thu, 6 Dec 2018 at 05:37, kimaidou  wrote:
> >> >
> >> > Thanks for your answers. I managed to connect with QGIS MSSQL native
> provider under my Debian box with the following steps
> >> > https://gist.github.com/mdouchin/64f7733a3c4ecfe441f65d5529351a30
> >> >
> >> > I have a weird behaviour. For some layers, QGIS Desktop cannot
> display the features attributes : the attribute table is empty, and the
> identify tool returns no feature. BUT I can see the points in my map, so
> QGIS can query the geography field from the database. For some other
> layers, wich seems identical (same structure for example), I can see the
> attributes (full attribute table and identify OK)
> >> >
> >>
> >> Sounds like an issue with fetching by primary key/feature ID. Is there
> >> any difference between the primary key setup on these tables vs the
> >> ones which work?
> >>
> >> Nyall
> >>
> >>
> >>
> >>
> >> > Have anyone seen this behaviour before ?
> >> >
> >> > Cheers
> >> > Michaël
> >> >
> >> > Le lun. 19 nov. 2018 à 00:12, Nyall Dawson 
> a écrit :
> >> >>
> >> >> On Sat, 17 Nov 2018 at 02:01, kimaidou  wrote:
> >> >> >
> >> >> > Hi all,
> >> >> >
> >> >> > I am trying to connect to a MSSQL server from a QGIS installed in
> a Linux Debian Jessie computer.
> >> >> > I have checked that the credentials are ok with the mssql-client
> from Microsoft:
> >> >> >
> >> >> > mssql-cli -S myserver -U carto -P *** -d MyBase
> >> >> >
> >> >> > I installed the following packages from debian and Microsoft repos
> :
> >> >> >
> >> >> > curl https://packages.microsoft.com/keys/microsoft.asc | apt-key
> add -
> >> >> > curl https://packages.microsoft.com/config/debian/8/prod.list  >
> /etc/apt/sources.list.d/mssql-release.list
> >> >> > apt-get update
> >> >> > ACCEPT_EULA=Y apt-get install -y mssql-cli unixodbc-dev
> mssql-tools msodbcsql17 msodbcsql odbcinst libqt4-sql-tds libqt4-sql-odbc
> >> >> >
> >> >> > When I open QGIS and try to set up a connection, I use not DSN,
> and I put my server "myserver" as the host. I add the user and password.
> >> >> > Then try to list the databases, but I get this error
> >> >> >
> >> >> > [unixODBC][Driver Manager]Can't open lib 'SQL Server' : file not
> found
> >> >>
> >> >> This is all super-fragile. (Just another symptom of SQL Server's
> >> >> inferiority IMO).
> >> >>
> >> >> Have a look at
> https://github.com/qgis/QGIS/blob/master/.ci/travis/linux/docker-build-test.sh#L128
> >> >> for how the Travis testing environment sets up a connection, there
> may
> >> >> be some clues there.
> >> >>
> >> >> Nyall
> >> >>
> >> >> >
> >> >> > I tested with
> >> >> >
> >> >> > root@carto:~# odbcinst -j
> >> >> > unixODBC 2.3.1
> >> >> > DRIVERS: /etc/odbcinst.ini
> >> >> > SYSTEM DATA SOURCES: /etc/odbc.ini
> >> >> > FILE DATA SOURCES..: /etc/ODBCDataSources
> >> >> > USER DATA SOURCES..: /root/.odbc.ini
> >> >> > SQLULEN Size...: 8
> >> >> > SQLLEN Size: 8
> >> >> > SQLSETPOSIROW Size.: 8
> >> >> >
> >> >> > So I checked /etc/odbcinst.ini which seems ok
> >> >> >
> >> >> > root@carto:~# cat /etc/odbcinst.ini
> >> >> > [ODBC Driver 17 for SQL Server]
> >> >> > Description=Microsoft ODBC Driver 17 for SQL Server
> >> >> > Driver=/opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.2.so.0.1
> >> >> > UsageCount=1
> >> >> >
> >> >> > [ODBC Driver 13 for SQL Server]
> >> >> > Description=Microsoft ODBC Driver 13 for SQL Server
> >> >> > Driver=/opt/microsoft/msodbcsql/lib64/libmsodbcsql-13.1.so.9.2
> >> >> > UsageCount=1
> >> >> >
> >> >> > Should I install more packages ?  Any help appreciated.
> >> >> >
> >> >> > Regards,
> >> >> > Michaël
> >> >> >
> >> >> > ___
> >> >> > 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: 

Re: [QGIS-Developer] QGIS web client alternatives

2018-12-11 Thread Tim Sutton
Hi

Also the QGIS GeoNode backend…

https://github.com/kartoza/kartoza-rancher-catalogue

Regards

Tim

> On 11 Dec 2018, at 08:51, Andreas Neumann  wrote:
> 
> Hi,
> 
> For a presentation I want to list all existing web clients specializing in 
> collaboration with QGIS-Server.
> 
> I know that there is:
> 
> QWC2: https://github.com/qgis/qwc2-demo-app
> Lizmap: https://www.lizmap.com/en/
> but there are at least 2-3 more web clients that specialize in QGIS server 
> collaboration.
> 
> There is one from eastern Europe built with Angular - I forgot the name.
> 
> And isn't there one from Italy as well?
> 
> Can you help me fill the gaps?
> 
> Thanks,
> 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

 




---

Tim Sutton
t...@qgis.org






smime.p7s
Description: S/MIME cryptographic signature
___
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 [92] Midvatten approval notification.

2018-12-11 Thread noreply

Plugin Midvatten approval by pcav.
The plugin version "[92] Midvatten 1.5.3" is now approved
Link: http://plugins.qgis.org/plugins/midvatten/
___
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 [1357] Least-Cost-Paths Network approval notification.

2018-12-11 Thread noreply

Plugin Least-Cost-Paths Network approval by pcav.
The plugin version "[1357] Least-Cost-Paths Network 0.1.4 Experimental" is now 
approved
Link: http://plugins.qgis.org/plugins/LCPNetwork/
___
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 [638] Processing Workflows approval notification.

2018-12-11 Thread noreply

Plugin Processing Workflows approval by pcav.
The plugin version "[638] Processing Workflows 1.3.2" is now approved
Link: http://plugins.qgis.org/plugins/processing_workflow/
___
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 web client alternatives

2018-12-11 Thread Uros Preloznik
Hi,

Also alive is Extended QGIS Web Client as fork from discontinued QWC1 with
added mobile client and Administration part.
https://github.com/uprel/gisapp

best regards,
Uroš
http://level2.si/



V V tor., 11. dec. 2018 ob 07:51 je oseba Andreas Neumann <
a.neum...@carto.net> napisala:

> Hi,
>
> For a presentation I want to list all existing web clients specializing in
> collaboration with QGIS-Server.
>
> I know that there is:
>
>- QWC2: https://github.com/qgis/qwc2-demo-app
>- Lizmap: https://www.lizmap.com/en/
>
> but there are at least 2-3 more web clients that specialize in QGIS server
> collaboration.
>
> There is one from eastern Europe built with Angular - I forgot the name.
>
> And isn't there one from Italy as well?
>
> Can you help me fill the gaps?
>
> Thanks,
> 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
___
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 web client alternatives

2018-12-11 Thread Hugo Mercier


On 11/12/2018 07:51, Andreas Neumann wrote:
> Hi,
> 
> For a presentation I want to list all existing web clients specializing
> in collaboration with QGIS-Server.
> 
> I know that there is:
> 
>   * QWC2: https://github.com/qgis/qwc2-demo-app
>   * Lizmap: https://www.lizmap.com/en/
> 
> but there are at least 2-3 more web clients that specialize in QGIS
> server collaboration.
> 
> There is one from eastern Europe built with Angular - I forgot the name.
> 
> And isn't there one from Italy as well?

This one I think:
https://g3wsuite.gis3w.it/en/

___
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