Re: [Qgis-user] i have been digitizing polygons for a few days and QGIS crashed

2021-10-08 Thread Zoltan

What's a floppy disk?  ;-)

On 2021-10-08 22:55, Garth Fletcher wrote:

Alexandre Neto wrote:


Hi,

You are missing one of the most important aspects of QGIS (and most GIS
software): The data is independent of the project.

The project > save action saves the project, which include what 
layers you

have loaded, what order you gave them, their styles, and so on.

When you edit vector layers, you need to use the save icon in the
digitising toolbar, the one next to pencil icon that you have probably
clicked to start editing. This is done layer by layer.


The only time I have seen QGIS prompt the user to save an edited but 
not yet saved layer is when you Quit.

At that moment it does seem to remind one about any unsaved layers.

However, if it crashes then any unsaved new layers, or unsaved changes 
to pre-existing layers, are lost.


The crucial step,as Alexandre says, is to save the changes in the 
layer by *clicking on the floppy diskette icon* next to the pencil...
Alternatively, toggling the Pencil to turn of editing will also prompt 
you to save changes.




--

=
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] R in Qgis not running

2021-10-08 Thread Andrea Giudiceandrea
julio cesar oliveira Fri, 08 Oct 2021 07:41:13 -0700> I still can't run 
the scripts!!

==
tentando a URL '
http://cran.at.r-project.org/bin/windows/contrib/4.1/mapview_2.10.0.zip'
Content type 'application/zip' length 2298331 bytes (2.2 MB)

downloaded 732 KB


Hi julio cesar oliveira,
the reported issue is still about the failing download of 
http://cran.at.r-project.org/bin/windows/contrib/4.1/mapview_2.10.0.zip


Have you tried to manually download the mapview_2.10.0.zip file using a 
Web browser or a CLI client like wget or curl?
Has the manually downloaded mapview_2.10.0.zip file the size of 2298331 
bytes (2.2 MB)?


Regards.

Andrea
___
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] i have been digitizing polygons for a few days and QGIS crashed

2021-10-08 Thread Garth Fletcher

Alexandre Neto wrote:


Hi,

You are missing one of the most important aspects of QGIS (and most GIS
software): The data is independent of the project.

The project > save action saves the project, which include what layers you
have loaded, what order you gave them, their styles, and so on.

When you edit vector layers, you need to use the save icon in the
digitising toolbar, the one next to pencil icon that you have probably
clicked to start editing. This is done layer by layer.


The only time I have seen QGIS prompt the user to save an edited but not 
yet saved layer is when you Quit.

At that moment it does seem to remind one about any unsaved layers.

However, if it crashes then any unsaved new layers, or unsaved changes 
to pre-existing layers, are lost.


The crucial step,as Alexandre says, is to save the changes in the layer 
by clicking on the floppy diskette icon next to the pencil...
Alternatively, toggling the Pencil to turn of editing will also prompt 
you to save changes.


--
Garth Fletcher

___
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] i have been digitizing polygons for a few days and QGIS crashed

2021-10-08 Thread Alexandre Neto
Hi,

You are missing one of the most important aspects of QGIS (and most GIS
software): The data is independent of the project.

The project > save action saves the project, which include what layers you
have loaded, what order you gave them, their styles, and so on.

When you edit vector layers, you need to use the save icon in the
digitising toolbar, the one next to pencil icon that you have probably
clicked to start editing. This is done layer by layer.

Best regards,

Alexandre Neto
QGIS Support
www.qcooperative.net

A sexta, 8/10/2021, 17:17, Firstname Lastname 
escreveu:

>
> i have saved several times.  this i know to be true because i have been
> importing maps and georeferencing several times.  i have saved these maps
> as i have been working and the imported maps have saved.  the  problem is
> that i have been digitizing polygons for several days and recently qgis
> crashed on me.  the polygons disappeared that i have been digitizing but
> the geoereferenced maps have been saved.  the polygon layers were all saved
> and were  not scratch layers.  can anyone help me to understand why the
> polygons did not get saved.
> i am certain that i have saved dozens of times using Project/save.
> i am reluctant to do any more work if i can not be certain that it is
> saving
> --
> Byron Veilleux, MSc. P.Geo
> Conjugate Geologic Services Limited
> Calgary, Alberta Canada
> by...@conjugategeo.com
> Cell:4037108414
>
>
> 
>  Virus-free.
> www.avast.com
> 
> <#m_-7993372725875783870_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> ___
> 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] i have been digitizing polygons for a few days and QGIS crashed

2021-10-08 Thread Firstname Lastname
i have saved several times.  this i know to be true because i have been
importing maps and georeferencing several times.  i have saved these maps
as i have been working and the imported maps have saved.  the  problem is
that i have been digitizing polygons for several days and recently qgis
crashed on me.  the polygons disappeared that i have been digitizing but
the geoereferenced maps have been saved.  the polygon layers were all saved
and were  not scratch layers.  can anyone help me to understand why the
polygons did not get saved.
i am certain that i have saved dozens of times using Project/save.
i am reluctant to do any more work if i can not be certain that it is saving
-- 
Byron Veilleux, MSc. P.Geo
Conjugate Geologic Services Limited
Calgary, Alberta Canada
by...@conjugategeo.com
Cell:4037108414


Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
___
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] R in Qgis not running

2021-10-08 Thread julio cesar oliveira
Andrea

Windows was reinstalled and antivirus was disabled.
I still can't run the scripts!!



==
Installing package into
'C:/Users/olive/AppData/Roaming/QGIS/QGIS3/profiles/default/processing/rlibs'
(as 'lib' is unspecified)
also installing the dependencies 'mapview', 'rmarkdown', 'rgeos'

tentando a URL '
http://cran.at.r-project.org/bin/windows/contrib/4.1/mapview_2.10.0.zip'
Content type 'application/zip' length 2298331 bytes (2.2 MB)

downloaded 732 KB

tentando a URL '
http://cran.at.r-project.org/bin/windows/contrib/4.1/rmarkdown_2.11.zip'
Content type 'application/zip' length 3660553 bytes (3.5 MB)
==
downloaded 3.5 MB

tentando a URL '
http://cran.at.r-project.org/bin/windows/contrib/4.1/rgeos_0.5-8.zip'
Content type 'application/zip' length 2443727 bytes (2.3 MB)
==
downloaded 2.3 MB

tentando a URL '
http://cran.at.r-project.org/bin/windows/contrib/4.1/rgdal_1.5-27.zip'
Content type 'application/zip' length 42857747 bytes (40.9 MB)
==
downloaded 40.9 MB

Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) :
não é possível abrir a conexão
Calls: tryCatch ... install.packages -> .install.winbinary -> unpackPkgZip
-> read.dcf
Além disso: Warning messages:
1: In download.file(url, destfile, method, mode = "wb", ...) :
downloaded length 749568 != reported length 2298331
2: In unzip(zipname, exdir = dest) :
erro 1 na extração a partir de arquivo zip
3: In read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) :
não foi possível abrir o arquivo comprimido 'mapview/DESCRIPTION', motivo
provável 'No such file or directory'
Execução interrompida

Em ter., 5 de out. de 2021 às 07:47, Andrea Giudiceandrea <
andreaer...@libero.it> escreveu:

> Hi julio cesar oliveira,
> the log reports that the download of one of the missing needed
> dependencies fails:
>
> 
> tentando a URL '
> http://cran.at.r-project.org/bin/windows/contrib/4.1/mapview_2.10.0.zip'
> Content type 'application/zip' length 2298195 bytes (2.2 MB)
> 
> downloaded 732 KB
> 
>
> 
> 1: In download.file(url, destfile, method, mode = "wb", ...) :
> downloaded length 749568 != reported length 2298195
> 
>
> Have you tried again?
> Is there something in your system (e.g an antivirus) that could
> interfere with the download of that file?
>
> Regards.
>
> Andrea
> ___
> 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-08 Thread Mats Elfström
Many thanks, Jorge. That was very decent of you.
Now I will see if I can braid those snippets into my server configuration.
I will report back later.

Best regards, Mats.E
-- 


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

2021-10-08 Thread Paolo Cavallini
we also have many installation. in general following the instructions in
the manual works well, what is your problem?
cheers.

Il 08/10/21 12:50, Jorge Gustavo Rocha ha scritto:
> Hi Mats,
> 
> I have QGIS Server running under Apache in several public institutions.
> My apache2/conf-available files are attached.
> 
> It runs pretty well under Apache.
> 
> Regards,
> 
> Jorge Gustavo
> 
> On 08/10/21 11:25, Mats Elfström wrote:
>> Hi?
>> Is anybody using, or know of someplace where QGIS Server is used in a
>> professional and public service, using Apache as web server?
>> I would be immensively and eternally grateful if anybody in a position
>> to do so would share the secrets of the Apache setup and configuration
>> to act as web server to the QGIS fcgi service. Preferably also how one
>> can rewrite the url so that  a GetCapabilites request to a workspace
>> folder will return a Geoserver equivalent response. 
>>
>> Many many thanks beforehand, Mats.E
>> -- 
>>
>> *
>> *
>>
>> *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
> 

-- 
Paolo Cavallini
www.faunalia.eu - QGIS.org
training, support, development on QGIS, PostGIS and more
___
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] mapping bus routes

2021-10-08 Thread Nicolas Cadieux
Hi,

Maybe Anita Graser has something on the topic? https://anitagraser.com/ She 
does a lot of work in visualization mass transportation. Yes, looking at line 
azimut by color was the way I did it in the past.  It’s still a good way when 
the network has a lot of snapping errors.  My algorithm with permit you find 
those problems. If you see a network problem my algorithm does not find, please 
tell me and I could work them in.

Nicolas Cadieux
https://gitlab.com/njacadieux

> Le 8 oct. 2021 à 02:54, Andreas Neumann  a écrit :
> 
> 
> Hi,
> 
> Besides on what was discussed here on the list already, I can add the 
> following information: the Swiss QGIS user group has mandated Nyall Dawson to 
> carry out a couple of days of research exactly on this topic - kind of a 
> feasibility study if it would be possible to draw such network maps "on the 
> fly" / automatically - with transit maps and hiking maps (multiple parallel 
> hiking routes) in mind.
> 
> I believe Nyall will work on this before the end of the year.
> 
> Of course we cannot promise anything - but based on the outcome of this 
> study, there might be follow-up work pending. If there is interest from other 
> users we might want to organize an institutional crowd funding initiative.
> 
> This won't help you immediately - but it might be good for you to know that 
> the problem is on the radar. If there is a positive outcome in the study, 
> there might be implementation work pending next year.
> 
> Greetings,
> 
> Andreas
> 
>> On 2021-10-07 23:53, David Strip wrote:
>> 
>> For a transit map, it seems the offset would not be constant. Consider two 
>> bus routes that overlap along a single street in their routes. On that 
>> street, the two lines typically would be offset to opposite sides of the 
>> line representing the street. On the rest of the route, however, the route 
>> would be shown as lying directly over the centerline, not offset to either 
>> side. Life gets even more complicated when multiple routes overlap with 
>> different numbers of other routes at various points on the map.  Or at least 
>> that's what I've typically seen on transit maps. 
>> 
>>> On 10/7/2021 3:30 PM, Nicolas Cadieux wrote:
>>> Hi,
>>> You can also trim the lines in the symbology (at least in QGIS 3.20) as 
>>> well as giving it an offset.  That will insure that intersection are not 
>>> overlapping in the offset.
>>> 
>>> Nicolas Cadieux
>>> https://gitlab.com/njacadieux
>>> 
 Le 7 oct. 2021 à 17:23, Nicolas Cadieux  a 
 écrit :
 
 Oups!  Forgot the list...
 
 Nicolas Cadieux
 https://gitlab.com/njacadieux
 
> Le 7 oct. 2021 à 17:23, Nicolas Cadieux  a 
> écrit :
> 
> Hi,
> You can automatically draw an offset by adding a offset in the symbology. 
>  Things get more complicated when line vectorization changes directions 
> as the offset flips side depending on, for example, if the line is drawn 
> from A to B or B to A.  
>  
> In the QGIS models, https://plugins.qgis.org/, go to models then Fix 
> Directional Network models 1,2 and 3.  That will help you find problems 
> (like disconnected lines) but also identify all the lines that are 
> flipped. You can then flip them manually or figure out an algorithm to do 
> it automatically.
>  
> You will also find a boring YouTube video on my YouTube channel. 
> https://youtu.be/v61PafSByvM
> 
> Nicolas Cadieux
> https://gitlab.com/njacadieux
> 
>> Le 7 oct. 2021 à 14:17, Hugh Kelley  a écrit :
>> 
>> Hi all,
>>  
>> I'm wondering if anyone has any good tricks for mapping bus routes. The 
>> key problem is defining how to offset lines where the routes overlap.
>>  
>> I've handled this by chopping up the lines and offsetting in postgis 
>> according to some st_dwithins and st_intersections but wanted to see if 
>> there is anything in the wide world of QGIS that I'm not aware of.
>>  
>> My understanding is that it's a fairly significant challenge to do a 
>> great job with it. A company called transitapp had an interesting blog 
>> post about it a while ago. 
>> https://archive.transitapp.com/transit-maps-apple-vs-google-vs-us-cb3d7cd2c362#.e9kcryzg1
>> 
>> 
>> Hugh 
>>  
>> ___
>> 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: 

Re: [Qgis-user] mapping bus routes

2021-10-08 Thread Kobben, Barend (UT-ITC)
Fascinating topic indeed. You might be interested in the upcoming Schematic 
Mapping Workshop, see https://www.ruhr-uni-bochum.de/schematicmapping/

If you check out some of the papers produced in that series (and their 
references), you will discover links to the two "branches" of this field: the 
artistic/manual and the algorithmic/automation , plus interesting links to HCI 
and usability research connected to it...

--
Barend Köbben


From: Qgis-user  on behalf of Andreas 
Neumann 
Date: Friday, 8 October 2021 at 09:09
To: David Strip 
Cc: Qgis List 
Subject: Re: [Qgis-user] mapping bus routes


and yes - the problem is really not simple, but indeed very challenging.

Most transit maps today are not done in a GIS, but by designers in a graphics 
applications, like Adobe-Illustrator. The process is usually not automated, but 
manual.

However, I believe a semi-automated approach would be great to have. For some, 
the outcome might be satisfactory, for others not - and these could start with 
(Q)GIS and continue later in a graphics package.

Andreas

On 2021-10-08 08:54, Andreas Neumann wrote:

Hi,

Besides on what was discussed here on the list already, I can add the following 
information: the Swiss QGIS user group has mandated Nyall Dawson to carry out a 
couple of days of research exactly on this topic - kind of a feasibility study 
if it would be possible to draw such network maps "on the fly" / automatically 
- with transit maps and hiking maps (multiple parallel hiking routes) in mind.

I believe Nyall will work on this before the end of the year.

Of course we cannot promise anything - but based on the outcome of this study, 
there might be follow-up work pending. If there is interest from other users we 
might want to organize an institutional crowd funding initiative.

This won't help you immediately - but it might be good for you to know that the 
problem is on the radar. If there is a positive outcome in the study, there 
might be implementation work pending next year.

Greetings,

Andreas

On 2021-10-07 23:53, David Strip wrote:
For a transit map, it seems the offset would not be constant. Consider two bus 
routes that overlap along a single street in their routes. On that street, the 
two lines typically would be offset to opposite sides of the line representing 
the street. On the rest of the route, however, the route would be shown as 
lying directly over the centerline, not offset to either side. Life gets even 
more complicated when multiple routes overlap with different numbers of other 
routes at various points on the map.  Or at least that's what I've typically 
seen on transit maps.

On 10/7/2021 3:30 PM, Nicolas Cadieux wrote:
Hi,
You can also trim the lines in the symbology (at least in QGIS 3.20) as well as 
giving it an offset.  That will insure that intersection are not overlapping in 
the offset.
Nicolas Cadieux
https://gitlab.com/njacadieux

Le 7 oct. 2021 à 17:23, Nicolas Cadieux 
 a écrit :
Oups!  Forgot the list...
Nicolas Cadieux
https://gitlab.com/njacadieux

Le 7 oct. 2021 à 17:23, Nicolas Cadieux 
 a écrit :
Hi,
You can automatically draw an offset by adding a offset in the symbology.  
Things get more complicated when line vectorization changes directions as the 
offset flips side depending on, for example, if the line is drawn from A to B 
or B to A.

In the QGIS models, https://plugins.qgis.org/, go to models then Fix 
Directional Network models 1,2 and 3.  That will help you find problems (like 
disconnected lines) but also identify all the lines that are flipped. You can 
then flip them manually or figure out an algorithm to do it automatically.

You will also find a boring YouTube video on my YouTube channel. 
https://youtu.be/v61PafSByvM
Nicolas Cadieux
https://gitlab.com/njacadieux

Le 7 oct. 2021 à 14:17, Hugh Kelley 
 a écrit :
Hi all,

I'm wondering if anyone has any good tricks for mapping bus routes. The key 
problem is defining how to offset lines where the routes overlap.

I've handled this by chopping up the lines and offsetting in postgis according 
to some st_dwithins and st_intersections but wanted to see if there is anything 
in the wide world of QGIS that I'm not aware of.

My understanding is that it's a fairly significant challenge to do a great job 
with it. A company called transitapp had an interesting blog post about it a 
while ago. 
https://archive.transitapp.com/transit-maps-apple-vs-google-vs-us-cb3d7cd2c362#.e9kcryzg1

Hugh

___
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: 

Re: [Qgis-user] [QGIS 3.16] Discovered some glitches with styles and attributes table lengthy fields

2021-10-08 Thread Jésahel Benoist
I tried on a geopackage and found two things :
- Geopackage also has a field length limit in the attributes table. Maybe
it's well known...?
- The style load and save problem doesn't occur on geopackage but only on
our MSSQL database so far.

The style bug happens in the layer properties panel, in load style from the
database. Restore default style works. From my python code, I think that
the getStyleFromDatabase() has some bug with MSSQL db.

Le jeu. 7 oct. 2021 à 17:37, Jésahel Benoist  a écrit :

> Hello list,
>
> I had some strange behaviour when trying to load a layer's default style
> from my DB in the properties panel, I got the error "Root  element
> could not be found".
>
> I opened the layers_styles table directly with the attributes table and
> discovered that the record's  styleQML got truncated.
>
> The normal length of this field is 69Kb. Truncated is 32Kb. Impossible to
> add characters in the table. And modifying style always give a truncated
> size around 32Kb.
>
> Strangely, using the style panel to load and save by default works !
>
> By exporting the layer_styles table in a kml file, I see that everything
> is correctly stored in the DB.
>
> Btw, the python code I was using to load default style from db is also
> broken...
>
> So I think there's some bug in one of the default style loading internal
> functions and that the attributes table maximum editable field length is
> around 32Kb.
>
>  Am I missing something?
>
> Regards,
>
> Jésahel
>
___
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-08 Thread Jorge Gustavo Rocha
Hi Mats,

I have QGIS Server running under Apache in several public institutions.
My apache2/conf-available files are attached.

It runs pretty well under Apache.

Regards,

Jorge Gustavo

On 08/10/21 11:25, Mats Elfström wrote:
> Hi?
> Is anybody using, or know of someplace where QGIS Server is used in a
> professional and public service, using Apache as web server?
> I would be immensively and eternally grateful if anybody in a position
> to do so would share the secrets of the Apache setup and configuration
> to act as web server to the QGIS fcgi service. Preferably also how one
> can rewrite the url so that  a GetCapabilites request to a workspace
> folder will return a Geoserver equivalent response. 
>
> Many many thanks beforehand, Mats.E
> -- 
>
> *
> *
>
> *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


Define ENABLE_USR_LIB_CGI_BIN
FcgidProcessLifeTime 8200
FcgidIOTimeout 8200
FcgidConnectTimeout 400
FcgidMaxRequestLen 10



Define ENABLE_USR_LIB_CGI_BIN



Define ENABLE_USR_LIB_CGI_BIN



# ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
ScriptAlias /cgi-bin/ /usr/local/bin/

AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Require all granted




# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
SetEnv PGSERVICEFILE /home/qgis/.pg_service.conf

FcgidInitialEnv QGIS_SERVER_LOG_FILE /var/log/qgis/qgisserver.log
# 0 INFO (log all requests), 1 WARNING, 2 CRITICAL (suitable for production 
purposes).
FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0

# Virtual display
FcgidInitialEnv DISPLAY ":99"

FcgidInitialEnv QGIS_SERVER_IGNORE_BAD_LAYERS 1
FcgidInitialEnv QGIS_SERVER_PARALLEL_RENDERING 1
FcgidInitialEnv QGIS_SERVER_MAX_THREADS -1

# Required
# See https://github.com/qgis/QGIS/issues/31675
# Required to get the ortos from DGT
# scp /home/jgr/.local/share/QGIS/QGIS3/profiles/geodashboard/qgis-auth.db 
q...@homologacao.geomaster.pt:qgisserverdb qgis-auth.db
# Evitar o erro: Download of capabilities failed: SSL handshake failed
FcgidInitialEnv QGIS_AUTH_DB_DIR_PATH "/home/qgis/qgisserverdb/"
FcgidInitialEnv QGIS_AUTH_PASSWORD_FILE "/home/qgis/qgisserverdb/qgis-auth.db"

RewriteEngine on
RewriteOptions Inherit
RewriteRule ^/postgresql/(.*)/(.*)/(.*)/cgi-bin/qgis_mapserv.fcgi 
/cgi-bin/qgis_mapserv.fcgi 
[NC,PT,E=QGIS_PROJECT_FILE:postgresql:?service=$1=disable=$2=$3]

# CORS (for debugging; use carefully in production)
# Always set these headers.
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header always set Access-Control-Max-Age "1000"
Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, 
origin, authorization, accept, client-security-token"

# Added a rewrite to respond with a 200 SUCCESS on every OPTIONS request.
RewriteEngine On
RewriteOptions Inherit
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ $1 [R=200,L]
___
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 server in professional use?

2021-10-08 Thread Mats Elfström
Hi?
Is anybody using, or know of someplace where QGIS Server is used in a
professional and public service, using Apache as web server?
I would be immensively and eternally grateful if anybody in a position to
do so would share the secrets of the Apache setup and configuration to act
as web server to the QGIS fcgi service. Preferably also how one can rewrite
the url so that  a GetCapabilites request to a workspace folder will return
a Geoserver equivalent response.

Many many thanks beforehand, Mats.E
-- 


*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] mapping bus routes

2021-10-08 Thread Andreas Neumann

and yes - the problem is really not simple, but indeed very challenging.

Most transit maps today are not done in a GIS, but by designers in a 
graphics applications, like Adobe-Illustrator. The process is usually 
not automated, but manual.


However, I believe a semi-automated approach would be great to have. For 
some, the outcome might be satisfactory, for others not - and these 
could start with (Q)GIS and continue later in a graphics package.


Andreas

On 2021-10-08 08:54, Andreas Neumann wrote:


Hi,

Besides on what was discussed here on the list already, I can add the 
following information: the Swiss QGIS user group has mandated Nyall 
Dawson to carry out a couple of days of research exactly on this topic 
- kind of a feasibility study if it would be possible to draw such 
network maps "on the fly" / automatically - with transit maps and 
hiking maps (multiple parallel hiking routes) in mind.


I believe Nyall will work on this before the end of the year.

Of course we cannot promise anything - but based on the outcome of this 
study, there might be follow-up work pending. If there is interest from 
other users we might want to organize an institutional crowd funding 
initiative.


This won't help you immediately - but it might be good for you to know 
that the problem is on the radar. If there is a positive outcome in the 
study, there might be implementation work pending next year.


Greetings,

Andreas

On 2021-10-07 23:53, David Strip wrote:

For a transit map, it seems the offset would not be constant. Consider 
two bus routes that overlap along a single street in their routes. On 
that street, the two lines typically would be offset to opposite sides 
of the line representing the street. On the rest of the route, however, 
the route would be shown as lying directly over the centerline, not 
offset to either side. Life gets even more complicated when multiple 
routes overlap with different numbers of other routes at various points 
on the map.  Or at least that's what I've typically seen on transit 
maps.


On 10/7/2021 3:30 PM, Nicolas Cadieux wrote: Hi,
You can also trim the lines in the symbology (at least in QGIS 3.20) as 
well as giving it an offset.  That will insure that intersection are 
not overlapping in the offset.


Nicolas Cadieux
https://gitlab.com/njacadieux

Le 7 oct. 2021 à 17:23, Nicolas Cadieux  a 
écrit :


Oups!  Forgot the list...

Nicolas Cadieux
https://gitlab.com/njacadieux

Le 7 oct. 2021 à 17:23, Nicolas Cadieux  a 
écrit :


Hi,
You can automatically draw an offset by adding a offset in the 
symbology.  Things get more complicated when line vectorization changes 
directions as the offset flips side depending on, for example, if the 
line is drawn from A to B or B to A.


In the QGIS models, https://plugins.qgis.org/, go to models then Fix 
Directional Network models 1,2 and 3.  That will help you find problems 
(like disconnected lines) but also identify all the lines that are 
flipped. You can then flip them manually or figure out an algorithm to 
do it automatically.


You will also find a boring YouTube video on my YouTube channel. 
https://youtu.be/v61PafSByvM


Nicolas Cadieux
https://gitlab.com/njacadieux

Le 7 oct. 2021 à 14:17, Hugh Kelley  a écrit :

Hi all,

I'm wondering if anyone has any good tricks for mapping bus routes. The 
key problem is defining how to offset lines where the routes overlap.


I've handled this by chopping up the lines and offsetting in postgis 
according to some st_dwithins and st_intersections but wanted to see if 
there is anything in the wide world of QGIS that I'm not aware of.


My understanding is that it's a fairly significant challenge to do a 
great job with it. A company called transitapp had an interesting blog 
post about it a while ago. 
https://archive.transitapp.com/transit-maps-apple-vs-google-vs-us-cb3d7cd2c362#.e9kcryzg1


Hugh
___
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] mapping bus routes

2021-10-08 Thread Andreas Neumann

Hi,

Besides on what was discussed here on the list already, I can add the 
following information: the Swiss QGIS user group has mandated Nyall 
Dawson to carry out a couple of days of research exactly on this topic - 
kind of a feasibility study if it would be possible to draw such network 
maps "on the fly" / automatically - with transit maps and hiking maps 
(multiple parallel hiking routes) in mind.


I believe Nyall will work on this before the end of the year.

Of course we cannot promise anything - but based on the outcome of this 
study, there might be follow-up work pending. If there is interest from 
other users we might want to organize an institutional crowd funding 
initiative.


This won't help you immediately - but it might be good for you to know 
that the problem is on the radar. If there is a positive outcome in the 
study, there might be implementation work pending next year.


Greetings,

Andreas

On 2021-10-07 23:53, David Strip wrote:

For a transit map, it seems the offset would not be constant. Consider 
two bus routes that overlap along a single street in their routes. On 
that street, the two lines typically would be offset to opposite sides 
of the line representing the street. On the rest of the route, however, 
the route would be shown as lying directly over the centerline, not 
offset to either side. Life gets even more complicated when multiple 
routes overlap with different numbers of other routes at various points 
on the map.  Or at least that's what I've typically seen on transit 
maps.


On 10/7/2021 3:30 PM, Nicolas Cadieux wrote: Hi,
You can also trim the lines in the symbology (at least in QGIS 3.20) as 
well as giving it an offset.  That will insure that intersection are 
not overlapping in the offset.


Nicolas Cadieux
https://gitlab.com/njacadieux

Le 7 oct. 2021 à 17:23, Nicolas Cadieux  a 
écrit :


Oups!  Forgot the list...

Nicolas Cadieux
https://gitlab.com/njacadieux

Le 7 oct. 2021 à 17:23, Nicolas Cadieux  a 
écrit :


Hi,
You can automatically draw an offset by adding a offset in the 
symbology.  Things get more complicated when line vectorization changes 
directions as the offset flips side depending on, for example, if the 
line is drawn from A to B or B to A.


In the QGIS models, https://plugins.qgis.org/, go to models then Fix 
Directional Network models 1,2 and 3.  That will help you find problems 
(like disconnected lines) but also identify all the lines that are 
flipped. You can then flip them manually or figure out an algorithm to 
do it automatically.


You will also find a boring YouTube video on my YouTube channel. 
https://youtu.be/v61PafSByvM


Nicolas Cadieux
https://gitlab.com/njacadieux

Le 7 oct. 2021 à 14:17, Hugh Kelley  a écrit :

Hi all,

I'm wondering if anyone has any good tricks for mapping bus routes. The 
key problem is defining how to offset lines where the routes overlap.


I've handled this by chopping up the lines and offsetting in postgis 
according to some st_dwithins and st_intersections but wanted to see if 
there is anything in the wide world of QGIS that I'm not aware of.


My understanding is that it's a fairly significant challenge to do a 
great job with it. A company called transitapp had an interesting blog 
post about it a while ago. 
https://archive.transitapp.com/transit-maps-apple-vs-google-vs-us-cb3d7cd2c362#.e9kcryzg1


Hugh
___
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