Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [qgis-2.0]

Version 2.0 of QGIS (previously Quantum GIS) also referred to as 'Dufour'

0
votes
0answers
6 views

Debugging a QGIS 2.x plugin using pycharm? [on hold]

How to debug a QGIS plugin using Pycharm IDE Without the help of Remote-Debugger?
3
votes
0answers
37 views

Unable to compute intersection between two polygons using PyQGIS?

I have two polygons in different layers. I am trying to find the intersect between the two polygons. Below a figure showing my test case. I initially wanted to find the intersect between the green ...
2
votes
0answers
44 views

Closest features from a mouse click – altering selection if a feature has already been found

I have a working code that selects 4 closest points from a mouse click and creates a convex hull using the selection. def canvasReleaseEvent(self, mouseEvent): """ Each time the mouse is ...
1
vote
1answer
43 views

Plugin that selects closest point features from a mouse click

I'm trying to build a plugin that would select let's say 8 closest points from a mouse click. I've found a working plugin that selects the closest feature from a mouse click here: https://www....
1
vote
0answers
103 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
55 views

Creating 1km square grid [duplicate]

I am trying to make a 1km square grid using QGIS 2.18.26. I am using EPSG:4326. I need it to be exactly 1km square because that's how the variable data has been collected. I am struggling to get ...
1
vote
1answer
53 views

Merging isolines into polygons in QGIS, building an isochrone map

There is a set of isolines produced with v.net.iso. It shows distances in meteres [400, 800, 1200, and everything further] from a certain point. My desired output is an Isochrone map. However, I do ...
1
vote
1answer
192 views

UBUNTU 16.04, QGIS 3.4 above Installation problem

I want to install QGIS 3.4 above and did exactly the same as this page: QGIS Installers and tried the codes below having no error at all: (1) add the following lines to /etc/apt/sources.list deb ...
2
votes
2answers
61 views

Calculating point layer values aggregated by sub-polygons in QGIS 2

I simply have a polygon layer BereichBerechnung with a field "Are_Number" a point layer EW2017 with a field "EWjeAdr" In QGIS with a Virtual Layer, I want to calculate the sum of the field "EWjeAdr" ...
3
votes
1answer
83 views

Line width and labels based on blended values of features sharing same geometry in QGIS

I want to appropriate line segments that share the same geometry with a particular line width and labels based on the aggregated values of one field "GIS@BUS_5_Min". My attribute table and polyline ...
1
vote
1answer
24 views

Selecting features with same geometry within one shapefile

I am working on a public transport network in one shapefile (polyline type). Certain bus routes share the same path, means that one line-part can repeat more than once. For instance, if I select a ...
1
vote
0answers
28 views

Disabling custom form fields with python in QGIS

I have a custom input form and a script to disable the fields that are currently not needed. from PyQt4.QtCore import * from PyQt4.QtGui import * def formOpen(dialog,layerid,featureid): ...
0
votes
0answers
27 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 ...
5
votes
4answers
125 views

Converting Excel into shapefile (keeping encoding and data type)

I am trying to create a "perfect" shapefile from the Excel data. "Perfect" means that it should match several factors: proper encoding and original data type. Excel file basically contains ...
1
vote
0answers
37 views

Error interpolating in Qgis

I'm trying to interpolate with the algorithm "v.surf.idw" in Qgis version 2.18 Las Palmas. The data that i'm using are points whose coordinates were loaded by a CSV file, these the guade as a new ...
1
vote
1answer
25 views

Use previous entry as default in attribute table

I have a vector layer that I add observations to by identifying features in georeferenced rasters (images). One of the attributes I want to assign to the feature is the image name (which I currently ...
2
votes
1answer
16 views

QGIS does not open image on Mac

I have tried various ways of making an action open on image on my Mac but no image shows up when the point is clicked. The best I got was when I made the field with the file path a "Photo" type. If I ...
1
vote
1answer
42 views

Add PostGIS layer to QGIS via Python Console

How can I add a PostGIS layer to QGIS via the Python Console? With some server setups, especially with a large number of tables, it can be very slow to load the list of layers via the Browser or Data ...
2
votes
1answer
187 views

Reason for better save capability of QGIS 3

I have an internal processes meeting with work where I am trying to describe the benefits to migrating to QGIS 3 from QGIS 2. I need to explain the technicalities of how the save option works better ...
1
vote
1answer
52 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 ...
0
votes
1answer
61 views

How to generate multiple maps for each feature using same scale and displaying only the one feature?

I am using QGIS 2.18. I've got a layer consisting of 40+ features (lines of movement per day). And I'd like to automatically create maps that always show exactly the same area. But the difference is ...
4
votes
2answers
225 views

Can not open shapefiles from QGIS 2.18 in MapInfo 16.0, projection was missing

I am working with QGIS 2.18 where I do have several shapefiles in EPSG 4326 and encoded in ISO 8859-1, see image below. I can check their geometry state for instance with Geometry Validator or Check ...
1
vote
0answers
61 views

How to refresh layer style correctly while setting to group

I have almost finished to implement the following idea: When moving a raster layer to a distinct group load a style from a QML style file. I'm using this code in the Python console in QGIS: def ...
1
vote
0answers
19 views

Error while importing networkx module in QGIS 2.18.16 [duplicate]

I am trying to import networkx module in QGIS 2.18.16 but getting the error message. Any suggestions? Traceback (most recent call last): File "<input>", line 1, in <module> File "C:/...
1
vote
0answers
37 views

Simple user input in QGIS with pyqt plugin

SplitPolygon plugin allows the user to enter an angle by which the polygon(s) will be split. I would like to modify the plugin and take that value from graphical user input (say, parallel with one ...
3
votes
1answer
117 views

Remove yellow upgrade footer in QGIS 2x

QGIS 3 is out but doesn't have the plugins I need yet so I'll use 2.18 a bit longer. I have 3.2 installed alongside to test the new features. However, there is now an ugly footer in 2.18 telling me ...
0
votes
2answers
102 views

Calculate centroids using PyQGIS

I am trying to calculate the centroids of polygons using PyQGIS. When I calculate the centroids with the interface (Vector --> Geometry Tools --> Polygon Centroids) everything works out. However, I ...
1
vote
1answer
41 views

How to clip/symmetrical difference a shapefile and ArcGIS Mapserver layer?

I have 2 layers. A portion of a shapefile and an ArcGIS Mapserver layer. I would like to subtract the satellite image area outside the shapefile (the rectangle) from the view. IOW, leave only the area ...
3
votes
0answers
50 views

Standalone Application QgsCoordinateReferenceSystem fails without OSGeo environment

I am writing a simple standalone QGis application. My code is like this: class MainForm(QtGui.QMainWindow, Ui_MainWindow): def __init__(self): super(MainForm, self).__init__() ...
0
votes
1answer
263 views

Loading a WMS layer to QGIS using python

I know that there are already many questions regarding this matter. In fact, I have already seen the following questions: How to load a WMS layer using pyQGIS, Adding a WMS to QGIS using python, Load ...
1
vote
0answers
20 views

Getting layer information + sending it via socket io to a client [closed]

I am new to QGIS and I was wondering if there was a way to get the information from a layer (its name for example), and to send it to a client via a python-socket.io server? A this very moment I have ...
2
votes
1answer
59 views

How to display multiple plots in R Scripts running in QGIS

While plotting in R in QGIS, only the latest plot appears in 'Result viewer'. What do I do to get all the plots done during script running? Here's the code: ##showplots bin_arr <- c("C:/Users/...
2
votes
1answer
44 views

How to input an array in R script running inside QGIS

I am using QGIS 2.18.21 and running an R script which needs various files as inputs. The number of files to be inputted is also entered by user. I am thinking of taking the input of all file paths in ...
3
votes
1answer
113 views

Import Shapefile to PostGIS in QGIS' DB Manager without using its ID column

I have a shapefile with a "id" field in which some non-unique ID numbers exist (don't ask). When I try to import this to a PostGIS database using QGIS' DB Manager, it tries to re-use those IDs are ...
3
votes
1answer
63 views

How to create a boundary around transmission lines?

New to QGIS and GIS in general. I'm using QGIS 2.18 and I've downloaded the shapefile from here https://hifld-geoplatform.opendata.arcgis.com/datasets/electric-power-transmission-lines. I set up a ...
1
vote
0answers
54 views

Displaying pre-styled pie charts in QGIS and with standalone pyqgis script

I’m trying to create a PNG image containing pie charts as style for a layer using a standalone pyqgis script (QGIS v2.18.14). The script works fine with other layers and style files, but the layer ...
0
votes
1answer
59 views

QGIS 2.18 to 3.0 change in raster values

I had a raster sent to me which had different values on the other person's QGIS, he's working with 2.18 and I'm working with 3.0. he had to set a threshold based on his index of values but couldn't ...
1
vote
1answer
97 views

QGiS - Values missing from graduated style

I'm trying to do the very simple/standard task of presenting points (and then polygons created from them) as a graduated colour style, however many points are missing, evinced from the lowest number ...
4
votes
3answers
217 views

Choosing CRS for Denmark?

I try to make maps of the different administration units in Denmark but have problems with finding the correct CRS. I downloaded GeoJSON files from this repository. When I import one of those to ...
3
votes
1answer
82 views

QGIS “Controlled by atlas/Fixed scale” makes random scale for features

I have a point layer as control point in an atlas. I set map to be controlled by atlas, and there's only one option for point layer: fixed scale. I render it, and every feature gets it's own scale, ...
5
votes
1answer
196 views

Custom format for a grid with degrees, minutes, seconds with suffix using letter from another language

I am designing a map in French where West is "Ouest", and thus the map should read 45°23′67′′O instead of 45°23′67′′W. I am using a version of QGIS in English (update: in the French version of QGIS, ...
1
vote
1answer
110 views

QGIS windows stuck off screen and can't get it back, locks entire application in the meantime

OS Ubuntu 16.04 QGIS version 2.18.16 I have a problem where if I try to open any windows that spawns from "Rule-based" symbology in the style menu. Trying to change the rules by double clicking on ...
1
vote
1answer
56 views

Why did some of my line features in one of the vector layers moved?

I have a map with line features representing roads. Each road has a code which is linked to a CSV file with information on the road. When I opened the file the other day, I realised the CSV files and ...
0
votes
0answers
57 views

Issue editing nodes on a PostGIS table via QGIS

I launch a PostGIS table via QGIS DB Manager tool [PostgreSQL 9.4.17 - PostGIS 2.1.8 - QGIS 2.18.19]. The table geometry is MultiPolygon. I can toggle both Toggle editing and Node tool buttons. When I ...
1
vote
0answers
55 views

Labels are overlapping at scale 25 Mio. in QGIS?

when I zoom-out (at a scale 25 Mio.), the labels are overlapped and it shouldn't be overlapping like the image below (in red drawn 'circle'), Is it because of the size of the labels or do I have to ...
1
vote
1answer
68 views

PyQGIS - categorized renderer classification - create category with 'no value' or 'any other value'

The code snipped mentioned in Automatic pyqgis categorized renderer classification and Apply symbol to each feature (Categorized symbol) automatically create categorized renderers and determine ...
2
votes
1answer
61 views

labelling polygon by clicking on polygon in QGIS

I would like to check if it is possible to have some sort of dynamic labelling of the polygon shapefile by clicking on selected polygon within this shapefile. Is this possible on the QGIS gui? For ...
1
vote
0answers
41 views

Automatically selecting street segments from address list? [closed]

I browsed around this site and a couples of other QGIS sites, and couldn't find solutions to my problems. However, I'm quite new to QGIS, so my question is possibly pretty naive. I need to create ...
0
votes
1answer
84 views

Qgis composer attribute table

I'am trying to make an atlas composer to get export for each line of a specific layer. Those lines are portions or roads. In the print composer I have 2 maps, a picture frame and 3 attribute tables ...
2
votes
1answer
513 views

QGIS 3.00 crashes while QGIS 2.99 worked well

Using the standalone-installers 64bit on a windows 10 64bit pro machine: various 2.99 version including the latest 2.99 build #8 worked well with the project global_connections from the book QGIS Map ...