吉利集团官方证实入股戴姆勒 并非李书福个人入股
百度 从处罚情况来看,保监会对高管与机构实施双罚,对人保财险四川分公司、太平财险四川分公司、太平洋财险福建分公司以及平安财险四川、宁波分公司的负责人采取撤销任职资格等处罚措施,并责令五家分支机构停止接受商业车险新业务3个月。
Python bindings for QGIS.
7,875 questions
0
votes
0
answers
25
views
Geometry of a feature of a memory vector layer will not be changed
I have a permanent vector layer type linestring with only one feature. In the geometry a
circle with a certain radius is saved. I will change the radius of the circle to a new
value. This is my code (...
0
votes
0
answers
35
views
PyQGIS: map scale from the layout returns an error message "Invalid scale"
I am created a layout from scratch with PyQGIS using QGIS Python console.
When creating the map object and the scalebar item, the scalebar is replaced by an error message saying (from an approximate ...
1
vote
0
answers
33
views
When exporting GeoTIFF some layers are missing with PyQGIS
I am trying to export a GeoTIFF using a script in the QGIS Python Console, but the exported GeoTIFF is missing most layers. The image being exported is part of a larger canvas, too big to export as a ...
0
votes
0
answers
33
views
How to run GRASS8 in VS Code as part of PyQGIS standalone script
I'm trying to run GRASS8 in a standalone PyQGIS script. I've imported the QGIS processing, do I need a separate import for GRASS8? Here's my code so far:
# Import modules
from qgis.core import ...
0
votes
1
answer
22
views
Custom tool with default attribute editor form , ok button always disabled
I am making a QGIS tool that will allow a two click point, first click is the geometry, second click gets the angle. I also need to open the default add feature attribute editor form. This is what I ...
3
votes
1
answer
88
views
PyQGIS signal for geometry completion before attribute form opens
I'm developing a QGIS plugin and need to execute custom logic at a very specific moment: right after a user completes drawing a new geometry in edit mode, but before the attribute form dialog opens.
...
0
votes
1
answer
62
views
PYQGIS Processing Script - Add custom action to output layer
I wrote a processing script that creates a layer and adds it to the current project:
class TestAlgorithm(QgsProcessingAlgorithm):
def initAlgorithm(self, config=None):
self.addParameter(...
1
vote
1
answer
54
views
Getting width and height of a Raster Image Marker from symbol layer using PyQGIS
I'm working with a layer in QGIS (v3.40) that uses a Raster Image Marker as its symbol. In the layer's symbology, I explicitly set:
Width (Largeur): 100 pixels
Height (Hauteur): 50 pixels
Unit: ...
1
vote
1
answer
45
views
Creating field and updating its value for feature using PyQGIS
First,
I'm trying to create a field for a vector layer. This is the one of the most basic actions.
with edit(noViewLayer):
noViewLayer.addAttribute(QgsField('DN',QMetaType.Type.Int))
QgsProject....
1
vote
0
answers
51
views
QGIS Annotation HTML Text automatic changes, deletes comments
I create Annotation automatically with a self written python plugin in QGIS 3.40.5.
The plugin writes a HTML Text, that is saved in a QgsAnnotationPointTextItem.
<html>
<!--Name:123/X1234$...
2
votes
1
answer
94
views
Adding layer definition (.qlr file) in QGIS with Python code
I try to run a script that would add a layer definition file (.qlr) to a project in QGIS. The version of QGIS I'm using is very new (3.40.4-Bratislava).
The Python code runs without error messages, ...
0
votes
1
answer
45
views
QGIS Python console highlights quoted text and text without closing quote
I suspect that this is hard coded into QGIS, but is there any way to avoid the colorizing of quoted text and the highlighting of text for which there is no closing quote?
-2
votes
2
answers
79
views
Command to restart kernel of QGIS Python Console
In Spyder, I often use the GUI to restart the kernel to ensure that I have a clean slate.
I am using QGIS to access Python (not for GIS) on a system where I have no other way to get Python. I googled ...
0
votes
1
answer
63
views
Banishing recent project and project templates panes of QGIS
I have requested QGIS on a system for the sole purpose of using Python. There is no other means of getting Python on that system. While waiting for the installation, I installed and test drove ...
1
vote
1
answer
51
views
QGIS hotkeys to maximize the pane that has the focus
I have requested QGIS on a system for the sole purpose of using Python. There is no other means of getting Python on that system. While waiting for the installation, I installed and test drove ...