Questions tagged [qgis-2]

Version 2.x of QGIS (previously Quantum GIS)

Filter by
Sorted by
Tagged with
2
votes
1answer
1k views

How can I lock the scale when panning?

I'm just wondering if there's any way to easily lock the map scale when panning etc. For example, suppose I set the scale to 1:100,000 - panning with the mouse will then alter that slightly, which can ...
1
vote
1answer
2k views

Uninstalling/reinstalling QGIS plugin where uninstall is disabled?

Plugin Raster->TerrainAnalysis->slope which had initially worked, started showing what another questioner referred to as a "crazy histogram": Slope analysis from NED data gives crazy histogram? ...
1
vote
1answer
5k views

Label features on hover/click with QGIS?

Simple question: Is there a built in/easy way to show labels for features based on a hover or click action with QGIS 2.0.1?
1
vote
1answer
890 views

PGRouting Layer plugin “UnboundLocalError: local variable 'db' referenced before assignment”

I am trying to do some basic computations using the PGRouting plugin for QGIS, but I am getting this error all time: An error has occured while executing Python code: Traceback (most recent call ...
1
vote
1answer
622 views

Creating many-to-many table from intersection between two polygon layers in QGIS?

I have created a buffer around several points. I want to intersect this layer with a Census Tract layer. My end goal is to create a table that would list all the census tracts that intersect with the ...
1
vote
2answers
1k views

QGIS combining categorized values

I want to combine categorized symbol data for the sake of symbology. For example: Let's say I classified a data column of a shapefile and it gave me 20 different values. Ten commercial building types ...
1
vote
1answer
1k views

Labeling expression to label one value in a attribute table column

I am using QGIS 2.0 on Windows. I have a shapefile for a point layer that has the the following attribute table: I am trying to label using the Status column and only want the value that equals ...
1
vote
0answers
1k views

How to fix “Unable to load GdalTools plugin. The required ”osgeo [python-gdal]“ module is missing.”

When I start QGIS, it display error message: Unable to load GdalTools plugin. The required "osgeo [python-gdal]" module is missing. Install it and try again. Couldn't load plugin 'processing' from ['...
1
vote
1answer
328 views

The graduated symbology doesn 't take into account the attribute I need in QGIS

I m working on a project on QGIS I have a point shapefile vector that represents my store In the attribute table, i have bunch of data such as size, unit per transaction and most importantly store ...
1
vote
0answers
78 views

Changing URI source of WMS Raster Layer in place PyQGIS

In my Qgis Plugin, I manage a set of WMS layers that are secured by Api key. As I develop this plugin for differents clients who have different Api Key, I need to set the right Key when a specific ...
1
vote
1answer
10k views

How can I open a jpg format with QGIS 2.8?

I'm having some difficulties opening the jpg format at QGIS 2.8. It opens, but nothing appears.
1
vote
0answers
143 views

Understand ramp color interpolation using QGIS 2.12

I try to understand the color ramp in TIN and IDW interpolation. I work with height points layer. The low value in 8 and the highest value is 584. With the interpolation plugin i create TIN raster ...
1
vote
1answer
327 views

PyQGIS get existing ComposerAttributeTable from composition?

Working with QGIS 2.14.10x64 in Windows 7 in the QGIS Python Console I've managed to create a new print composer from a template, and update the layers in the map, and I'd now like to update the ...
1
vote
1answer
657 views

Buttons (Ok, Cancel) disappear in “Apri Modulo” from Attribute Table in QGIS 2.0.1

QGIS 2.0 has changed the visualisation of a form opened from the attribute table: instead of opening the form in a separate window, the form is opened in the same one. This is not a problem, but all ...
1
vote
2answers
1k views

How to snap polygons to lines?

How can I snap a polygon to a line? For example, I have a polygon which represents some meadows to snap over a line which represents a road.
1
vote
1answer
746 views

QGIS How to draw lines from two points in a CSV?

I have a largely identical query to How to draw lines from two points in a CSV?, however the solution listed isnt working for me. My original text format is PID, Start Northing, Start Easting, End ...
1
vote
1answer
2k views

Use PyQGIS to import CSV and draw points using different color

A CSV file contains columns latitude, longitude and color. uri = "file:///C:/data/balls.csv?type=csv&xField=longitude&yField=latitude&spatialIndex=no&subsetIndex=no&watchFile=no" ...
1
vote
0answers
190 views

QGIS printing shift on WGS 84 Pseudo Mercator base?

I've had this problem before but I'm not succeeding in fixing it using what I thought worked before. This has been brought up as an issue previously, but I'm stuck when I apply the previous answers. ...
1
vote
1answer
158 views

How to sort the layer list in Multiple selection window?

Multiple selection window pops up when you want to select input layer(s) within Processing Tools. The order of layers in Multiple selection window seems not corresponding to Layer Panel. How to ...
1
vote
1answer
335 views

Missing icon within legend if layer has a complex styling with QGIS

I'm using a complex styling for a points layer in QGIS, including two markers and a Geometry generator to set up a line between points and labels (see style description in this post). The result is ...
1
vote
2answers
623 views

Improving Clip Raster workflow in QGIS?

I've tried to come up with an open-source equivalent to the following process in ArcGIS 10.3: Spatial Analyst Toolbox > Extract by Mask target input: 1" SRTM DEM in EPSG 4019 mask layer: single ...
1
vote
0answers
235 views

installing plugins manually [duplicate]

I'm running QGIS Las Palmas on Mac OS Mavericks but after enabling all features in the Manage Plugins menu, I can't find the plugin I want. I downloaded it from the internet and wish to install it ...
1
vote
0answers
292 views

GRASS r.slope.aspect via QGIS 2.18 vs QGIS 3.4 - not working

I seem to be unable to replicate actions with GRASS tools when I access them through QGIS 3.4. In particular the r.slope tool. I receive error messages and it fails in QGIS 3.4. They seem to work fine ...
1
vote
0answers
1k views

Adding pictures to the shapefile objects in QGIS/QField?

Here is the thing, I want to add pictures that either are georefered (BY GPS Camera) or added manually to both new created objects and existing objects. Now to be clear I do not mean adding pictures ...
1
vote
1answer
96 views

GRASS 7.4 addons look installed but not accessable

I'm tring to install the addon v.centerline using the GRASS GUI 'Fetch & install extension from GRASS Addons'. I get the following message saying it's installed yet it doesn't show up. I tried ...
1
vote
1answer
81 views

Trouble with creating new attributes on large shapefile?

I have a point shapefile with ~2.5 million points. I am creating a new attribute converting ft to m, and QGIS (2.18.15) is having trouble working with the datasets. I have seen suggestions to only ...
1
vote
0answers
344 views

How to show and access SAGA not shown in Processing Panel in QGIS 2.18.4? [closed]

How to get SAGA modules to show and be usable within QGIS, i.e. from within the Processing Panel? I have tried reinstalling SAGA (now = Version: 2.1.2 64 bit) through the OSGEO4w installer and tried ...
1
vote
1answer
238 views

How to update attributes on spatialite table programmatically: SQLite Error

I am writing a plugin that updates 2 fields in an existing spatialite layer. The spatialite table contains several layers which are displayed on the current map. It executes to completion (very slowly)...
1
vote
2answers
2k views

How do I add and view *.ecw raster images in QGIS 2.2.0 on Ubuntu 14.04 LTS

How do I make ECW files work in Quantum GIS on my Ubuntu 14.04?
1
vote
1answer
290 views

QgsExpression to apply on feature

I am using QGIS 2.8. For the documentation of QgsExpression I see the evaluate method on feature as deprecated. What am i supposed to use instead of this methods ? I have some expression and need to ...
1
vote
0answers
171 views

Measuring in Print composer and main layer window in QGIS 2.12.3 does not match

I work on the municipality level and I am composing print maps with scalebar. I noticed, that length (or scale of my maps) is presented different when items are measured in my main QGIS 2.12.3 layer ...
1
vote
3answers
3k views

Resolving Java script Alert that This page was unable to display Google Maps element?

Whenever I try to load the Google Hybrid layer on QGIS 1.8.0 and 2.0.1, I get this error: This page was unable to display a Google Maps element. Please contact the site administrator. If you are ...
1
vote
1answer
230 views

Assigning new QgsRasterBlock object to QgsRasterDataProvider object?

Next code, read and print original and modified raster pixels values by using a QgsRasterBlock object ('block' method of QgsRasterDataProvider). The objective is to obtain a new raster with the new ...
1
vote
1answer
507 views

Point in Polygon QGIS 2.18 [duplicate]

Point in polygon does not appear in my QGIS 2.18.0 (Windows 10). The tutorials indicate I should find it in Vector -> Analisis Tools -> Point in Polygons, but it is not there. How should I install ...
1
vote
1answer
2k views

SSL error on a freshly installed QGIS 2.14.1

I would like to ask for a help on how to fix the SSL error I'm having on a fresh installed QGIS 2.14.1 version. It seems to me it's the reason why vector, raster, and some other tools won't work when ...
1
vote
1answer
55 views

QGIS Atlas Catalogue

I would like to know if I can set the filters to only show the current feature the map is focused on and hide the other features around it? I currently have a layer of points which the atlas centers ...
1
vote
1answer
165 views

Getting the DB name of the spatialite table loaded inside QGIS using PyQGIS

I have a table loaded in QGIS from spatialite DB. When i see the layer properties it is dbname='/home/farook/Spatialite/Cities.sqlite' table="cities" sql=. Now i want the dbname alone (i.e) the entire ...
1
vote
1answer
96 views

Preserving geometry of Union output with Virtual Layer in QGIS 2

There is a polygon layer "Union23" that was created with 'Union' tool. Layer's attribute table includes the following values. My effort is simply to aggregate those polygons by "FLAECHEID" field ...
1
vote
1answer
210 views

Determining if line is snapped to nearest linestring in PyQGIS?

I have a polyline layer and I want to find if a linestring is snapped to the nearest linestring or not in QGIS. How can I do that in QGIS? I am checking for the intersection but the intersection code ...
1
vote
2answers
68 views

QGIS2 to QGIS3 plugin migration issue AttributeError: type object 'QObject' has no attribute 'connect' [duplicate]

I am trying to migrate a plugin. I have these two lines: QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Configuration.accept) QtCore.QObject.connect(self.buttonBox, ...
1
vote
1answer
7k views

OpenLayers Plugin not working in QGIS 2.8.1 [duplicate]

I am using QGIS 2.8.1. I have installed the OpenLayers Plug, however it is not showing up in my list of plugins. I confirmed it's installed in the plugin manager. Is anyone else having this issue?
1
vote
0answers
39 views

QGIS 2.14 - Saving Lat/Long csv file to ESRI Shapefile Error [duplicate]

I have a csv file that I bring into QGIS 2.14 with standard lat and long formatting. The file displays fine but when I try to save it as an ESRI shapefile I get an error: Export to vector file failed....
1
vote
1answer
324 views

Unable to edit PostGIS DB using QGIS 2.10, works on 2.8

I have data in PostGIS DB which I need to edit with QGIS. I created a project file with QGIS 2.10. I was able to connect and open the PostGIS database, but ran into problems when I tried to edit DB ...
1
vote
1answer
651 views

Exporting from Excel to csv and import in QGIS retaining encoding/special characters (with workaround)?

Problem: When exporting Turkish character encoding into a csv file from an Excel Table (Excel 2013) as a source file I can´t import the resulting csv into QGIS to still displaying the characters ...
1
vote
1answer
326 views

QGIS - Layers with CRS EPSG:3857 incompatible with Google street map

I have been having problems applying the different CRS systems to my layers. I have generate a variable distance buffer that I want to be circles around point on a Google Street Map of a city. When I ...
1
vote
1answer
74 views

Charts and Graphs that only display features in current extent

Using QGIS, QGIS Server, and Lizmap3/3Liz I am trying to make a pie chart that compares attributes but only of the features in the current extent. So when you pan around the webmap the graph changes ...
1
vote
1answer
332 views

Removing the existing context menus from legendlayeractions QGIS 2.6.1 using python

a = QAction( u"My Action", iface1.legendInterface() ) iface1.legendInterface().addLegendLayerAction( a, u"My Plugin Menu", u"id1", QgsMapLayer.VectorLayer, True ) #adds action iface1.legendInterface(...
0
votes
1answer
311 views

in a single vector layer I have a three of polygons with different field values (e.g1,2,3). How Can I color each field value polygon differently?

In a single vector layer I have a three of polygons with different field values (e.g1,2,3). How Can I color each field value polygon differently? To explain a bit more my three polygons are showing ...
0
votes
0answers
43 views

Qgis Print Composer Could zoom and maintain scale

I am trying to make Qgis Print Composer zoom to feature and maintain a scale of 2500. However, the scale could not be maintained. It is showing a different scale for different page sizes. Below is ...
0
votes
2answers
3k views

Can QGIS2 / GDAL convert to .ECW without corruption?

I have qgis 2.0.1 and it can read *.ecw files that I download. However, when I convert say a *.jpg or *.tiff to *.ecw the output is corrupt. Has anyone seen this problem?