[QGIS-it-user] Geometry generator espressione per richiamare tutte le geometrie di un layer esterno

2021-10-18 Thread Danilo Procaccini
Buonasera,
nel geometry generator, partendo dall'espressione

difference
($geometry,
geometry(get_feature('Prova','OBJECTID',)))

che agisce sulla sola feature con OBJECTID  del layer Prova

è possibile agire contemporaneamente su tutte le geometrie del layer Prova
(come se tutte le geometrie di quest'ultimo fossero dissolte)?

Ho tentato con aggregate, collect e altro, ma non riesco a definire una
sintassi corretta.

Grazie in anticipo
Danilo
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] QGIS and PostGIS raster (out-db)

2021-10-18 Thread Jorge Gustavo Rocha

Hi Tim,

No problem here with rasters out of db.

Postgresql needs to know where the raster is and must have access to it 
later, when you open it on QGIS.


Try moving the raster to Postgresql data folder. Run 'SHOW 
data_directory;' to know where Postgresql stores the data. Copy the 
raster to that folder and try again with the full absolute path.


Regards,

Jorge Gustavo

On 18/10/21 04:04, tim dunlevie wrote:

Hi all,

Was wondering if someone has a similar experience.
I'm testing storing raster data in my PostGIS db as an 'out-db' option.
It seems to work via the raster2pgsql command line.
The table is generated and I can see the table thru the QGIS 
browser/DB Manager.

However, if I drag/drop onto the map I get nothing.
I can, however, zoom to the extents of the imagebut I get no image 
appearing.

The image is a geotiff.
In-database option works fine.
I'm using QGIS v3.20.3-Odense with Postgresql 13.4 windows.
Has anyone had success managing their raster data like this and 
viewing in QGIS ?


My command to store out-db image is below:
|raster2pgsql -s 28350 -C -I -F “path\[image_name].tif" 
[schema1].[tablename] -R | psql -h localhost -d spatialDB -U postgres 
-p 5432|


thanks

___
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 server in professional use?

2021-10-18 Thread DelazJ
Hi Mats, all

Just to let you know that some of the unclear/confusing statements in the
docs you pointed out in an earlier message have been addressed. The updated
version is available at
https://github.com/qgis/QGIS-Documentation/blob/master/docs/server_manual/getting_started.rst
and will be pushed to the docs website later tonight (UTC).
Hope that helps you get through or at least makes things less confusing.
And please open issues in the repo if there still are.

Regards,
Harrissou


Le lun. 18 oct. 2021 à 11:00, Mats Elfström  a
écrit :

> Nyall, and QGIS fellow users and friends!
>
> No one is born with knowledge, but everyone can learn.
> Which is what I am trying hard here.
> I humbly asked for user collaboration, and took great care in explaining
> what I have done, and what I am aiming at.
> (see also the thread "*Configuring QGIS server on Ubuntu 20.4*")
> I have not given up yet, but I will drop this thread.
> As you imply, it has taken off in the wrong direction.
>
> Best regards, Mats.E
>
> Den mån 18 okt. 2021 kl 09:44 skrev Nyall Dawson :
>
>> On Mon, 18 Oct 2021 at 17:23, Mats Elfström 
>> wrote:
>> >
>> > I am not too happy if I have to start over on a new machine.
>>
>> With all due respect, what do you expect as the outcome of this
>> discussion?  You're complaining about software you obtained for free!
>> If you're looking for commercial SUPPORT for QGIS then you need to
>> contract a QGIS support provider (see
>> https://qgis.org/en/site/forusers/commercial_support.html). If you're
>> not experienced enough to setup the server yourself, I strongly
>> caution you NOT to expose it to the internet and instead pay someone
>> with the experience to do this for you, and ensure it's done
>> correctly.
>>
>> If it's a volunteer task and you don't want to pay for support, then
>> you NEED to moderate your language and avoid the inflammatory wording.
>> That's never an effective way to get a good response from the
>> volunteer side of the community.
>>
>> Nyall
>>
>>
>>
>>
>> >
>> > Regards, Mats.E
>> >
>> >
>> > Den mån 18 okt. 2021 kl 04:31 skrev Richard Greenwood <
>> richard.greenw...@gmail.com>:
>> >>
>> >> Posting again without screenshot, which apparently caused my previous
>> email to await moderator approval.
>> >>
>> >> Mats,
>> >>
>> >> I fired up a new Ubuntu 20.04 instance on AWS and did the following 5
>> steps which got me an XML capabilities document.
>> >>
>> >> # standard practice when starting a new instance
>> >> sudo apt update && sudo apt upgrade -y
>> >> # reboot if a new kernel was installed by apt upgrade
>> >> sudo reboot
>> >> # install qgis-server and apache web server
>> >> sudo apt install qgis-server apache2 libapache2-mod-fcgid
>> >> # enable apache fcgi and cgi
>> >> sudo a2enmod fcgi cgi
>> >> sudo systemctl restart apache2
>> >> # in a web browser you should now get an XML document from the
>> following request
>> >>
>> http://IP-ADDRESS-OR-HOST-NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities
>> >>
>> >> And 3 more steps got me a map
>> >>
>> >> # load some test data
>> >> wget https://github.com/qgis/QGIS-Training-Data/archive/v2.0.zip
>> >> sudo apt install unzip
>> >> unzip v2.0.zip
>> >> # in a web browser you should get a map from the following request
>> >>
>> http://IP-ADDRESS-OR-HOST-NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities=/home/ubuntu/QGIS-Training-Data-2.0/exercise_data/qgis-server-tutorial-data/world.qgs=countries=WMS=1.3.0=GetMap=EPSG:4326=400=200=-90,-180,90,180
>> >>
>> >> The tutorial tries to cover a lot of ground, maybe too much. And the 8
>> steps above certainly don't cover enough for a production server. But it's
>> quite unfair to say that "QGIS Server is not ready for production". As
>> Donovan pointed out, there are a lot of moving parts and you have to have
>> some proficiency with all of them if you are doing it on your own.
>> >>
>> >> The basic principle is that QGIS Server is serving WMS, WFS, WCS
>> requests via CGI (or Fast-CGI). Apache, Ngix, IIS, Tomcat all can serve CGI
>> and Fast-CGI. Pick whatever operating system and web server you're the most
>> proficient with. Install QGIS Server, start with the simplest configuration
>> that you can, as I did above. Then start tuning it to your needs. If you
>> run into problems ask for help on the list or
>> https://gis.stackexchange.com/ with specific details as to what the
>> problem is.
>> >>
>> >> --
>> >> Richard W. Greenwood
>> >> www.greenwoodmap.com
>> >
>> >
>> >
>> > --
>> >
>> >
>> > GisKraft, Geodatakonsult
>> >
>> > Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
>> > tel: +46 70 595 39 35 / www.giskraft.se
>> >
>> > ___
>> > 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
>>
>
>
> --
>
>
> *GisKraft*, Geodatakonsult
>
> Mats 

Re: [Qgis-user] Front page and download page

2021-10-18 Thread Alessandro Pasotti
On Sun, Oct 17, 2021 at 1:49 AM  wrote:

> Every time I update QGIS I feel that the front page and the download page
> of the website (in English) needs a bit of tweaking to guide the
> non-technical into making informed choices.
>
>
>
> The distinction between LTR and current release needs to be explained
> better and I have really have no idea about what QGIS in OSGeo4W
> (recommended for regular users) is/does. I don’t think it is clearly
> expressed.
>
>
>
> I am happy to help in suggesting change but I am not sure how the process
> works.
>
>
>
> Cheers
>
>
>
Hi,

you can start by making a pull request (PR) with your proposed changes
here:
https://github.com/qgis/QGIS-Website/blob/master/source/site/forusers/alldownloads.rst

Thanks!

Kind regards.


-- 
Alessandro Pasotti
QCooperative:  www.qcooperative.net
ItOpen:   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] extracting vertices from a multipolygon using Field Calculator Function Editor

2021-10-18 Thread Zoltan

Hi Listers,
I can't for the life of me work out the syntax/commands to use in the 
FieldCalculator->FunctionEditor for extracting vertices.


I have a Polygon layer with Multipolygon rectangles at various rotations.
I need to extract the 4 corner points so that I can calculate (and save 
in a virtual layer) lines that I can later use with "Processing->Split 
with lines".


I will google for opening a new virtual layer and saving lines to it, 
but if that is quick and easy then some help there would also be welcome.


Please can someone point me to a sample functions covering these 
requirements, or just fill in the gaps below.

No, I'm not asking for someone to just write it for me.

Thanks in advance,
Zoltan
[Having a brain-dead day :-(  ]


   from qgis.core import *
   from qgis.gui import *

   @qgsfunction(args='auto', group='Custom', referenced_columns=[])
   def zCutBox(feature, parent):
    vertices =

    blah blah
    return vertices[0][0]


--

=
Zoltan Szecsei GPrGISc 0031
Geograph (Pty) Ltd.
GIS and Photogrammetric Services

Cape Town, South Africa.

Mobile: +27-83-6004028 (Signal, not WhatsApp)
www.geograph.co.za
=
___
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 server in professional use?

2021-10-18 Thread Mats Elfström
Nyall, and QGIS fellow users and friends!

No one is born with knowledge, but everyone can learn.
Which is what I am trying hard here.
I humbly asked for user collaboration, and took great care in explaining
what I have done, and what I am aiming at.
(see also the thread "*Configuring QGIS server on Ubuntu 20.4*")
I have not given up yet, but I will drop this thread.
As you imply, it has taken off in the wrong direction.

Best regards, Mats.E

Den mån 18 okt. 2021 kl 09:44 skrev Nyall Dawson :

> On Mon, 18 Oct 2021 at 17:23, Mats Elfström 
> wrote:
> >
> > I am not too happy if I have to start over on a new machine.
>
> With all due respect, what do you expect as the outcome of this
> discussion?  You're complaining about software you obtained for free!
> If you're looking for commercial SUPPORT for QGIS then you need to
> contract a QGIS support provider (see
> https://qgis.org/en/site/forusers/commercial_support.html). If you're
> not experienced enough to setup the server yourself, I strongly
> caution you NOT to expose it to the internet and instead pay someone
> with the experience to do this for you, and ensure it's done
> correctly.
>
> If it's a volunteer task and you don't want to pay for support, then
> you NEED to moderate your language and avoid the inflammatory wording.
> That's never an effective way to get a good response from the
> volunteer side of the community.
>
> Nyall
>
>
>
>
> >
> > Regards, Mats.E
> >
> >
> > Den mån 18 okt. 2021 kl 04:31 skrev Richard Greenwood <
> richard.greenw...@gmail.com>:
> >>
> >> Posting again without screenshot, which apparently caused my previous
> email to await moderator approval.
> >>
> >> Mats,
> >>
> >> I fired up a new Ubuntu 20.04 instance on AWS and did the following 5
> steps which got me an XML capabilities document.
> >>
> >> # standard practice when starting a new instance
> >> sudo apt update && sudo apt upgrade -y
> >> # reboot if a new kernel was installed by apt upgrade
> >> sudo reboot
> >> # install qgis-server and apache web server
> >> sudo apt install qgis-server apache2 libapache2-mod-fcgid
> >> # enable apache fcgi and cgi
> >> sudo a2enmod fcgi cgi
> >> sudo systemctl restart apache2
> >> # in a web browser you should now get an XML document from the
> following request
> >>
> http://IP-ADDRESS-OR-HOST-NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities
> >>
> >> And 3 more steps got me a map
> >>
> >> # load some test data
> >> wget https://github.com/qgis/QGIS-Training-Data/archive/v2.0.zip
> >> sudo apt install unzip
> >> unzip v2.0.zip
> >> # in a web browser you should get a map from the following request
> >>
> http://IP-ADDRESS-OR-HOST-NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities=/home/ubuntu/QGIS-Training-Data-2.0/exercise_data/qgis-server-tutorial-data/world.qgs=countries=WMS=1.3.0=GetMap=EPSG:4326=400=200=-90,-180,90,180
> >>
> >> The tutorial tries to cover a lot of ground, maybe too much. And the 8
> steps above certainly don't cover enough for a production server. But it's
> quite unfair to say that "QGIS Server is not ready for production". As
> Donovan pointed out, there are a lot of moving parts and you have to have
> some proficiency with all of them if you are doing it on your own.
> >>
> >> The basic principle is that QGIS Server is serving WMS, WFS, WCS
> requests via CGI (or Fast-CGI). Apache, Ngix, IIS, Tomcat all can serve CGI
> and Fast-CGI. Pick whatever operating system and web server you're the most
> proficient with. Install QGIS Server, start with the simplest configuration
> that you can, as I did above. Then start tuning it to your needs. If you
> run into problems ask for help on the list or
> https://gis.stackexchange.com/ with specific details as to what the
> problem is.
> >>
> >> --
> >> Richard W. Greenwood
> >> www.greenwoodmap.com
> >
> >
> >
> > --
> >
> >
> > GisKraft, Geodatakonsult
> >
> > Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
> > tel: +46 70 595 39 35 / www.giskraft.se
> >
> > ___
> > 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
>


-- 


*GisKraft*, Geodatakonsult

Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
tel: +46 70 595 39 35 / www.giskraft.se
___
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 3.20 Crash

2021-10-18 Thread Stefan Giese (WhereGroup)
the profile manager is now available in QGIS flagged as experimental 
Plugin. My colleague Dominik will also present it on the next QGIS Open 
Day (2021-10-29)


with the following features:

 * Create a new profile
 o Creates and initiates a new QGIS profile
 * Removing profile
 o Removes the currently marked profile
 * Copy profile
 o Copies profile into a new one with a name provided by the user
 * Rename profile
 o Renames the profile with a name provided by the user
 * Importing Datasources from one profile to another (Datasources are
   chosen by checking them in a TreeView where each source is displayed)
 * Removing Datasources from a profile
 o Removes the datasources from the chosen SOURCE profile
 * Importing bookmarks
 * Importing favourites
 * Importing plugins
 * Importing functions
 * Importing models & scripts
 * Importing style & label settings
 * Importing QGIS UI settings (f.e. hidden toolbar items)

code: https://github.com/dszillWG/profile-manager

Am 06.10.2021 um 17:52 schrieb Raymond Nijssen:


On 06-10-2021 17:26, Etienne Trimaille wrote:

Hi Raymond and others,

A plugin is very often the culprit, which is installed by the user :) 



Hi Etienne and others,

QGIS itself is also installed by the user :)
But it doesn't mean the user is to blame for bugs in it, or can be 
expected to fix them. Same counts for plugins.


Maybe instead of making new profiles, we can have functions for fixing 
an existing profile?


- Turn off all plugins
- Remove all plugins
- Remove all custom expressions
- Remove startup script
- ...

In a usual suspect kind of order?

Maybe Stefan's Profile Manager will do it?

Cheers,
Raymond
___
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


--
Mit freundlichen Grüßen
Stefan Giese
Projektleiter/Consultant

-
Schon gewusst?
In unserem Blog geben wir Tipps & Tricks zu
Open-Source-GIS-Software und berichten aus unserem Experten-Alltag:
https://wheregroup.com/blog/
-

WhereGroup GmbH
Schwimmbadstr. 2
79100 Freiburg
Germany

Fon: +49 (0)761 / 519 102 - 61
Fax: +49 (0)761 / 519 102 - 11

stefan.gi...@wheregroup.com
www.wheregroup.com
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885

___
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] QAD Dimenssioning plugin

2021-10-18 Thread gam17
Hi Miquel Pujol Garcia,
   in the QAD manual you can read...
Hope it helps.
bye 
gam17

Layer
QAD supports all types of vector layers of QGIS with a distinction
regarding the point layer. In fact, QAD manage layers of QGIS
distinguishing between symbols layers and text layers. The first
displays symbols while the second displays texts.
The text layer is a layer that displays labels only. It is a QGIS point
layer with the following characteristics:
1.  the symbol must have a minimum of 90% transparency
2.  must have a label
Layers that are not textual will be considered as symbol layers.

Text layer model:
The text layer must have the following fields:
•   a character field to store text
Optional fields:
•   a real number field to store the text height (map unit)
•   a real number field to store text rotation (degree counterclockwise
where zero = horizontal to the right)
The textual layer must be defined with labels set as follows:
•   the size can be read from a real number field that stores the text
height (in map units, tab -, if set than the TEXT command
will ask for it)
•   the rotation can be read from a real number field that stores text
rotation (degree counterclockwise where zero = horizontal to the right),
 option enabled (tab
-, if set than the TEXT command will ask for it)

Symbol layer model:
The symbol layers may have the following optional fields:
•   a real number field to store the symbol rotation (degree
counterclockwise where zero = horizontal to the right)
•   a real number field to store the symbol scale
The symbol layer can be defined with a style set as follows:
•   If you decide to handle the rotation or scale of symbols then the

Re: [Qgis-user] QGIS server in professional use?

2021-10-18 Thread Nyall Dawson
On Mon, 18 Oct 2021 at 17:23, Mats Elfström  wrote:
>
> I am not too happy if I have to start over on a new machine.

With all due respect, what do you expect as the outcome of this
discussion?  You're complaining about software you obtained for free!
If you're looking for commercial SUPPORT for QGIS then you need to
contract a QGIS support provider (see
https://qgis.org/en/site/forusers/commercial_support.html). If you're
not experienced enough to setup the server yourself, I strongly
caution you NOT to expose it to the internet and instead pay someone
with the experience to do this for you, and ensure it's done
correctly.

If it's a volunteer task and you don't want to pay for support, then
you NEED to moderate your language and avoid the inflammatory wording.
That's never an effective way to get a good response from the
volunteer side of the community.

Nyall




>
> Regards, Mats.E
>
>
> Den mån 18 okt. 2021 kl 04:31 skrev Richard Greenwood 
> :
>>
>> Posting again without screenshot, which apparently caused my previous email 
>> to await moderator approval.
>>
>> Mats,
>>
>> I fired up a new Ubuntu 20.04 instance on AWS and did the following 5 steps 
>> which got me an XML capabilities document.
>>
>> # standard practice when starting a new instance
>> sudo apt update && sudo apt upgrade -y
>> # reboot if a new kernel was installed by apt upgrade
>> sudo reboot
>> # install qgis-server and apache web server
>> sudo apt install qgis-server apache2 libapache2-mod-fcgid
>> # enable apache fcgi and cgi
>> sudo a2enmod fcgi cgi
>> sudo systemctl restart apache2
>> # in a web browser you should now get an XML document from the following 
>> request
>> http://IP-ADDRESS-OR-HOST-NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities
>>
>> And 3 more steps got me a map
>>
>> # load some test data
>> wget https://github.com/qgis/QGIS-Training-Data/archive/v2.0.zip
>> sudo apt install unzip
>> unzip v2.0.zip
>> # in a web browser you should get a map from the following request
>> http://IP-ADDRESS-OR-HOST-NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities=/home/ubuntu/QGIS-Training-Data-2.0/exercise_data/qgis-server-tutorial-data/world.qgs=countries=WMS=1.3.0=GetMap=EPSG:4326=400=200=-90,-180,90,180
>>
>> The tutorial tries to cover a lot of ground, maybe too much. And the 8 steps 
>> above certainly don't cover enough for a production server. But it's quite 
>> unfair to say that "QGIS Server is not ready for production". As Donovan 
>> pointed out, there are a lot of moving parts and you have to have some 
>> proficiency with all of them if you are doing it on your own.
>>
>> The basic principle is that QGIS Server is serving WMS, WFS, WCS requests 
>> via CGI (or Fast-CGI). Apache, Ngix, IIS, Tomcat all can serve CGI and 
>> Fast-CGI. Pick whatever operating system and web server you're the most 
>> proficient with. Install QGIS Server, start with the simplest configuration 
>> that you can, as I did above. Then start tuning it to your needs. If you run 
>> into problems ask for help on the list or https://gis.stackexchange.com/ 
>> with specific details as to what the problem is.
>>
>> --
>> Richard W. Greenwood
>> www.greenwoodmap.com
>
>
>
> --
>
>
> GisKraft, Geodatakonsult
>
> Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
> tel: +46 70 595 39 35 / www.giskraft.se
>
> ___
> 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 server in professional use?

2021-10-18 Thread Mats Elfström
Hi Richard!
I agree, those steps should do it.
I tried to carefully follow the instructions (as I have been told to do) on
this page.
https://docs.qgis.org/3.16/en/docs/server_manual/getting_started.html#installation-on-debian-based-systems
which differs considerably from your instructions. Are these steps
unneccesary?

1 You do not create a virtual host
2 You do not edit the .hosts file

Those two steps have caused me the most worry, because I did not see the
point of doing that, and the instructions are not very clear.
Have you read my quite detailed report on every step of the described
installation process, where everything went smoothly until the virtual host
was added?

I agree that this may seem as an HTTP server configuration problem more
than a QGIS Server problem.
But they are connected, QGIS Server is of no use without a HTPP server.
And I consider the documentation of any software an integral part of the
software. So that incomplete or false documentation can be considered a bug
if it prevents the software from running.

This machine is up on the net, has a PostgreSQL/PostGIS geodatabase with
lots of data and Geoserver 2.19 up and running. No problems there.
I am not too happy if I have to start over on a new machine.

Regards, Mats.E


Den mån 18 okt. 2021 kl 04:31 skrev Richard Greenwood <
richard.greenw...@gmail.com>:

> Posting again without screenshot, which apparently caused my previous
> email to await moderator approval.
>
> Mats,
>
> I fired up a new Ubuntu 20.04 instance on AWS and did the following 5
> steps which got me an XML capabilities document.
>
> # standard practice when starting a new instance
> sudo apt update && sudo apt upgrade -y
> # reboot if a new kernel was installed by apt upgrade
> sudo reboot
> # install qgis-server and apache web server
> sudo apt install qgis-server apache2 libapache2-mod-fcgid
> # enable apache fcgi and cgi
> sudo a2enmod fcgi cgi
> sudo systemctl restart apache2
> # in a web browser you should now get an XML document from the following
> request
> http://IP-ADDRESS-OR-HOST-NAME
> /cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities
>
> And 3 more steps got me a map
>
> # load some test data
> wget https://github.com/qgis/QGIS-Training-Data/archive/v2.0.zip
> sudo apt install unzip
> unzip v2.0.zip
> # in a web browser you should get a map from the following request
> http://IP-ADDRESS-OR-HOST-NAME
> /cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities=/home/ubuntu/QGIS-Training-Data-2.0/exercise_data/qgis-server-tutorial-data/world.qgs=countries=WMS=1.3.0=GetMap=EPSG:4326=400=200=-90,-180,90,180
>
> The tutorial tries to cover a lot of ground, maybe too much. And the 8
> steps above certainly don't cover enough for a production server. But it's
> quite unfair to say that "QGIS Server is not ready for production". As
> Donovan pointed out, there are a lot of moving parts and you have to have
> some proficiency with all of them if you are doing it on your own.
>
> The basic principle is that QGIS Server is serving WMS, WFS, WCS requests
> via CGI (or Fast-CGI). Apache, Ngix, IIS, Tomcat all can serve CGI and
> Fast-CGI. Pick whatever operating system and web server you're the most
> proficient with. Install QGIS Server, start with the simplest configuration
> that you can, as I did above. Then start tuning it to your needs. If you
> run into problems ask for help on the list or
> https://gis.stackexchange.com/ with specific details as to what the
> problem is.
>
> --
> Richard W. Greenwood
> www.greenwoodmap.com
>


-- 


*GisKraft*, Geodatakonsult

Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
tel: +46 70 595 39 35 / www.giskraft.se
___
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] Crashing with snapping and WFS !?

2021-10-18 Thread Julien Cabieces

Hi,


Could you please open an issue here https://github.com/qgis/QGIS/issues
?

Does it happen on Linux or Windows ?

Do you manage to reproduce the issue every time or it happen randomly?

Kind regards,
Julien

> Hi list.
>
>  
>
> We’re running a dataset via WFS (Geoserver 2.16) into QGIS.
>
> The user has snap turned on while digitizing/editing, and too often this 
> combo results in QGIS crashing.
>
>  
>
> However, this crash does not happen when digitizing/editing, but during other 
> operations like panning the map or something similar.
>
>  
>
> The stack dump mentions “snapPoint”, “snapToMap”, “nearestVertex”, and 
> “closestVertex”, which to me implies the snapping function in action.
>
> It also mentions “canvasMoveEvent”, which to me implies a panning operation.
>
>  
>
> I expect the snapping operation to be entirely local, i.e. independent of 
> actual data source type, but this apparently only happens when using a WFS 
> data source.
>
>  
>
> Can anyone shed some light on this unexpected behavior ? Is it a bug ?
>
>  
>
> Here’s the crash dialog box:
>
> *
>
>  
>
> QGIS is version 3.16.10, as the stack dump shows.
>
>  
>
>  
>
> Med venlig hilsen
>
> Lars I. Nielsen
> GIS-kons., FME+Python Certified Professional
> GeoData
>
>  
>
> * 
>  Dir. +4563136849 
>  Tlf.  +4563136800 
>  Mail  +l...@lifa.dk 
> *
>
>  
>
> LIFA A/S · Tlf +4563136800 · lifa.dk · CVRI20937289
>
> Odense · København · Fredericia · Vejle · Kolding · Aarhus · Middelfart · 
> Vissenbjerg · Kerteminde 
>
> * Følg os på LinkedIn og læs de seneste nyheder fra LIFA A/S  
> *

___
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