Re: [Qgis-user] Snapping tools really slow

2021-01-21 Per discussione Julien Cabieces


Hi,

I made quick tests with some dataset and I failed to see any performance
issues.

Could you create an issue with some data sample and project?

Is it the index building that take a long time (there is a progress bar
displayed at the bottom of the map close to the mouse coordinate information
while index is currently building) or is it when you move your cursor on the 
map that the
snaping information takes time to appear. Or is it when you pan the map?

You can enable snapping for specific range of scale, avoiding building
index at very large scale where snapping is useless.

Regards,
Julien



> Hi,
>
> I've been using version 3.10 and 3.16 and I notice that enabling snapping is 
> extremely slow and oddly significantly slower on 3.16 than 3.10. We thought 
> it might be downloading the dataset on screen but discovered the data is back 
> from the database within seconds and the delay is because QGIS is building an 
> index.
>
> Why is it so inefficient and is there anything that can be done to get better 
> performance?
>
> It is really slow and we are trying to transfer users from MapInfo / ESRI so 
> they will not like the performance at the moment.
>
> To be clear the data has a primary key, spatial indices and all is of good 
> quality. As I say the data downloads and displays within seconds on the map; 
> is it because I've selected snapping to segment as well as vertex?
>
> Thanks,
>
> Paul Wittle
> [cid:image001.jpg@01D6F016.C23D1CA0]
> Business Solutions Analyst (GIS)
> ICT Operations
> Dorset Council
> 01305 228473 
> 
> dorsetcouncil.gov.uk
>
> [cid:image002.png@01D6F016.C23D1CA0]
> [cid:image003.png@01D6F016.C23D1CA0]
> [cid:image004.png@01D6F016.C23D1CA0]
>
> This e-mail and any files transmitted with it are intended solely for the use 
> of the individual or entity to whom they are addressed. It may contain 
> unclassified but sensitive or protectively marked material and should be 
> handled accordingly. Unless you are the named addressee (or authorised to 
> receive it for the addressee) you may not copy or use it, or disclose it to 
> anyone else. If you have received this transmission in error please notify 
> the sender immediately. All traffic may be subject to recording and/or 
> monitoring in accordance with relevant legislation. Any views expressed in 
> this message are those of the individual sender, except where the sender 
> specifies and with authority, states them to be the views of Dorset Council. 
> Dorset Council does not accept service of documents by fax or other 
> electronic means. Virus checking: Whilst all reasonable steps have been taken 
> to ensure that this electronic communication and its attachments whether 
> encoded, encrypted or otherwise su
 pplied are free from computer viruses, Dorset Council accepts no liability in 
respect of any loss, cost, damage or expense suffered as a result of accessing 
this message or any of its attachments. For information on how Dorset Council 
processes your information, please see www.dorsetcouncil.gov.uk/416433
> ___
> 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] saving all temporary layers?

2021-01-21 Per discussione Michael Dufty
Not exactly what you are asking for, so it may not suit, but I find the “memory 
layer saver” plugin invaluable.
When using this memory layers are not lost when you close QGIS

The plugin description says
“Makes layers with memory data providers persistent
so that they are restored when a project is closed and reopened.
The memory provider data is saved in a portable binary format (QDataStream)
that is saved with extension .mldata alongside the project file.”

I’m not sure if the .mldata file is useful as an export format.

It also does not seem to work with temporary raster files.

You can drag and drop memory layers from one QGIS instance to another (at least 
in 3.16).  They will then persist separately in both QGIS files if you have the 
memory layer saver plugin installed.

Michael Dufty

From: Qgis-user  On Behalf Of David Strip
Sent: Friday, 22 January 2021 2:42 AM
To: qgis-user 
Subject: [Qgis-user] saving all temporary layers?

Before I write my own, does anyone have a script to share (processing or 
otherwise) that saves all temporary layers in a project, preferably to a 
geopackage?
Thanks
David
___
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] saving all temporary layers?

2021-01-21 Per discussione Stefan Giese (WhereGroup)

Hi David,

you should have a look to this one:

https://gis.stackexchange.com/a/323288/87346

the lower part of the script starting from /#write this layers into 
geoPackage/ will do the job.


Am 21.01.2021 um 19:41 schrieb David Strip:
Before I write my own, does anyone have a script to share (processing 
or otherwise) that saves all temporary layers in a project, preferably 
to a geopackage?

Thanks
David

___
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
--
Aufwind durch Wissen!
Jetzt neu: Webinare und Online-Schulungen
bei der www.foss-academy.com
--

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



OpenPGP_signature
Description: OpenPGP digital signature
___
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] saving all temporary layers?

2021-01-21 Per discussione David Strip

  
  
Before I write my own, does anyone have a script to share
(processing or otherwise) that saves all temporary layers in a
project, preferably to a geopackage?
Thanks
David
  

___
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] Snapping tools really slow

2021-01-21 Per discussione Paul Wittle
Hi,

I've been using version 3.10 and 3.16 and I notice that enabling snapping is 
extremely slow and oddly significantly slower on 3.16 than 3.10. We thought it 
might be downloading the dataset on screen but discovered the data is back from 
the database within seconds and the delay is because QGIS is building an index.

Why is it so inefficient and is there anything that can be done to get better 
performance?

It is really slow and we are trying to transfer users from MapInfo / ESRI so 
they will not like the performance at the moment.

To be clear the data has a primary key, spatial indices and all is of good 
quality. As I say the data downloads and displays within seconds on the map; is 
it because I've selected snapping to segment as well as vertex?

Thanks,

Paul Wittle
[cid:image001.jpg@01D6F016.C23D1CA0]
Business Solutions Analyst (GIS)
ICT Operations
Dorset Council
01305 228473 

dorsetcouncil.gov.uk

[cid:image002.png@01D6F016.C23D1CA0]
[cid:image003.png@01D6F016.C23D1CA0]
[cid:image004.png@01D6F016.C23D1CA0]

This e-mail and any files transmitted with it are intended solely for the use 
of the individual or entity to whom they are addressed. It may contain 
unclassified but sensitive or protectively marked material and should be 
handled accordingly. Unless you are the named addressee (or authorised to 
receive it for the addressee) you may not copy or use it, or disclose it to 
anyone else. If you have received this transmission in error please notify the 
sender immediately. All traffic may be subject to recording and/or monitoring 
in accordance with relevant legislation. Any views expressed in this message 
are those of the individual sender, except where the sender specifies and with 
authority, states them to be the views of Dorset Council. Dorset Council does 
not accept service of documents by fax or other electronic means. Virus 
checking: Whilst all reasonable steps have been taken to ensure that this 
electronic communication and its attachments whether encoded, encrypted or 
otherwise supplied are free from computer viruses, Dorset Council accepts no 
liability in respect of any loss, cost, damage or expense suffered as a result 
of accessing this message or any of its attachments. For information on how 
Dorset Council processes your information, please see 
www.dorsetcouncil.gov.uk/416433
___
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] Using color_rgba for symbols from field-value

2021-01-21 Per discussione Bernd Vogelgesang

Ah, found the problem.

Due to some other issues I did not realize, that the colours where
indeed taken from my rgb-field.
I only stared at the legend of the categorized layer, and there the
colours are still random.
Found no way to get the categories to adjust to the colours automaticly,
so it seems that I will have to do that manually again, which is a bit
 when all the rest is data-driven.

Am 20.01.21 um 19:03 schrieb Bernd Vogelgesang:

Hi Richard,

thanx for having a look. First I overlooked this option (gnrr ..), but
then, it did not work :(

My layer is a  point layer of bat species found in batboxes. To this
layer, I join a reference list via the species abbreviation to get the
latin name and the colour.

When I now use this layer to categorize the points by species and set
my rgba-field for the symbol colour, there are still random colours
applied to the categories.

Bug, feature or misinterprestation of the workflow?

Bernd

Am 20.01.21 um 18:53 schrieb Richard McDonnell:

Hi Bernd,

I have tested a little polygon dataset, adding a rgba field (as a
text string) and found that QGIS will actually use the Field type:
string option to apply the colour. Just select your rgba attribute
and it works fine.

hope that helps.

Reagrds,

Richard





--
Richard McDonnell MSc GIS, FME Certified Professional
FRM Data Management

--
Oifig na nOibreacha Poibl?
Office of Public Works

Sr?id Jonathan Swift, Baile ?tha Troim, Co na M?, C15 NX36
Jonathan Swift Street, Trim, Co Meath, C15 NX36
--
M +353 87 688 5964 T +353 1 647 6543
https://gov.ie/opw

--
To send me files larger than 30MB, please use the link below
https://filetransfer.opw.ie/filedrop/richard.mcdonn...@opw.ie

Email Disclaimer:
https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/

-Original Message-
From: Qgis-user  On Behalf Of
Bernd Vogelgesang
Sent: 20 January 2021 17:32
To: qgis-user 
Subject: [Qgis-user] Using color_rgba for symbols from field-value



Hi,



I would like to hard-wire the colours for categories with their
rgba-values in a field.



I have a text field named "rgba" and am searching for a way to make
this color_rgba-function working.

e.g '146,208,80,255'

It's obvious that my colour-values are an array of strings, which
need to be somehow converted to integers to be eaten by the color_rgba.



So in theory, the string '146,208,80,255' has to become an array,
probably by array("rgba"). But this array is an array of strings and
not of integers.

Does anyone know how to achive this array of integers, so the

color_rgba(somemagic("rgba") returns my colour?



Cheers,



Bernd



___

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


Email Disclaimer: https://www.opw.ie/en/disclaimer/


___
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] New QGIS Date/Time Tools Plugin

2021-01-21 Per discussione C Hamilton
I would like to invite you to take a look at a new QGIS plugin that I have
titled "Date/Time Tools". Currently it only has one capability to display
date, time, and timezone information with conversions between UNIX time
(Epoch), Julian dates, and ISO8601 date/time formats. It can calculate the
difference between two dates and if provided with a coordinate it will
display sun information such as dawn, sunrise, noon, sunset, dusk as well
as the azimuth of the sun and its elevation from the given location. Here
is the release download datetimetools-3.0.0. You will need to manually
install it.

https://github.com/NationalSecurityAgency/qgis-datetimetools-plugin/releases/tag/3.0.0

Here is some documentation:

https://github.com/NationalSecurityAgency/qgis-datetimetools-plugin#readme

I apologize up front to those of you who think external libraries should
not be embedded in a plugin, but for my users, if the plugin is not self
contained they may not take the extra step to install the necessary
libraries and the plugin might not be used. Also this is a very big plugin
because it includes the timezonefinder python library which is about 42Mb.
The library adds the ability to specify a coordinate and return a time zone
and there is really no way to reduce the size unless you also reduce the
accuracy.

For those who use the OSGeo4W installer you may need to include the scipy
library. The standalone installers already have it by default.

I would enjoy any suggestions or feedback. Also for the QGIS team, can a
plugin this large be included into the plugin repo?

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


Re: [Qgis-user] GTiff compression issues

2021-01-21 Per discussione Sebastian Gutwein
Not my area of expertise but my first suspect would be the alpha channel
(the A in RGBA or transparency). JPEG doesn’t support an alpha channel. You
might try png or jpeg 2000 as an alternative.


On Thu, Jan 21, 2021 at 2:12 AM Yury  wrote:

> Hi,
>
> I am using QGIS to try and compress hi-res drone imagery.  I am using GDAL
> tools, such as 'Clip Raster by Extent' .  In the command line parameters I
> am adding the following:
>
> -co COMPRESS=JPEG -co TILED=YES --config GDAL_TIFF_INTERNAL_MASK YES.
>
> The original image is RGBA.
>
> Compression is significant (which is what I need) and visually there is
> not much of a difference.  However, when zooming further in (1:200), I
> noticed that some raster cells have turned white.  When inspecting, it
> appears that the compression is changing the data of one or more of the
> bands to nodata.  How can this be resolved?
>
> I am using QGIS 3.10.8
>
> Thanks
>
> Yury Zammit
> ___
> 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
>
-- 
Sent from a phone. Amazing! But possibly garbled. Sebastian Gutwein
Regenerative Design Group 1 Chevalier Ave Greenfield MA b...@rdgland.com
(631) 241-1018
___
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-it-user] Help - Scorciatoia da tastiera

2021-01-21 Per discussione Stefano Campus
ecco qualche link sulle scorciatoie da tastiera
1) https://defkey.com/qgis-3-shortcuts
2) https://north-road.com/qgis-3-0-shortcuts/
3) https://t.me/c/1176908051/4994 (QGIS Shortcuts.csv)

s.





--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] Nel repository di QGIS hanno aperto discussions

2021-01-21 Per discussione Stefano Campus
ciao è un errore che ogni tanto avviene ed è una "interferenza" con il core
di qgis che poi però non produce nessun danno. il plugin qproto si disattiva
e si deve riattivare.
non è un errore ripetibile ed avviene ogni tanto.
con matteo ghetta, sviluppatore del plugin, abbiamo cercato di capire il
motivo, ma sembra più legato a qgis, diciamo, che al plugin.
in ogni caso, non ho mai rilevato ripercussioni su altri moduli di qgis,
dopo che si è presentato.
hai verificato che non sia un problema di configurazione dei parametri di
aggancio?
s.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


[Qgis-user] Failure to open .laz file in QGIS

2021-01-21 Per discussione MikeNepal
Hello,

Not sure if this is the right way or place to ask help for this specific
problem, but can't solve the issue why I fail to open a .laz-file which I
have downloaded from National land survey agency. I am using QGIS 3.16 on
Windows and have activated LAStools plugin. When trying to open the .laz on
Processing tools --> lastools --> fileview I get the following result:

{ 'ADDITIONAL_OPTIONS' : '', 'COLORING' : 0, 'GUI' : False, 'INPUT_LASLAZ' :
'C:\\M4311C3.laz', 'POINTS' : 500, 'SIZE' : 0, 'VERBOSE' : False }

LAStools command line
C:\LAStools\bin\lasview -i "C:\M4311C3.laz" -points 500
LAStools console output
Traceback (most recent call last):
File "C:/Users/Mikko
Niipala/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LAStools\LAStools\lasview.py",
line 67, in processAlgorithm
LAStoolsUtils.runLAStools(commands, feedback)
File "C:/Users/Mikko
Niipala/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LAStools\LAStoolsUtils.py",
line 61, in runLAStools
feedback.pushConsoleInfo(output.decode("utf-8"))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x84 in position 1:
invalid start byte





--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
___
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