Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
I am working on a QGIS plugin using Python with Plugin builder and QT designer with two algorithms inside "Points to Path" and "Append Features to Layer". My plugin takes a CSV and then converts it to a line using "Points to Path" and then I would like to automatically make a connection with my PostGreSQL database and add it to a table. It works well inside the python console but when trying to add this line to my CSR table it keeps failing and I don't know how to parametrize it well.
Asked today Viewed 3 times When using the @alg decorator to scaffold a processing algorithm, we use the @alg.input to declare new widgets for the interface. We can declare these as alg.SOURCE for layers we use in the algorithm. Unlike the standard approach, there does not appear to be a place where we can identify allowable geometry types (Point/Line/Polygon) for the layer.
Asked today Viewed 3 times I made a small code to fetch some PostGIS layers into QGIS and apply them with qml style, like the following: import os from qgis.core import QgsVectorLayer, QgsDataSourceUri, QgsVectorLayer, QgsProject uri = QgsDataSourceUri() uri.setConnection(#CONN_INFO) city_filter = 'Cairu' uri.setDataSource("public", "dende_mp", "geom", f"nom_munici = '{city_filter}'") vlayer = QgsVectorLayer(uri.uri(False), f"car_{city_filter}", "postgres")...
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.