[QGIS-Developer] Revolt Chat Community Server

2022-10-28 Thread Ethan Snyder via QGIS-Developer
Greetings Devs!

For those who aren't aware, Tim Sutton and I created a new community 
site with Revolt.

Revolt is a FOSS alternative to Discord that has many of the features 
of Discord (for those who know about Discord), but without the not-so-friendly 
TOS.
Some features are missing, but are planned as Revolt is in very active 
development (such as the overhauled .

I gave a presentation on a QGIS Open Day session regarding the new 
community site (https://www.youtube.com/watch?v=nrvTnkGNzSw)

A big reason for creating this, was to help centralize and organize the 
community. A key feature is being able to have multiple rooms (channels) for 
various topics all under one single roof. Need a new room for some major thing 
without clogging up the main dev channel (such as Qt 6 work)? Need a room for 
discussing the new QGIS website aside from comments on Figma (already suggested 
to Anita)? Creating separate rooms for these discussions is very easy (takes a 
few seconds), and helps organize things, and increases community involvement 
and feedback.

I have setup already, a couple of development rooms: core development, 
plugin development, translations, documentation, and a general chat for 
hackfests (Carlos, Amy, Raymond, and Tim already posted tons of photos from the 
hackfest in Firenze).

Right now, the server isn't very active. But, I believe that with 
enough key/core members using it, it will gain traction as we use it. There are 
already numerous people signed up for this server.

I recommend checking it out, there are desktop apps, mobile apps, and a 
Web App available (plus with being FOSS, custom apps are completely allowed, 
unlike Discord).
Please feel free to provide feedback. A couple of people have already 
made suggestions; and things have been rearranged, and changed since it's 
initial setup and launch, so nothing is set in stone.

To create an account: https://.revolt.chat
To join the QGIS server: https://rvlt.gg/eRTmS1ZV

Let me know if you have any questions. We made this for the QGIS 
community, as we believe this is a great platform for such a large and active 
community and would like to see it used.

Thanks,

Ethan Snyder
DISCLAIMER: This message and any documents attached may contain confidential 
information and are intended only for the individual(s) named. If you are not 
the intended recipient, or the employee or agent authorized to received for the 
intended recipient, you should not disseminate, distribute or copy this e-mail 
and any attached documents. If you have received this e-mail in error, please 
immediately notify the sender at Remington & Vernick Engineers by replying to 
this e-mail and delete the original e-mail and any reply e-mail messages from 
your system. E-mail transmission cannot be guaranteed to be secure or 
error-free as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses. The sender therefore does not 
accept liability for any errors or omissions in the contents of this message, 
which arise as a result of e-mail transmission. If verification is required 
please request a hard-copy version. Thank you.
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] [Qgis-community-team] Planning with github build actions? Should I stop the cronjob?

2022-10-28 Thread Tim Sutton via QGIS-Developer
Hi Richard 


No please keep the cron going . I would like to run the two in parallel for a 
while to ensure everything works. At the moment we ran out of disk space on the 
new server so I would also like to mount some external storage.

Regards 

—
Tim Sutton
Kartoza co-founder
Open Source GIS Specialist
https://kartoza.com


> On 28 Oct 2022, at 08:57, Richard Duivenvoorde  wrote:
> 
> Hi People,
> 
> Looking that the github actions running after a commit to QGIS-Website repo, 
> part of the actions is also to rsync/scp(?) it to a server.
> 
> What is the idea here? Because I'm also running a build cron task on qgis5 
> (starting at 00:00 see bottom english qgis.org)...
> 
> Should I remove the job, so we can better see if the action is succesfull or 
> not?
> 
> Or is the action only a trial, to be see IF it would work?
> Or to work with the new site?
> 
> Regards,
> 
> Richard Duivenvoorde
> 
> ___
> Qgis-community-team mailing list for organizing community resources such as 
> documentation, translation etc..
> qgis-community-t...@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-community-team
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] segmentation fault in standalone script using PyQGIS

2022-10-28 Thread Mélanie Dol via QGIS-Developer

Hi Jacky,

Yes of course. Please find attached my script.

Regards,

Mélanie

On 10/28/22 4:55 PM, Jacky Volpes via QGIS-Developer wrote:

Hi Mélanie,

Have you initialized your standalone script as shown in 
https://docs.qgis.org/3.22/en/docs/pyqgis_developer_cookbook/intro.html#using-pyqgis-in-standalone-scripts 
?


Best regards,
Jacky


Le 28/10/2022 à 16:40, Mélanie Dol via QGIS-Developer a écrit :

Hi Andrea,

Thank you. I've updated with QGIS 3.26 Buenos Aires. The warning 
message have disappeared. Unfortunately, the script still generates a 
segmentation fault.


Best regards,

Mélanie Dol

On 10/28/22 11:47 AM, Andrea Giudiceandrea via QGIS-Developer wrote:

Il 27/10/2022 16:34, Mélanie Dol via QGIS-Developer ha scritto:
/usr/share/qgis/python/plugins/processing/algs/grass7/Grass7Utils.py:191: 
SyntaxWarning: "is" with a literal. Did you mean "=="?

  if path is '':


Hi Mélanie,
while I don't know why that script generates a segmentation fault, 
It seems you are using QGIS 3.10 which is a three years old version. 
The QGIS repository for Ubuntu 20.04 currently offers the latest 
available QGIS LTR 3.22.12.


Best regards.

Andrea Giudiceandrea

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info:https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-developer



___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info:https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-developer


--
Jacky Volpes

Ingénieur SIG - Oslandia

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


import sys
import qgis
from qgis.core import *
from osgeo import ogr
import PyQt5.QtCore
from PyQt5.QtGui import *
from qgis.analysis import QgsNativeAlgorithms

# Supply path to qgis install location
QgsApplication.setPrefixPath("/usr", True)

# Create a reference to the QgsApplication.  Setting the
# second argument to False disables the GUI.
qgs = QgsApplication([], False)

# Load providers
qgs.initQgis()

# Append the path where processing plugin can be found
sys.path.append('/usr/share/qgis/python/plugins')
import processing
from processing.core.Processing import Processing
Processing.initialize()
#QgsApplication.processingRegistry().addProvider(QgsNativeAlgorithms())


Geopackage_Databasepath = "/home/Satoz/SATOCEAN_ANALYSIS_N20221019_F20221019.gpkg"

# __
# PRESSURE ISOBARS LAYER

print('1. Pressure Isobars Layer')

Layer_Pressure_Isobars =  QgsVectorLayer(Geopackage_Databasepath+ "|layername=SATOCEAN_PRESSURE_ISOBARS" , 'SATOCEAN_PRESSURE_ISOBARS', 'ogr')
#Layer_Pressure_Isobars =  iface.addVectorLayer(Geopackage_Databasepath+ "|layername=SATOCEAN_PRESSURE_ISOBARS" , 'SATOCEAN_PRESSURE_ISOBARS', 'ogr')

# Initialize the default symbol for this geometry type
symbol = QgsSymbol.defaultSymbol(Layer_Pressure_Isobars.geometryType())

# Get style
get_styles = QgsStyle.defaultStyle()
style_layer = get_styles.symbol('Pressure_Isobars')

# Apply Style
Layer_Pressure_Isobars.renderer().setSymbol(style_layer)
Layer_Pressure_Isobars.triggerRepaint()

# Label
layer_settings  = QgsPalLayerSettings()
text_format = QgsTextFormat()

myFont = QFont("Arial",20,QFont.Bold)
myFont.setUnderline(True)
text_format.setFont(myFont)
text_format.setSize(20)
text_format.setColor(QColor("#4c66ff"))

layer_settings.setFormat(text_format)

layer_settings.fieldName = "Pressure"
layer_settings.LabelPlacement = 4

layer_settings.enabled = True

layer_settings = QgsVectorLayerSimpleLabeling(layer_settings)
Layer_Pressure_Isobars.setLabelsEnabled(True)
Layer_Pressure_Isobars.setLabeling(layer_settings)
Layer_Pressure_Isobars.triggerRepaint()


# __
# FRONTS LAYER

print('2. Fronts Layer')

Layer_Fronts = QgsVectorLayer(Geopackage_Databasepath+ "|layername=SATOCEAN_FRONTS" , 'SATOCEAN_FRONTS', 'ogr')
#Layer_Fronts = iface.addVectorLayer(Geopackage_Databasepath+ "|layername=SATOCEAN_FRONTS" , 'SATOCEAN_FRONTS', 'ogr')

# Get unique values
I_FieldName = Layer_Fronts.fields().indexFromName('Front_Type')
Categories_Fronts = Layer_Fronts.uniqueValues(I_FieldName)

# Fill categories
categories = []
for Category in Categories_Fronts:
# Initialize the default symbol for this geometry type
symbol = QgsSymbol.defaultSymbol(Layer_Fronts.geometryType())

# Get style
get_styles = QgsStyle.defaultStyle()

if "STATIONARY" in Category:
style_layer = get_styles.symbol('Stationary_Front')
elif "TROF" in Category:
style_layer = get_styles.symbol('Trof_Front')
elif "WARM" in Category:
style_layer 

Re: [QGIS-Developer] segmentation fault in standalone script using PyQGIS

2022-10-28 Thread Jacky Volpes via QGIS-Developer

Hi Mélanie,

Have you initialized your standalone script as shown in 
https://docs.qgis.org/3.22/en/docs/pyqgis_developer_cookbook/intro.html#using-pyqgis-in-standalone-scripts 
?


Best regards,
Jacky


Le 28/10/2022 à 16:40, Mélanie Dol via QGIS-Developer a écrit :

Hi Andrea,

Thank you. I've updated with QGIS 3.26 Buenos Aires. The warning 
message have disappeared. Unfortunately, the script still generates a 
segmentation fault.


Best regards,

Mélanie Dol

On 10/28/22 11:47 AM, Andrea Giudiceandrea via QGIS-Developer wrote:

Il 27/10/2022 16:34, Mélanie Dol via QGIS-Developer ha scritto:
/usr/share/qgis/python/plugins/processing/algs/grass7/Grass7Utils.py:191: 
SyntaxWarning: "is" with a literal. Did you mean "=="?

  if path is '':


Hi Mélanie,
while I don't know why that script generates a segmentation fault, It 
seems you are using QGIS 3.10 which is a three years old version. The 
QGIS repository for Ubuntu 20.04 currently offers the latest 
available QGIS LTR 3.22.12.


Best regards.

Andrea Giudiceandrea

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info:https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-developer



___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info:https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-developer


--
Jacky Volpes

Ingénieur SIG - Oslandia
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] segmentation fault in standalone script using PyQGIS

2022-10-28 Thread Mélanie Dol via QGIS-Developer

Hi Andrea,

Thank you. I've updated with QGIS 3.26 Buenos Aires. The warning message 
have disappeared. Unfortunately, the script still generates a 
segmentation fault.


Best regards,

Mélanie Dol

On 10/28/22 11:47 AM, Andrea Giudiceandrea via QGIS-Developer wrote:

Il 27/10/2022 16:34, Mélanie Dol via QGIS-Developer ha scritto:
/usr/share/qgis/python/plugins/processing/algs/grass7/Grass7Utils.py:191: 
SyntaxWarning: "is" with a literal. Did you mean "=="?

  if path is '':


Hi Mélanie,
while I don't know why that script generates a segmentation fault, It 
seems you are using QGIS 3.10 which is a three years old version. The 
QGIS repository for Ubuntu 20.04 currently offers the latest available 
QGIS LTR 3.22.12.


Best regards.

Andrea Giudiceandrea

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


[QGIS-Developer] Issue when using subprocess in the Processing toolbox

2022-10-28 Thread Fredrik Lindberg via QGIS-Developer
Hello,
I am one of the maintainers of the Plugin (FUSION for Processing) that makes is 
possible to use FUSION LVD LIDAR analysis and visualization software in QGIS on 
Windows computers. I am experiencing a very strange issue that I do not 
understand. It appears using PolyClipData64.exe via a the subprocess Python 
library.

With the test data I use I can run the tool via a command prompt using the 
command below:

"C:/FUSION\PolyClipData64.exe" /class:1 
"D:\LidarQGISFUSION\FastighetskartanVektor_1501_3006\by_get.shp" 
"D:/LidarQGISFUSION/tempfromscript/test.las" 
"D:\LidarQGISFUSION\tempfromscript\clippedLidar.las"

Then I make use of the function Popen in subprocess in the Python console in 
QGIS without error:
fused_command = '"C:/FUSION\PolyClipData64.exe" "/class:1" 
"D:/LidarQGISFUSION/FastighetskartanVektor_1501_3006/by_get.shp" 
"D:/LidarQGISFUSION/tempfromscript/test11.las" 
"D:/LidarQGISFUSION/tempfromscript/clippedLidar.las"'

subprocess.Popen(fused_command,shell=True,stdout=subprocess.PIPE, 
stdin=subprocess.DEVNULL,stderr=subprocess.STDOUT,universal_newlines=True)

But when I use the same code snippet in my processing plugin it fails.

Does anyone have an idea what might be going on here?

Any suggestion highly appreciated!

/Fredrik
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] segmentation fault in standalone script using PyQGIS

2022-10-28 Thread Andrea Giudiceandrea via QGIS-Developer

Il 27/10/2022 16:34, Mélanie Dol via QGIS-Developer ha scritto:
/usr/share/qgis/python/plugins/processing/algs/grass7/Grass7Utils.py:191: 
SyntaxWarning: "is" with a literal. Did you mean "=="?

  if path is '':


Hi Mélanie,
while I don't know why that script generates a segmentation fault, It 
seems you are using QGIS 3.10 which is a three years old version. The 
QGIS repository for Ubuntu 20.04 currently offers the latest available 
QGIS LTR 3.22.12.


Best regards.

Andrea Giudiceandrea___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


[QGIS-Developer] Planning with github build actions? Should I stop the cronjob?

2022-10-28 Thread Richard Duivenvoorde via QGIS-Developer

Hi People,

Looking that the github actions running after a commit to QGIS-Website repo, 
part of the actions is also to rsync/scp(?) it to a server.

What is the idea here? Because I'm also running a build cron task on qgis5 
(starting at 00:00 see bottom english qgis.org)...

Should I remove the job, so we can better see if the action is succesfull or 
not?

Or is the action only a trial, to be see IF it would work?
Or to work with the new site?

Regards,

Richard Duivenvoorde

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


[QGIS-Developer] Broken coordinate/distance/area calculation tests

2022-10-28 Thread Harrissou s. via QGIS-Developer
Hi,
I am wondering if the method for area/distance calculation has changed again in 
master or if the issue is in some transformation accuracy changes.

In QGIS docs, we are getting failing tests for calculation we did not touch the 
underlying data for years.
See starting from 
https://github.com/qgis/QGIS-Documentation/actions/runs/3339628288/jobs/5530428647#step:6:703

Regards,
Harrissou
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer