6
votes
Accepted
Distribute a function for QGIS
I distribute my OS Grid reference functions via a plugin and it works very well.
4
votes
Accepted
Calling Turf.js nearest point function equivalent in QGIS using a Python script
You can use the QgsSpatialIndex class which has a nearestNeighbor() method.
E.g. to iterate over a point layer, finding the nearest point and distance for each feature, you could do something like:
...
3
votes
_core.QgsProcessingException: Unable to execute algorithm Incorrect parameter value for TARGET_LAYER
I solved my own issue passing target_layer as an URI layer doing:
# Define the connection parameters using QgsDataSourceUri
uri = QgsDataSourceUri()
uri.setConnection(host, port, dbname, user, ...
2
votes
QGIS Marker orientation/rotation does not transfer on Webmap
I was able to fix this error by using a svg marker with no rotation and adding the marker rotation in the html file. My rotation is saved under a column named Azimuth. The necessary Additions are ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
qgis-plugins × 2985qgis × 1868
pyqgis × 1000
qgis-3 × 400
python × 320
qgis-2 × 195
qgis-processing × 191
pyqt × 93
pyqgis-3 × 92
raster × 70
installation × 60
error × 56
grass-gis × 51
pyqt5 × 47
postgis × 46
python-2.7 × 44
qt-designer × 39
plugins × 38
coordinate-system × 36
openstreetmap × 36
c++ × 36
gdal × 34
georeferencing × 33
shapefile × 29
print-composer × 29