[Qgis-user] Deploy Palette

Bruno Streit brunos at mailbox.org
Tue Feb 22 08:45:08 PST 2022


Hi

I'd like to deploy a custom color-palette on multiple windows computers. 
I copy a qgis_global_settings.ini in "C:\Program Files\QGIS 3.22.2\apps\qgis\resources\". If I create a new user profile, the settings are taken. The palette file I copy to "C:\Program Files\QGIS 3.22.2\apps\qgis\resources\palettes\extra-colors.gpl". But if I create a new user profile, this file is not copied to the new profile. This worked about a year ago. Any hints?

Thank you.
Bruno


> qgis-user-request at lists.osgeo.org hat am 21.02.2022 11:37 geschrieben:
> 
>  
> Send Qgis-user mailing list submissions to
> 	qgis-user at lists.osgeo.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://lists.osgeo.org/mailman/listinfo/qgis-user
> or, via email, send a message with subject or body 'help' to
> 	qgis-user-request at lists.osgeo.org
> 
> You can reach the person managing the list at
> 	qgis-user-owner at lists.osgeo.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Qgis-user digest..."
> 
> 
> Today's Topics:
> 
>    1. Re: Rounding off QgsPointXY (Brent Wood)
>    2. Re: linux box accessing project-files on a windows server
>       (Thomas Struller)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 21 Feb 2022 05:08:20 +0000
> From: Brent Wood <Brent.Wood at niwa.co.nz>
> To: Asim al-sofi <asim56 at gmail.com>, QGIS User List
> 	<qgis-user at lists.osgeo.org>
> Subject: Re: [Qgis-user] Rounding off QgsPointXY
> Message-ID:
> 	<SY4PR01MB7076FF61CF7E63F18A4FCF2DA13A9 at SY4PR01MB7076.ausprd01.prod.outlook.com>
> 	
> Content-Type: text/plain; charset="us-ascii"
> 
> I'd suggest managing your data in Postgis.
> 
> Adding a rounded geometry to your dataset becomes a pretty simple sql (assuming your data is lat/lon - just change the SRID if it isn't):
> 
> alter table mydata add column rounded_geom geometry(POINT,4326);
> update mydata set rounded_geom=ST_SetSRID(ST_MakePoint(round(ST_X(geom),2),round(ST_Y(geom),2)),4326);
> 
> line 1 creates the new column, line 2 populates it with new points with coords set to the rounded coords of the original. You still have the original to compare. Or you can drop it, as you prefer.
> 
> QGIS & Postgis make an incredibly effective suite. Postgis enables not just data management and query capability, but substantial spatial analytical power,
> QGIS provides visualisation, as well as additional analytical tools.
> 
> 
> Cheers
> 
> Brent Wood
> 
> Principal Technician, Fisheries
> NIWA
> DDI:  +64 (4) 3860529
> ________________________________
> From: Qgis-user <qgis-user-bounces at lists.osgeo.org> on behalf of Asim al-sofi <asim56 at gmail.com>
> Sent: Sunday, February 20, 2022 14:03
> To: QGIS User List <qgis-user at lists.osgeo.org>
> Subject: [Qgis-user] Rounding off QgsPointXY
> 
> Hi everyone
> I have a problem rounding off the QgsPointXY to say 3 decimals? How can I do that?
> If I use the numpy.round(point,decimals) then I get an np.array back as a type and not a QgsPointXY.
> Can someone help?
> Kind regards
> Asim
> [https://www.niwa.co.nz/static/niwa-2018-horizontal-180.png] <https://www.niwa.co.nz>
> Brent Wood
> Principal Technician - GIS and Spatial Data Management
> Programme Leader - Environmental Information Delivery
> +64-4-386-0529
> 
> National Institute of Water & Atmospheric Research Ltd (NIWA)
> 301 Evans Bay Parade Hataitai Wellington New Zealand
> Connect with NIWA: niwa.co.nz<https://www.niwa.co.nz> Facebook<https://www.facebook.com/nzniwa> LinkedIn<https://www.linkedin.com/company/niwa> Twitter<https://twitter.com/niwa_nz> Instagram<https://www.instagram.com/niwa_science>
> To ensure compliance with legal requirements and to maintain cyber security standards, NIWA's IT systems are subject to ongoing monitoring, activity logging and auditing. This monitoring and auditing service may be provided by third parties. Such third parties can access information transmitted to, processed by and stored on NIWA's IT systems
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20220221/06a75f4e/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 2
> Date: Mon, 21 Feb 2022 10:37:04 +0000
> From: Thomas Struller <thomas.struller at lga-geo.de>
> To: Nicolas Cadieux <njacadieux.gitlab at gmail.com>
> Cc: "qgis-user at lists.osgeo.org" <qgis-user at lists.osgeo.org>
> Subject: Re: [Qgis-user] linux box accessing project-files on a
> 	windows server
> Message-ID:
> 	<VI1PR04MB4976615138D932ED0AC2562DCA3A9 at VI1PR04MB4976.eurprd04.prod.outlook.com>
> 	
> Content-Type: text/plain; charset="utf-8"
> 
> Hallo Nicolas,
> 
> thank you for your reply. All my project files are on one network drive and I prefer to use geopackages. Perhaps it the problem is, that I install qigs from flathub. I?m wondering about that I am the only one who uses qgis on linux and want?s to access project-files on a windows file server.
> 
> 
> Mit freundlichen Gr??en
> 
> 
> Thomas Struller
> Diplom Geologe (Univ.), BDG, V18
> 
> Sachverst?ndiger nach BBodSchG ?18,
> SG1 Historische Recherche
> SG2 Pfad Boden ? Gew?sser
> Akademischer Geoinformatiker
> 
> 
> 
> 
> Tel:       0049 911 12076 111
> Mobil:   0049 170 33 20 494
> Mail:     thomas.struller at LGA-geo.de<mailto:thomas.struller at LGA-geo.de>
> 
> 
> [cid:image003.png at 01D82717.5804A4A0]LGA Institut f?r Umweltgeologie und Altlasten GmbH
> Christian-Hessel-Stra?e 1
> 90427 N?rnberg
> info at LGA-geo.de<mailto:info at LGA-geo.de>
> www.LGA-geo.de<http://www.lga-geo.de/>
> 
> [cid:image002.jpg at 01D82717.5800FB20]
> 
> 
> Von: Nicolas Cadieux <njacadieux.gitlab at gmail.com>
> Gesendet: Montag, 21. Februar 2022 02:13
> An: Thomas Struller <thomas.struller at lga-geo.de>
> Cc: qgis-user at lists.osgeo.org
> Betreff: Re: [Qgis-user] linux box accessing project-files on a windows server
> 
> Hi,
> 
> My guess is that the files you are using are, perhaps, in different drives. If you save with a relative path, I think it will work if you have files in a simple directory structure but if you have files from multiple drives, then perhaps QGIS is forced to uses a drive lettre like  c:\ and that would not go well on a Linux box.
> 
> Just a guess
> Nicolas Cadieux
> https://gitlab.com/njacadieux<https://eu-central-1.protection.sophos.com?d=gitlab.com&u=aHR0cHM6Ly9naXRsYWIuY29tL25qYWNhZGlldXg=&i=NWJmNDNkYTViNDcwM2ExMzMzYzBjODA3&t=STh2Z2tMbmpBYzZGaGFSM2Q4Z1FhSnF6ZFNnRHorTWV6b3VMdXJuZEZVYz0=&h=8d52b2a8b010478e8afd64054f761bba>
> 
> 
> Le 19 f?vr. 2022 ? 06:15, Thomas Struller <thomas.struller at lga-geo.de<mailto:thomas.struller at lga-geo.de>> a ?crit :
> ? Hallo list,
> 
> sometimes I use a linux mint box with qgis 3.22.3. I have to access
> qgis project files over vpn on a windows-fileserver.
> 
> The problem, I can't open these projects. In Qgis (linux-box) i can
> browse to the directory on the windows-fileserver with the qgis-project
> file, but qgis opens a window that shows not available layers. In fact
> no layer of my projet is available.  On my windows box I stored the
> project files with relativ project-path and in qgz format.
> 
> What do I not see or what I'm doing wrong?
> 
> 
> --
> Mit freundlichen Gr??en
> 
> 
> Thomas Struller
> Diplom Geologe (Univ.), BDG, V18
> 
> Sachverst?ndiger nach BBodSchG ?18,
> SG1 Historische Recherche
> SG2 Pfad Boden ? Gew?sser
> Akademischer Geoinformatiker
> 
> 
> Tel:    0049 911 12076 111
> Mobil:  0049 170 33 20 494
> Mail:   thomas.struller at LGA-geo.de<mailto:thomas.struller at LGA-geo.de>
> 
> LGA Institut f?r Umweltgeologie und Altlasten GmbH
> Christian-Hessel-Stra?e 1
> 90427 N?rnberg
> 
> 
> info at LGA-geo.de<mailto:info at LGA-geo.de>
> www.LGA-geo.de<https://eu-central-1.protection.sophos.com?d=lga-geo.de&u=d3d3LkxHQS1nZW8uZGU=&i=NWJmNDNkYTViNDcwM2ExMzMzYzBjODA3&t=dE1UWGhIdXR0WnZkdGFzc0UzRC9xbEJUOHdWRUxLbVROYzFyQU4vYVZxTT0=&h=8d52b2a8b010478e8afd64054f761bba>
> 
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org<mailto:Qgis-user at lists.osgeo.org>
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user<https://eu-central-1.protection.sophos.com?d=osgeo.org&u=aHR0cHM6Ly9saXN0cy5vc2dlby5vcmcvbWFpbG1hbi9saXN0aW5mby9xZ2lzLXVzZXI=&i=NWJmNDNkYTViNDcwM2ExMzMzYzBjODA3&t=ZUNtT2tIdmZxUFJBNjl6em5KanVjN3dOQ0IyelRWTGJUSkd1aW83amdGbz0=&h=8d52b2a8b010478e8afd64054f761bba>
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user<https://eu-central-1.protection.sophos.com?d=osgeo.org&u=aHR0cHM6Ly9saXN0cy5vc2dlby5vcmcvbWFpbG1hbi9saXN0aW5mby9xZ2lzLXVzZXI=&i=NWJmNDNkYTViNDcwM2ExMzMzYzBjODA3&t=ZUNtT2tIdmZxUFJBNjl6em5KanVjN3dOQ0IyelRWTGJUSkd1aW83amdGbz0=&h=8d52b2a8b010478e8afd64054f761bba>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20220221/931adb91/attachment.html>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: image002.jpg
> Type: image/jpeg
> Size: 14271 bytes
> Desc: image002.jpg
> URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20220221/931adb91/attachment.jpg>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: image003.png
> Type: image/png
> Size: 184 bytes
> Desc: image003.png
> URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20220221/931adb91/attachment.png>
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 
> 
> ------------------------------
> 
> End of Qgis-user Digest, Vol 192, Issue 35
> ******************************************


More information about the Qgis-user mailing list