Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Python bindings for QGIS.
2
votes
1
answer
5k
views
How to import CSV layer to QGIS using PyQGIS in Windows?
I'm using QGIS 2.18.14 Las Palmas on Windows 8.1
I tried to import CSV layer to QGIS using this script:
uri = 'file://D:/26mei.csv?d?delimiter=%s&xField=%s&yField=%s' % (",", "Lon", "Lat")
layer_csv …
3
votes
1
answer
2k
views
How to set background color of label using PyQGIS 3?
suppose I have a shapefile that have an attribute, and I want that attribute to be shown with white background behind the text in the viewport.
This is what I want to accomplish:
I've searched the …
2
votes
1
answer
377
views
Contour Plugin Processing Algorithm is not detected in PyQGIS 3 Standalone
I was trying to access processing algorithm using PyQGIS 3 on a standalone script. …
5
votes
Accepted
QGIS standalone application, problem with prefix path
The artwokr21's answer has been approved. I just want to add some information for Ubuntu user
For Windows:
QgsApplication.setPrefixPath("C:/Program Files/QGIS 2.18", True)
qgs = QgsApplication([], F …
1
vote
2
answers
2k
views
exec(open('/tmp/tmpu7edmqsu.py'.encode('utf-8')).read()) on PyQGIS 3
I tried to load csv layer using this script:
file = "/home/ayato/Desktop/26mei.csv?delimiter=%s&xField=%s&yField=%s"
uri = file % (",", "x", "y")
vlayer = QgsVectorLayer(uri, "asd", "delimitedtext")
…
1
vote
Accepted
exec(open('/tmp/tmpu7edmqsu.py'.encode('utf-8')).read()) on PyQGIS 3
delimiter=%s&xField=%s&yField=%s"
uri = file % (",", "x", "y")
vlayer = QgsVectorLayer(uri, "asd", "delimitedtext")
QgsProject.instance().addMapLayer(vlayer)
PS:
If you want to run a standalone PyQGIS …