New answers tagged

0

It should look different from other buttons in QGIS. I don't want to accidentally open your plugin when I was trying to, for instance, digitize a new feature. It would be nice if it looked different from other plugins' buttons, but that might be asking too much for you to look at every single available plugin. Maybe just compare to the most popular plugins.


2

By creating a new field "Fromto" (or any name) in your route table and in your resulting layer. This new field will contain both 'From' and 'To' (example: From: "Paris", to:"Moscow" --> Fromto: 'ParisMoscow'). You will then be able to add a Vector Join in your resulting layer and connect it to route table on their attributes "Fromto". the resulting layer ...


1

Finally this is the procedure that works: Install QGIS and gdal-filegdb as described here Installing QGIS with FileGDB? Make sure the directory name ending is .gdb (renaming the directory solved the issue in my case) Open the directory as described here Installing File Geodatabase (*.gdb) support in QGIS? (in my case it works both selecting type ESRI ...


1

Try deleting the .git folder. I recently got the same error because of a .idea folder which I think was a leftover from some python ide I used at some point. You probably don't need the .git folder for distribution.


1

I had a similar problem, using QGIS Brighton 2.6.1 . I followed your intructions/tips and the solutions was: Open OSGeo4W Shell and change to the plugin folder MyPlugin by typing: cd C:\Program Files\QGIS Brighton\apps\qgis\python\plugins\MyPlugin Type: make clean (removes the resource_rc.py) Type: make deploy (from resouce.qrc outputs new resource_rc.py) ...


1

if someone is going to have the same problem, in the end the solution was very simple: self.iface.mapCanvas().setScaleLocked(False) setScaleLocked void QgsMapCanvas::setScaleLocked (bool isLocked) Lock the scale (set True), so zooming can be performed using magnication, or oposite set False so zooming can be performed using scale. ...


0

What worked for me is that I changed the resolution of my screen to anything lower and then back to my default resolution. The Georeferencer window was back immediately!


0

@csk thank you for your attempt in resolving my problem. No I was not inputting a text in place of a numeric value. I ended up resolving the issue by reinstalling the plugin in QGIS.


3

You can achieve this by joining the shapefile with the CSV file based on the common fields between them (KEY field and KEY_ID). To do this, add both shapefile and CSV files as layers to the table of Contents using Add vector files, then right-click the shapefile -> Properties -> Join -> Add join (green plus at bottom left) -> Select the CSV ...


2

I don't use QGIS to import data but let me give you a working solution if you are able to use ogr2ogr. ogr2ogr -f "PostgreSQL" "PG:host=serverhost user=username dbname=dbname password=password" yourshpfile.shp -lco GEOMETRY_NAME=the_geom -lco FID=gid -lco PRECISION=no -nlt PROMOTE_TO_MULTI -nln tablename -t_srs "EPSG:4326" Add your own credentials and set ...


4

The solution: ##landclass=raster ##Size=number 10 ##stratrand=output vector library(sp) library(rgdal) library(raster) names(landclass[[1]]) <- "stratum" stratrand <- sampleStratified(landclass[[1]], size = Size, xp = TRUE, sp = TRUE) stratrand Explanation: ...


2

one solution is to use gdalbuildvrt to make virtual raster aligned with one of your raster. With the -te option you can specify an extent that matches the extent of your choice, and with the -tr option you can make sure to have exactly the same resolution. The default resampling is nearest neighbour, but you can modify it with the -r option. import ...


4

It is by design Retrieve a list of matching registered layers by layer name. You could have several layers having the same name


0

Try with http instead of https: http://plugins.qgis.org/plugins/plugins.xml I had the same problem and this worked. You can check your proxy setting via "help - check QGIS version" independently of the plugins access.


1

First, I tried your code out in Python Console of QGIS 3.8, with layer of following image, and it adds and populates the fields in attributes table. Afterwards, I created a test plugin and put your code in it (slightly modified for working through plugin) with two functions before run method: addAtts and adding_attributes (this one connected to OK button)...


5

I've coded a simple QgsMessageBar which contains a widget with 3 double-spinbox (and their labels), and a QPushButton for load colors. One for each color (Blue, Orange and Red). Each SpinBox have a default value (0), a minimum (0), a maximum (100) and a step (0.5). These values can be easily edited in the code (in the BarWidget class). The messageBar pop ...


3

As a somewhat klugey solution, you can set project- or layer-level variables for the validation criteria. For a project-level variable, go to Project / Properties / Variables and use the + button to add a variable named valdco_for_blue or similar and set it to the desired value. The data override function syntax you refer to the variable using @...


2

The georeferencer plugin is a core plugin, so you don't need to install it. You just need to enable it, which is much easier. If you need access to other (non-core) plugins, see this questions for instructions to install a plugin without using the Plugin Manager: How to install a QGIS plugin when offline? How to enable an already installed plugin without ...


0

Happened the same here, but the screens were one above the other one. Switched them and the georeferencer appeared.


1

You could use something like the following: # Get group group = QgsProject.instance().layerTreeRoot().findGroup('Drawings') # Iterate group to get list of layer names layers = [layer.name() for layer in group.children()]


Top 50 recent answers are included