I have the need to launch QGIS from a python file due to some other checks I
need to setup before it is running. I convert this python file to an exe but
Windows Defender flags it as a virus. The exe is created from a batch (.cmd)
file with the following calls:
call "QGISenv.bat"
call "python
I had a user that may have hit the "Upgrade All" button in the plugins window.
Does that automatically upgrade all installed plugins to the newest version? If
so is there a way to revert back to the previous versions. He may have just hit
the Upgrade Plugin button for the specific plugin. Not s
Install from Zip
One possible way to disable the Upgrade All or Upgrade Plugin is to disable all
the plugin repositories (i.e. Plugins -> Settings -> disable all repositories).
Hope this helps.
On Wed, Jan 11, 2023 at 9:49 AM Catania, Luke A ERDC-RDE-GRL-VA CIV via
QGIS-Developer
mailto:qgis
Subject: Re: [QGIS-Developer] Revert Previous Plugin, disable "Upgrade All" and
"Upgrade Plugin" buttons
On Wed, 11 Jan 2023 at 12:49, Catania, Luke A ERDC-RDE-GRL-VA CIV via
QGIS-Developer
mailto:qgis-developer@lists.osgeo.org>> wrote:
>
> I had a user th
I have written code that automatically creates an empty QgsVectorLayer, adds it
to the layer panel; I add a call to
vlayer.featureAdded.connect(self.check_size) on the created layer that starts
an edit session as well as checks that my polygon is within a min and max size.
The user can then us
Trying to show the selected tab in another color. The way it works now, there
is no indication the tab is selected other than that different text shows up.
I found one site that mentions using QTabBar::tab:selected, but have not been
ale to get it to work.
[cid:image002.png@01D960BD.C7FBBE7
-GRL-VA CIV via QGIS-Developer
Sent: Friday, March 17, 2023 7:44 PM
To: qgis-developer@lists.osgeo.org
Subject: [QGIS-Developer] Create layer, start edit session, commit and end edit
session does not get me completely out of edit session and get my pan cursor
back
I have written code that
My cursor displays as bullseye until I left click on the mouse. I called
iface.actionPan().trigger()
but it is only working when I initiate a left click.
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.os
Trying to get a map canvas event when canvas is clicked and mouse is dragged.
I have code that creates an empty layer, but I use the QGIS edit menu to add
the actually layer. I want to be able to track the mouse movement so I can
calculated the area of the feature being drawn in real time so I
overridden. So looks like I need a different approach to get xy from the map
canvas.
From: QGIS-Developer On Behalf Of
Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer
Sent: Wednesday, April 5, 2023 11:27 AM
To: qgis-developer@lists.osgeo.org
Subject: [QGIS-Developer] Detect a Map Canvas Mouse
Looking for something like
canvas.xyCoordinates.connect( self.canvasMoveEvent )
but that's from a 7 year old post so looks like xyCoordinates is not in QGIS 3.x
From: QGIS-Developer On Behalf Of
Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer
Sent: Wednesday, April 5, 2023 11:53
I wrote a custom function that accesses the area of the feature and adjusts the
label accordingly. After I clicked on Save and Load Function I see my
functions category and the functions and can use them in the expression tab,
but when I close QGIS and start it again, the function is not autom
I have an event filter on the map canvas that performs a commit during feature
editing when right clicking on the canvas. While this performs the commit, it
then pops up Copy Coordinates. I don't want the user to see this. I want my
mouse click event to be recognized and not have QGIS use it
Copy Coordinates
On Thu, 13 Apr 2023 at 10:47, Catania, Luke A ERDC-RDE-GRL-VA CIV via
QGIS-Developer wrote:
>
> I have an event filter on the map canvas that performs a commit during
> feature editing when right clicking on the canvas. While this performs the
> commit, it then
thinks of a better way feel free to answer, but this will work for
now. I was hoping the setContextMenuPolicy methd would work.
-Original Message-
From: QGIS-Developer On Behalf Of
Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer
Sent: Thursday, April 13, 2023 1:29 AM
To: Nyall
Is there a way to detect the selection of the edit menu? I have a eventFilter
on the map canvas that works great with a rectangle. It detects the left mouse
press to get the start point and as the mouse is moved, it calculates the area
of the rectangle and if within a certain range will comple
Looking to add two icons to the QGIS Layer Panel that would access custom code
to sort the layers. I already have the code. It's not a simple geometry type
or alphabetical sort but I'm all set with that code anyway. I just want to add
icons into the layer panel.
I found this site that shows h
ia, Luke A ERDC-RDE-GRL-VA CIV
Cc: qgis-developer@lists.osgeo.org
Subject: Re: [QGIS-Developer] Customizing Layer Panel
Great, what if I want an icon too?
Thanks in advance for any help
Giulio
Il 27/04/2023 00:06, Nyall Dawson via QGIS-Developer ha scritto:
On Thu, 27 Apr 2023 at 07:42, Catan
When you digitize a shape using the Edit menu in QGIS is the shape accessible?
I am looking to get he area of the shape as it is drawn. I have added an event
filter to my code to capture the coordinates and calculate it by creating a
QgsGeometry, but my code is getting complicated as there are
3 um 04:46 schrieb Catania, Luke A ERDC-RDE-GRL-VA CIV via
QGIS-Developer:
I am trying to understand the general meaning of the message below.
RuntimeError: wrapped C/C++ object of type QgsVectorLayer has been deleted
I step through my code in the debugger and at some point my variable,
aoi
completing an edit session.
This is vert frustrating. 😒
From: QGIS-Developer On Behalf Of
Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer
Sent: Thursday, May 4, 2023 2:05 PM
To: Benjamin Jakimow ;
qgis-developer@lists.osgeo.org
Subject: Re: [QGIS-Developer] RuntimeError: wrapped C/C
I have made a few posts here, so this might sound a bit repetitive, but
specifies the specific QGIS tool I am using.
I want to override the right mouse click when using the Shape Digitizing
Toolbar to end an edit session. I don't want it to end the session unless the
shape is if of a specific s
Every time I click on the widget to start dragging it to the widget canvas, QT
Designer crashes.
About menu says it uses QT 5.15.2. I am using it to support development in
QGIS 3.16.16. I have to stick with 3.16.16 for our upcoming plugin release due
to time limited time constraints for testi
I am trying to run a rastercalculator through a call to its python method and I
get the error message core.QgsProcessingException: An error occurred while
performing the calculation. Not a very intuitive message.
The variable _cutfill_nodata_file used in the code below is a path to a result
fr
Anyone out there working with QGIS 3D?
I am looking to get a new Dell laptop with i9 processor and 64GB memory and
wondering what the minimum requirements for working with QGIS 3D is. I had a
coworker who could not run 3D on his laptop assume due to his lower end
graphics card. I don't offhan
I am executing
processing.run("gdal:convertformat", {'INPUT':'D:/Site
Selection/Data/MP/ezdxf/32111/dxf_out/32111.dxf','OPTIONS':'','OUTPUT':
'D:/Site Selection/Data/MP/ezdxf/32111/gpkg_out/32111.gpkg})'
which I copied from the QGIS processing toolbox history and I get the error:
Windows fatal
I am running simple code to convert dxf to gpkg and I get the error below. -am
an trying to figure eout how to add a bunch of options ( -f GPKG -append
-update --config DXF_ENCODING CP1252 --config DXF_INCLUDE_RAW_CODE_VALUES TRUE
--config DXF_TRANSLATE_ESCAPE_SEQUENCES FALSE --config
DXF_MERG
library documentation sparce
On Wed, 11 Oct 2023 at 15:15, Catania, Luke A ERDC-RDE-GRL-VA CIV via
QGIS-Developer wrote:
>
> Anyone use pygdaltools?
You're better off asking this on the GDAL-Dev list, rather than QGIS-Dev.
Nyall
>
>
>
>
>
> import gdaltools
>
I am using QGIS 3.16.16 as that is what my plugin fully works in but I am in
the process of updating it to a new version of QGIS.
I also tried the form annotation in 3.28.14 with no success.
I followed the video in the help document.
https://www.youtube.com/watch?v=0pDBuSbQ02o&t=145s which is
I am upgrading my plugin from 3.16.16 to 3.28.15.
I installed 3.28.15 and I don't see the options to Add Circle, Add Rectangle,
and Add Ellipse option in the Edit Menu. I see in the documentation:
https://docs.qgis.org/3.28/en/docs/user_manual/introduction/qgis_gui.html#edit
that it is still p
I am in process of upgrading my plugin to work in QGIS 3.28.15. I have layer
styles that I created in 3.16.16.
I noticed the update to the Properties Symbology setting includes Legend
Settings...
It seems that continuous legends are the default. I have layer styles files I
have do not have t
I find the Road Ahead Table confusing.
So does the line
LR/PR
3.36.0
3.34.4
2024-02-23
8
4
indicate that 3.34.4 is the latest LTR release available. Where is it? I only
see 3.34.3 available for download.
___
QGIS-Developer mailing list
QGIS-De
Trying to get access to the button menus in shapeDigitizeToolBar.
from qgis.utils import iface
from PyQt5.QtWidgets import QWidgetAction
sdtb = iface.shapeDigitizeToolBar()
i=0
for action_item in sdtb.actions():
i=i+1
print (f"{i}: {action_item}")
This prints:
1:
2:
3:
4:
5:
I wan
forked/frozen/taken
for the packaging.
Packaging can take a couple of days. You just need to be patient. It will be
available soon.
Greetings,
Andreas
On 2024-02-27 01:44, Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer
wrote:
I find the Road Ahead Table confusing.
So does the line
print (f"\t\ttranslated text: {action_item.text()}")
Regards,
Jacky Volpes
Ingénieur SIG - Oslandia
Le 27/02/2024 à 04:10, Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer a
écrit :
Trying to get access to the button menus in shapeDigitizeToolBar.
from qgis.utils import
action_item in
enumerate(action_widget_item.defaultWidget().menu().actions()):
print (f"\t{j}: {action_item.data()}") # id like
print (f"\t\ttranslated text: {action_item.text()}")
Regards,
Jacky Volpes
Ingénieur SIG - Oslandia
Le 27/02/2024 à 04:10, C
I recently installed QGIS 3.34.4, but when I run the debugger I received the
error below.
DebugVS: Need install ptvsd: pip3 install ptvsd
I checked using pip list and see I have installed ptvsd 4.3.2 installed.
I checked the DebugVS plugin install and noted it stated:
For use, run this plugin
I have building with a ridgeline that I am creating in GooJSON format. I
realize I can't combine a polygon footprint and a center line representing the
rood ridgeline into one layer as there is no support for multiple geometries.
My first thought for a workaround is just create a zero area poly
Does Server provide any analysis capabilities or is it just mainly to serve
maps (WMS, WFS, etc.)? I read on the into page that it has plugin capabilities
and uses QGIS as the back end.
I have a plugin that I developed for QGIS Desktop and have been asked if we
could eventually go completely w
I want to use the Advanced Digitizing Toolbar programmatically through python.
I have a QTableView conating a layer name that references GeoJSON in a
database. When I select the layer and hit a button on my UI, it places the
GeoJSON representation of a building footprint at a specified location
I don't program in C#, but our team is looking to create a custom front end
Landing Page/Dashboard in C# where QGIS would be an application running within
this front end would also launch other custom apps we have developed all inside
a C# window/container.
So looking to compile QGIS into a DLL
I use the statement:
facility_placement_tool = FacilityPlacementTool(iface.mapCanvas(), vlayer_crs)
iface.mapCanvas().setMapTool(facility_placement_tool)
to set a custom tool on the map canvas. It allows me to move a feature layer
around the map canvas using the translateFeature method of the la
Is there a signal emitted that I can have code execute after a feature rotation
is completed from the advanced digitizing toolbar?
I call the rotate tool via the code below and upon completing of the rotate
with a mouse click, I want to close the edit session.
def rotateFeature(self):
#
-GRL-VA CIV via QGIS-Developer a
écrit :
Is there a signal emitted that I can have code execute after a feature rotation
is completed from the advanced digitizing toolbar?
I call the rotate tool via the code below and upon completing of the rotate
with a mouse click, I want to close the edit
How can I get the reference to a QDockWidget that is already docked. I want to
call tabifyDockWidget so I can add a new QDockWidget to the same location. The
first is already in place from exsiting code and I know I can probably create a
getter method on the code that adds the first doc widget
Calvin,
Thanks for your contribution. We use the Lat/Lon and MGRS Tools in our Joint
Construction Management System (JCMS) Site Selection Plugin for QGIS that I am
a lead developer on.
Here at ERDC-GRL and AGC in Alexandria, VA, we have always had a connection
with NGA. We hope NGA finds a d
I want to change the icons of the layers in the QGIS Layer Panel Tree.
I found a plugin called Layer Tree Icons that adds a context menu to the layers
where you can change it there, but is there a way to do it in code without this
plugin by getting access to the tree object in the layer panel?
_
Is there support in QGIS for accessing web services (WFS, WMS, etc) requiring a
gov't CAC?
I looked at managing certificates and I can export my cert as a .cer file, but
do not see that QGIS can import .cer. I see filters for .der and .pem.
Luke
___
Is there web based QGIS where I can use my current plugin to do the same thing
I do in desktop?
I don't want to just serve my data to user's, but want them to use data for
analysis using the plugin I created for desktop but in a web based QGIS
environment.
Luke
I am using the select by expression tool through python to select my features
and then I trigger rotation through python I see both selected features
rotating, but when I click to end the rotation, it only rotated one of the
features and left the other one as is. If I do this through the QGIS u
utions.pl/formularz-dotacyjny?utm_medium=mail&utm_source=stopka&utm_campaign=kfs&utm_content=link-stopka-studentBlocked>
From: QGIS-Developer
mailto:qgis-developer-boun...@lists.osgeo.org>>
On Behalf Of Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer
Sent: Friday,
)
self.vector_layer.endEditCommand()
self.deactivate()
From: Jacky Volpes
Sent: Thursday, August 1, 2024 8:26 AM
To: Catania, Luke A ERDC-RDE-GRL-VA CIV ;
'qgis-developer'
Subject: Re: [QGIS-Developer] Rotating selected features programmatically
Hi Luke,
Please provi
] Rotating selected features programmatically
Hi Luke,
Please provide a PyQGIS code snippet to reproduce. It will be more convenient
to comment and suggest modifications.
Thanks,
--
Jacky Volpes
Ingénieur développeur SIG - Oslandia
Le 26/07/2024 à 22:06, Catania, Luke A ERDC-RDE-GRL-VA C
So I found that I could use a selectAll() method on the layer directly rather
than use the processing tool, but when I call the trigger on the rotate action
it unselects all the features and only rotates the inner most one.
From: QGIS-Developer On Behalf Of
Catania, Luke A ERDC-RDE-GRL-VA CIV
I am using QGIS 3.34.4. My processing history window is blank. It was there at
one point.
It's as if the widget for the list of processes has it's visibility set to
False. I can perform a Save As and it will save to a text file, but I want to
see it listed.
Luke
_
thod on the layer directly rather
than use the processing tool, but when I call the trigger on the rotate action
it unselects all the features and only rotates the inner most one.
From: QGIS-Developer
<mailto:qgis-developer-boun...@lists.osgeo.org>
On Behalf Of Catania, Luke A ERDC-R
-Developer On Behalf Of
Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer
Sent: Tuesday, August 6, 2024 11:56 AM
To: Jacky Volpes ; 'qgis-developer'
Subject: Re: [QGIS-Developer] Rotating selected features programmatically
So it seems that when I select all the features, triggering th
What causes an access violation intermittently? Once it happens sometimes it
continues to happen, and I have to delete the QGIS directory in
AppData\Roaming\ which is annoying because I have my plugin there and I need to
copy it to another directory and then copy it back after running QGIS for
part of this UI.
-Original Message-
From: QGIS-Developer On Behalf Of Greg
Troxel via QGIS-Developer
Sent: Sunday, August 25, 2024 9:32 AM
To: Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer
Subject: Re: [QGIS-Developer] QGIS Unexpectedly Crashing
"Catania, Luke A ERDC-RDE-
-developer
Subject: Re: [QGIS-Developer] QGIS Unexpectedly Crashing
On Sun, 25 Aug 2024 at 12:51, Catania, Luke A ERDC-RDE-GRL-VA CIV via
QGIS-Developer wrote:
>
> What causes an access violation intermittently? Once it happens sometimes it
> continues to happen, and I have to delete
I am using some code I found online to add rule-based symbology to my layer.
https://gis.stackexchange.com/questions/250869/managing-rule-based-renderer-in-pyqgis
I want to put layers of the same category in one vector layer rather than
making them separate layers and congesting my layer panel.
I have a layer that contains multiple polygons, and each polygon has one or
more buffers around it. I am creating a rule and categories under the rule and
when I click to test the expression of the category it returns what I expect
that there are two features that satisfy the expression, yet no
When I run the rotate tool in the Advanced Digitizing Toolbar it pops up a
small window that allows you to change the snap to angle and show the angle the
selected feature is rotated to. Is there a way to get access to the angle
through python?
actions = iface.mainWindow().findChildren
63 matches
Mail list logo