Re: [Qgis-user] [QGIS-Developer] Python Implementation of QgsNetworkContentFetcher

2019-11-26 Thread Nyall Dawson
On Wed, 27 Nov 2019 at 15:26, Denis Rouzaud  wrote:
>
> Thanks Nyall for the precisions.
> I wasn't aware of QgsBlockingNetworkRequest.
>
> So basically, if I don't require authcf, then starting from 3.6 there is no 
> reason to use my python nam, I should use both QgsNetworkContentFetcher and 
> QgsBlockingNetworkRequest. And from 3.10 if require authcfg in 
> QgsNetworkContentFetcher.
> Is this correct?

QgsBlockingNetworkRequest has always supported auth, so you should use
that in 3.6 and above in all situations WHEN you need a blocking
request.

QgsNetworkContentFetcher is async, so definitely prefer to use that
whenever you don't need a blocking request.

I'd say the matrix is something like

QGIS 3.4:

 Blocking:
   With auth: python nam (but be aware that it CAN and DOES crash
crashes if used on the main thread)
   Without auth: python nam (but be aware that it CAN and DOES crash
crashes if used on the main thread)

 Non-blocking:
   With auth:  nothing available off-the-shelf -- roll your own
using raw the qt and QGIS auth api?
   Without auth: QgsNetworkContentFetcher

QGIS 3.6 - 3.8:

 Blocking:
   With auth: QgsBlockingNetworkRequest
   Without auth: QgsBlockingNetworkRequest

 Non-blocking:
   With auth:  nothing available off-the-shelf -- roll your own
using raw the qt and QGIS auth api?
   Without auth: QgsNetworkContentFetcher

QGIS 3.10:

 Blocking:
   With auth: QgsBlockingNetworkRequest
   Without auth: QgsBlockingNetworkRequest

 Non-blocking:
   With auth:  QgsNetworkContentFetcher
   Without auth: QgsNetworkContentFetcher


Nyall



>
> Cheers,
> Denis
>
> Le mer. 27 nov. 2019 à 00:27, Nyall Dawson  a écrit :
>>
>> On Wed, 27 Nov 2019 at 00:44, Denis Rouzaud  wrote:
>> >
>> > Hi,
>> >
>> > Jumping late but we use the work from NAM Alessandro did in a couple of 
>> > locator filters.
>> > https://github.com/opengisch/qgis-swiss-locator/blob/master/swiss_locator/core/network_access_manager.py
>> >
>> > I believe I have done very very few adaptations/fixes to the original work 
>> > and it works like a charm.
>>
>> Not quite. It works in some circumstances, but it uses an event loop.
>> So if you run it on the main thread, you're potentially doing an
>> effective call to QApplication.processEvents, which can lead to all
>> sorts of crashes. That said, it's generally a safe approach to use for
>> QGIS <= 3.4... just don't use it in any code which relates to
>> rendering!
>>
>> >
>> > I had in mind to bring this as is within QGIS core for some time. The main 
>> > point being for us the blocking request rather than authcfg.
>>
>> That's EXACTLY what QgsBlockingNetworkRequest is -- please don't
>> re-re-implement this!
>>
>> Nyall
>>
>>
>> >
>> > Denis
>> >
>> > Le mar. 26 nov. 2019 à 15:36, C Hamilton  a écrit :
>> >>
>> >> Thanks everyone. This gives me some good ideas. These are the possible 
>> >> solutions:
>> >>
>> >> 1. Write a python implementation of QgsNetworkContentFetcher or 
>> >> QgsBlockingNetworkRequest. With this I could look at the QGIS version and 
>> >> if it is 3.10 or greater import the core method; otherwise, import the 
>> >> python implementation.
>> >> 2. Use the old Boundless implementation if it still works in QGIS 3.
>> >> 3. Use QgsFileDownloader and save it as a temporary file before 
>> >> processing.
>> >>
>> >> Calvin
>> >>
>> >> On Tue, Nov 26, 2019 at 2:29 AM Alessandro Pasotti  
>> >> wrote:
>> >>>
>> >>>
>> >>>
>> >>> On Tue, Nov 26, 2019 at 8:22 AM Richard Duivenvoorde 
>> >>>  wrote:
>> 
>>  On 26/11/2019 00.06, Nyall Dawson wrote:
>> 
>>  > There's not. But there's the ex-boundless "networkaccessmanager"
>>  > implementation that supports authcfg, which you can find at
>>  > https://github.com/north-road/qgis-redistricting-plugin/blob/master/redistrict/linz/networkaccessmanager.py
>>  > (and other projects -- as far as I'm aware there's no real upstream
>>  > for this... Alessandro?).
>> 
>>  I used this Boundless thingie for several plugins now (original source
>>  is now pointing/redirecting to planetlabs [0]).
>> >>>
>> >>>
>> >>> Yes, that's the "upstream" but I don't know if that one is maintained 
>> >>> anymore.
>> >>>
>> >>> Btw, there is also a specialized class for sync/async downloads that 
>> >>> supports authcfg: 
>> >>> https://qgis.org/api/classQgsFileDownloader.html#details
>> >>>
>> >>>
>> 
>> 
>>  I think we already discussed several times that it would be good to
>>  incorporate this into a commons lib for QGIS. But if I'm correct the
>>  actual interface was not exactly what some wanted, and if I recall
>>  correct Nyall tried to pull this into c++ but hit some multithreading
>>  issues.
>> 
>>  But as Nyall says: I think this is a great lib to use in a plugin (also
>>  because it used the QgisNetwork-stuff, so you can receive the signals
>>  from it or log the precise urls, like we do in the QGISnetworklogger
>>  plugin [1]
>> >

Re: [Qgis-user] Qgis 3.10 with gdal 2.4

2019-11-26 Thread Nyall Dawson
On Wed, 27 Nov 2019 at 04:40,  wrote:
>
> Hi everyone, I installed qgis 3.10 just because I wanted to try the Geopdf 
> export thing but I am stuck with a qgis 3.10 and gdal 2.34 and since I am new 
> in town I dont seem to find an easy way to update it to 3.X. I tried Osgeo4w 
> and downloaded the 3.0X version but I dont know what to do next. Can you help 
> guys? THx in advance.

Just wait till 3.10.1 is released next week -- this will fix your problem.

Nyall

> Amaury
> Institute of Soil of Cuba
>
> 
>
> Hola
>
> ___
> Qgis-user mailing list
> Qgis-user@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-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] [QGIS-Developer] Python Implementation of QgsNetworkContentFetcher

2019-11-26 Thread Nyall Dawson
On Wed, 27 Nov 2019 at 00:44, Denis Rouzaud  wrote:
>
> Hi,
>
> Jumping late but we use the work from NAM Alessandro did in a couple of 
> locator filters.
> https://github.com/opengisch/qgis-swiss-locator/blob/master/swiss_locator/core/network_access_manager.py
>
> I believe I have done very very few adaptations/fixes to the original work 
> and it works like a charm.

Not quite. It works in some circumstances, but it uses an event loop.
So if you run it on the main thread, you're potentially doing an
effective call to QApplication.processEvents, which can lead to all
sorts of crashes. That said, it's generally a safe approach to use for
QGIS <= 3.4... just don't use it in any code which relates to
rendering!

>
> I had in mind to bring this as is within QGIS core for some time. The main 
> point being for us the blocking request rather than authcfg.

That's EXACTLY what QgsBlockingNetworkRequest is -- please don't
re-re-implement this!

Nyall


>
> Denis
>
> Le mar. 26 nov. 2019 à 15:36, C Hamilton  a écrit :
>>
>> Thanks everyone. This gives me some good ideas. These are the possible 
>> solutions:
>>
>> 1. Write a python implementation of QgsNetworkContentFetcher or 
>> QgsBlockingNetworkRequest. With this I could look at the QGIS version and if 
>> it is 3.10 or greater import the core method; otherwise, import the python 
>> implementation.
>> 2. Use the old Boundless implementation if it still works in QGIS 3.
>> 3. Use QgsFileDownloader and save it as a temporary file before processing.
>>
>> Calvin
>>
>> On Tue, Nov 26, 2019 at 2:29 AM Alessandro Pasotti  
>> wrote:
>>>
>>>
>>>
>>> On Tue, Nov 26, 2019 at 8:22 AM Richard Duivenvoorde  
>>> wrote:

 On 26/11/2019 00.06, Nyall Dawson wrote:

 > There's not. But there's the ex-boundless "networkaccessmanager"
 > implementation that supports authcfg, which you can find at
 > https://github.com/north-road/qgis-redistricting-plugin/blob/master/redistrict/linz/networkaccessmanager.py
 > (and other projects -- as far as I'm aware there's no real upstream
 > for this... Alessandro?).

 I used this Boundless thingie for several plugins now (original source
 is now pointing/redirecting to planetlabs [0]).
>>>
>>>
>>> Yes, that's the "upstream" but I don't know if that one is maintained 
>>> anymore.
>>>
>>> Btw, there is also a specialized class for sync/async downloads that 
>>> supports authcfg: https://qgis.org/api/classQgsFileDownloader.html#details
>>>
>>>


 I think we already discussed several times that it would be good to
 incorporate this into a commons lib for QGIS. But if I'm correct the
 actual interface was not exactly what some wanted, and if I recall
 correct Nyall tried to pull this into c++ but hit some multithreading
 issues.

 But as Nyall says: I think this is a great lib to use in a plugin (also
 because it used the QgisNetwork-stuff, so you can receive the signals
 from it or log the precise urls, like we do in the QGISnetworklogger
 plugin [1]

 Regards,

 Richard Duivenvoorde

 [0]
 https://github.com/planetfederal/lib-qgis-commons/blob/master/qgiscommons2/network/networkaccessmanager.py
 [1] https://github.com/rduivenvoorde/qgisnetworklogger
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
 Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>>>
>>>
>>> --
>>> Alessandro Pasotti
>>> w3:   www.itopen.it
>>
>> ___
>> QGIS-Developer mailing list
>> qgis-develo...@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-develo...@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] [QGIS-Developer] Python Implementation of QgsNetworkContentFetcher

2019-11-26 Thread Nyall Dawson
On Wed, 27 Nov 2019 at 00:35, C Hamilton  wrote:
>
> Thanks everyone. This gives me some good ideas. These are the possible 
> solutions:
>
> 1. Write a python implementation of QgsNetworkContentFetcher or 
> QgsBlockingNetworkRequest. With this I could look at the QGIS version and if 
> it is 3.10 or greater import the core method; otherwise, import the python 
> implementation.

Trust me -- don't do this. When I wrote the c++ version it nearly
killed me, it's insanely complex with many many components at play.

> 2. Use the old Boundless implementation if it still works in QGIS 3.

I'd do this, but only for QGIS < 3.6. For 3.6 and above use
QgsBlockingNetworkRequest, and when 3.4 is EOLed in a couple of months
you can rely on QgsBlockingNetworkRequest everywhere.

> 3. Use QgsFileDownloader and save it as a temporary file before processing.

Also a good idea, but be aware that it's not blocking, which can mean
it can't be used in certain places. Warning: DO NOT USE
QApplication.processEvents() or a QEventLoop to try to emulate
blocking behavior with this class!

Nyall

>
> Calvin
>
> On Tue, Nov 26, 2019 at 2:29 AM Alessandro Pasotti  wrote:
>>
>>
>>
>> On Tue, Nov 26, 2019 at 8:22 AM Richard Duivenvoorde  
>> wrote:
>>>
>>> On 26/11/2019 00.06, Nyall Dawson wrote:
>>>
>>> > There's not. But there's the ex-boundless "networkaccessmanager"
>>> > implementation that supports authcfg, which you can find at
>>> > https://github.com/north-road/qgis-redistricting-plugin/blob/master/redistrict/linz/networkaccessmanager.py
>>> > (and other projects -- as far as I'm aware there's no real upstream
>>> > for this... Alessandro?).
>>>
>>> I used this Boundless thingie for several plugins now (original source
>>> is now pointing/redirecting to planetlabs [0]).
>>
>>
>> Yes, that's the "upstream" but I don't know if that one is maintained 
>> anymore.
>>
>> Btw, there is also a specialized class for sync/async downloads that 
>> supports authcfg: https://qgis.org/api/classQgsFileDownloader.html#details
>>
>>
>>>
>>>
>>> I think we already discussed several times that it would be good to
>>> incorporate this into a commons lib for QGIS. But if I'm correct the
>>> actual interface was not exactly what some wanted, and if I recall
>>> correct Nyall tried to pull this into c++ but hit some multithreading
>>> issues.
>>>
>>> But as Nyall says: I think this is a great lib to use in a plugin (also
>>> because it used the QgisNetwork-stuff, so you can receive the signals
>>> from it or log the precise urls, like we do in the QGISnetworklogger
>>> plugin [1]
>>>
>>> Regards,
>>>
>>> Richard Duivenvoorde
>>>
>>> [0]
>>> https://github.com/planetfederal/lib-qgis-commons/blob/master/qgiscommons2/network/networkaccessmanager.py
>>> [1] https://github.com/rduivenvoorde/qgisnetworklogger
>>> ___
>>> Qgis-user mailing list
>>> Qgis-user@lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>>
>>
>> --
>> Alessandro Pasotti
>> w3:   www.itopen.it
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Qgis 3.10 with gdal 2.4

2019-11-26 Thread amaury . beltran
Hi everyone, I installed qgis 3.10 just because I wanted to try the Geopdf 
export thing but I am stuck with a qgis 3.10 and gdal 2.34 and since I am new 
in town I dont seem to find an easy way to update it to 3.X. I tried Osgeo4w 
and downloaded the 3.0X version but I dont know what to do next. Can you help 
guys? THx in advance.
Amaury
Institute of Soil of Cuba

___
Instituo de Suelos


Instituto de Suelos


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Request help 'Aggregate polygons' QGIS 3

2019-11-26 Thread FT
Dear Andy,Thank you very much for your help, I will try the procedure immediately.You definitely gave me a hand.All the best,FlavioIl 25 nov 2019 17:32, "Harfoot A.J."  ha scritto:
Hi Flavio,
I'm not aware of a single tool that is the exact equivalent of the ArcGIS one.
The Concave hull (k-nearest neighbor) tool (part of the QGIS Processing toolbox, not a plugin) will generate the the bounding polygon, but does not allow input data to be grouped by a separation distance, but will accept a 'group' field which creates a polygon
 for each set of features having the same value for the field. This allows the separation distance to be incorporated:
Buffer the polygons by the maximum separation distance required, dissolving the resultsSpatially join the original polygons to the buffer output so that each original polygon receives the unique id of the buffer polygon that it falls withinCreate concave hulls using the buffer id field as the group field.
This sequence could be easily added to a model, simplifying and reducing the chances of errors when executing.

Andy


On 21/11/2019 17:46, 
flavio.taccaliti@libero.it wrote:


Hi everyone, 


This is my first message in a users' group, I hope not to break any "netiquette" rule.



I have come across this little problem, and I would like to ask you if there is a simple solution to it:

I am looking for a QGIS 3 tool similar to ArcGIS "Aggregate polygons", 
http://desktop.arcgis.com/en/arcmap/10.3/tools/cartography-toolbox/aggregate-polygons.htm ( (it takes a multipolygon layer and aggregate the polygons that are closer than a given distance).



I have come across some results on the web, like using PostGIS (https://gis.stackexchange.com/questions/113084/qgis-equivalent-to-arcgis-aggregate-polygons)
 or 
Unfortunately, I have no experience with Postgres or SQL yet, and given the limited amount of time I have for this task it would be unfeasible for me to learn them now.



"Concave hull" tool (https://plugins.qgis.org/plugins/concavehull/) does not what I am looking for, as I would like to set the maximum distance between polygons in
 the clusters, not the maximum number of polygons. 
Also "aggregate" function seems to me not to aggregate polygons by their proximity (https://docs.qgis.org/testing/en/docs/user_manual/processing_algs/qgis/vectorgeometry.html#aggregate).



For the moment I have used the ArcGIS tool on another computer, but the idea is to write down some simple instructions for other users who will have even less expertise than me. Maybe the "button" already exists in QGIS 3, in that case excuse me for the
 repetition. 


Thank you in advance for any suggestion or indication. 


Best regards, 


FT 


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

-- 
Andy Harfoot

GeoData Institute
University of Southampton
Southampton
SO17 1BJ

Tel:  +44 (0)23 8059 2719

www.geodata.soton.ac.uk

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] [QGIS-Developer] Python Implementation of QgsNetworkContentFetcher

2019-11-26 Thread C Hamilton
Thanks everyone. This gives me some good ideas. These are the possible
solutions:

1. Write a python implementation of QgsNetworkContentFetcher or
QgsBlockingNetworkRequest. With this I could look at the QGIS version and
if it is 3.10 or greater import the core method; otherwise, import the
python implementation.
2. Use the old Boundless implementation if it still works in QGIS 3.
3. Use QgsFileDownloader and save it as a temporary file before processing.

Calvin

On Tue, Nov 26, 2019 at 2:29 AM Alessandro Pasotti 
wrote:

>
>
> On Tue, Nov 26, 2019 at 8:22 AM Richard Duivenvoorde 
> wrote:
>
>> On 26/11/2019 00.06, Nyall Dawson wrote:
>>
>> > There's not. But there's the ex-boundless "networkaccessmanager"
>> > implementation that supports authcfg, which you can find at
>> >
>> https://github.com/north-road/qgis-redistricting-plugin/blob/master/redistrict/linz/networkaccessmanager.py
>> > (and other projects -- as far as I'm aware there's no real upstream
>> > for this... Alessandro?).
>>
>> I used this Boundless thingie for several plugins now (original source
>> is now pointing/redirecting to planetlabs [0]).
>>
>
> Yes, that's the "upstream" but I don't know if that one is maintained
> anymore.
>
> Btw, there is also a specialized class for sync/async downloads that
> supports authcfg: https://qgis.org/api/classQgsFileDownloader.html#details
>
>
>
>>
>> I think we already discussed several times that it would be good to
>> incorporate this into a commons lib for QGIS. But if I'm correct the
>> actual interface was not exactly what some wanted, and if I recall
>> correct Nyall tried to pull this into c++ but hit some multithreading
>> issues.
>>
>> But as Nyall says: I think this is a great lib to use in a plugin (also
>> because it used the QgisNetwork-stuff, so you can receive the signals
>> from it or log the precise urls, like we do in the QGISnetworklogger
>> plugin [1]
>>
>> Regards,
>>
>> Richard Duivenvoorde
>>
>> [0]
>>
>> https://github.com/planetfederal/lib-qgis-commons/blob/master/qgiscommons2/network/networkaccessmanager.py
>> [1] https://github.com/rduivenvoorde/qgisnetworklogger
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
>
> --
> Alessandro Pasotti
> w3:   www.itopen.it
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Building Qgis Server only

2019-11-26 Thread Jessica Hutchinson
Anyone know how to unsubscribe ?


-Original Message-
From: Qgis-user  On Behalf Of Henrik Uggla
Sent: 26 November 2019 10:29
To: Andreas Neumann 
Cc: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] Building Qgis Server only

Hi!

I managed to create a Docker container with Qgis Server on Alpine:
https://hub.docker.com/repository/docker/huggla/qgisserver-alpine

Feedback is welcome.

Regards
HU


Från: Qgis-user  för Henrik Uggla 

Skickat: den 7 januari 2019 12:47:21
Till: Andreas Neumann
Kopia: qgis-user@lists.osgeo.org
Ämne: Re: [Qgis-user] Building Qgis Server only

Thank you very much!


Från: Andreas Neumann 
Skickat: den 7 januari 2019 12:44:18
Till: Henrik Uggla
Kopia: qgis-user@lists.osgeo.org
Ämne: Re: SV: [Qgis-user] Building Qgis Server only

Hi Henrik,

Here are my cmake parameters (for version 3.4.x):

cmake /build/QGIS -GNinja -DWITH_STAGED_PLUGINS=OFF -DCMAKE_INSTALL_PREFIX=/usr 
-DWITH_GRASS=OFF -DWITH_GRASS7=OFF -DSUPPRESS_QT_WARNINGS=ON -DENABLE_TESTS=OFF 
-DWITH_QSPATIALITE=OFF -DWITH_QWTPOLAR=OFF -DWITH_APIDOC=OFF -DWITH_ASTYLE=OFF 
-DWITH_DESKTOP=OFF -DWITH_SERVER=ON -DWITH_SERVER_PLUGINS=ON -DWITH_BINDINGS=ON 
-DWITH_QTMOBILITY=OFF -DWITH_QUICK=OFF -DWITH_3D=OFF -DWITH_GUI=OFF 
-DDISABLE_DEPRECATED=ON -DSERVER_SKIP_ECW=ON -DWITH_GEOREFERENCER=OFF

Greetings,

Andreas

On 2019-01-07 12:34, Henrik Uggla wrote:

I'm not able to find how to build Qgis Server without desktop anywhere in the 
documentation (https://github.com/qgis/QGIS/blob/master/INSTALL). How is it 
done?

Från: Andreas Neumann mailto:a.neum...@carto.net>>
Skickat: den 7 januari 2019 11:26:30
Till: Henrik Uggla
Kopia: qgis-user@lists.osgeo.org
Ämne: Re: [Qgis-user] Building Qgis Server only

Hi Henrik,

You can now build QGIS Server without desktop, but not without X. You still 
need X for PDF generation (GetPrint command).

If you are interested, I have docker configurations for QGIS Server 2.x. and 
3.x based on Ubuntu and NginX server. Still struggling a bit with NGinX URL 
forwarding, but hoping to solve it tomorrow with the help of Marco B.

I could share the configuration, if it helps for you.

Greetings,

Andreas

On 2019-01-07 11:01, Henrik Uggla wrote:

I would like to create a Qgis Server Docker container based on Alpine. Is it 
possible to build Qgis Server, without the desktop applications, on a server 
that doesn't run X?
___
Qgis-user mailing list
Qgis-user@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-user@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-user@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-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Building Qgis Server only

2019-11-26 Thread Henrik Uggla
Hi!

I managed to create a Docker container with Qgis Server on Alpine:
https://hub.docker.com/repository/docker/huggla/qgisserver-alpine

Feedback is welcome.

Regards
HU


Från: Qgis-user  för Henrik Uggla 

Skickat: den 7 januari 2019 12:47:21
Till: Andreas Neumann
Kopia: qgis-user@lists.osgeo.org
Ämne: Re: [Qgis-user] Building Qgis Server only

Thank you very much!


Från: Andreas Neumann 
Skickat: den 7 januari 2019 12:44:18
Till: Henrik Uggla
Kopia: qgis-user@lists.osgeo.org
Ämne: Re: SV: [Qgis-user] Building Qgis Server only

Hi Henrik,

Here are my cmake parameters (for version 3.4.x):

cmake /build/QGIS -GNinja -DWITH_STAGED_PLUGINS=OFF -DCMAKE_INSTALL_PREFIX=/usr 
-DWITH_GRASS=OFF -DWITH_GRASS7=OFF -DSUPPRESS_QT_WARNINGS=ON -DENABLE_TESTS=OFF 
-DWITH_QSPATIALITE=OFF -DWITH_QWTPOLAR=OFF -DWITH_APIDOC=OFF -DWITH_ASTYLE=OFF 
-DWITH_DESKTOP=OFF -DWITH_SERVER=ON -DWITH_SERVER_PLUGINS=ON -DWITH_BINDINGS=ON 
-DWITH_QTMOBILITY=OFF -DWITH_QUICK=OFF -DWITH_3D=OFF -DWITH_GUI=OFF 
-DDISABLE_DEPRECATED=ON -DSERVER_SKIP_ECW=ON -DWITH_GEOREFERENCER=OFF

Greetings,

Andreas

On 2019-01-07 12:34, Henrik Uggla wrote:

I'm not able to find how to build Qgis Server without desktop anywhere in the 
documentation (https://github.com/qgis/QGIS/blob/master/INSTALL). How is it 
done?

Från: Andreas Neumann mailto:a.neum...@carto.net>>
Skickat: den 7 januari 2019 11:26:30
Till: Henrik Uggla
Kopia: qgis-user@lists.osgeo.org
Ämne: Re: [Qgis-user] Building Qgis Server only

Hi Henrik,

You can now build QGIS Server without desktop, but not without X. You still 
need X for PDF generation (GetPrint command).

If you are interested, I have docker configurations for QGIS Server 2.x. and 
3.x based on Ubuntu and NginX server. Still struggling a bit with NGinX URL 
forwarding, but hoping to solve it tomorrow with the help of Marco B.

I could share the configuration, if it helps for you.

Greetings,

Andreas

On 2019-01-07 11:01, Henrik Uggla wrote:

I would like to create a Qgis Server Docker container based on Alpine. Is it 
possible to build Qgis Server, without the desktop applications, on a server 
that doesn't run X?
___
Qgis-user mailing list
Qgis-user@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-user@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-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user