Questions tagged [qgis-2]

Version 2.x of QGIS (previously Quantum GIS)

Filter by
Sorted by
Tagged with
7
votes
2answers
3k views

OpenLayers plugin in QGIS 2.6.1 crashes and errors with zoom

I have a major problem with the OpenLayers plugin. The maps of the plugin won't zoom to the right scale, or they just simply crash. I never had these problems in the old QGIS versions. This way, I can'...
6
votes
2answers
3k views

How to format labels with leading zeroes?

I'm trying to display a number next to a symbol in QGIS 2.0.1 - The numbers are from an integer-field in a postgresql database. The goal is that single digit numbers get a leading 0. Examples: 12 -->...
5
votes
4answers
952 views

Programatically add polylines from existing points in QGIS

I am using QGIS 2.18 and I need help finding a python script or tool which will allow me to programmatically draw a line from existing GPS (sometimes as many as 500 or more) points that is 250 feet ...
4
votes
2answers
1k views

QGIS Python generate index field

I have some shapefiles for which I need to generate an index(int) field. I tried using this function: def add_index_to_layer(layer): fieldindex = layer.fieldNameIndex("index") if fieldindex &...
4
votes
2answers
2k views

Open local Raster Tiles in QGIS

I have a local directory with a Raster Tile, downloaded with SAS Planet (I know about the license issues, its just a personal test). In Global Mapper I can load it directly from the directory using: ...
4
votes
1answer
2k views

How to use the field calculator's centroid() Geometry function in qgis 2.0?

There is an option in the field calculator for centroids under geometry which when you double click gives you "centroid( ". What information is required here in order to use this function?
4
votes
2answers
1k views

Install older versions of QGIS on Mac

I tried to download and install an older version of QGIS, but I don't understand how it works... I downloaded and opened this file: qgis-2.0.0.tar.bz2, but I don't see any program file here. I also ...
3
votes
1answer
1k views

Adding a WMS layer in QGIS using python

I'm trying to write a python script to load the Environment Agency (EA) Flood Zones WMS layers into QGIS (2.14). I've provided a link to the EA's data catalogue at the bottom of this question. The ...
3
votes
1answer
2k views

Save map in raster format from QGIS using compression

Is there a method to save a map in raster format from QGIS using compression? For exemple from "Export map" in ArcGIS there are many options to compress the images depending on the file type (tiff, ...
3
votes
2answers
674 views

How to join attributes by location for more than one located feature in QGIS?

In the standard join attributes by locationfeature in QGIS 2.0/2.18, there are two options: Take attributes first located feature Take summary of intersecting features Is there a function in QGIS ...
3
votes
2answers
4k views

Where to download QGIS 2.10?

Is QGIS 2.10 Pisa for Ubuntu/Windows already available?
2
votes
3answers
2k views

Using LAStools in QGIS gives “global name 'os' is not defined”?

I have a problem with LAStools in QGIS 2.6.1. I have never used QGIS to process LiDAR data before. I downloaded LAStools yesterday from the rapidlasso GmbH website. I unzipped the “lastools.zip” ...
2
votes
4answers
2k views

Intersection reports invalid geometries

I want to intersect two layers (shapefiles) with QGIS 2.18. For both layers, I tested validity with QGIS Vector / Vector Tools / Check validity and GRASS v.build.check (with default parameters) both ...
2
votes
1answer
524 views

Escaping cut of western/eastern hemispheres in QGIS?

I am very new to QGIS and GIS in general, so I am struggling with the following: when I do a map of Russia, I get the part next to Alaska being drawn far left from Europe, as it lies behind 180o... I ...
2
votes
1answer
522 views

Multi Language support for QGIS python plugin

Is there any method for python plugin in QGIS 2.8 to support multiple languages.(including .ui files that is call from this python).Please anyone can help i am new to this environment
2
votes
0answers
1k views

Invalid geometry

I'm working on some shapefiles in both ArcGIS 10.2 and QGIS 2.0. I have 3 files which I have cleaned of self intersections in ArcGIS using Repair Geometry. I have also checked for Overlaps using the ...
1
vote
2answers
1k views

How to get a layer that is not active with PyQGIS

I want to retrieve attributes of selected objects on a layer with PyQGIS. All example I see is for the active layer: vlayer=qgis.utils.iface.activeLayer() selected_bf = vlayer.selectedFeatures() But,...
1
vote
1answer
358 views

Why doesn't QGIS export polygon styling when saving to KML?

I'm trying to convert shp to kml using the Save As... dialog in QGIS 2.16, but none of the layer styling is appearing in the output kml. I've chosen the 'feature symbology' option, it doesn't seem to ...
1
vote
1answer
2k views

Set Relative Hyperlink to open windows explorer using Actions in QGIS

I am wondering how to solve this problem I am having. I am trying to make an action in QGIS when I click on my feature, windows explorer will display the folder for that feature. I have the folder ...
1
vote
2answers
834 views

QGIS 2.0 Automatic generation of a vector layer out of a point layer

I am an environmental engineer and the aim of my QGIS 2.0 project is to visualize the results of a sewage water system inspection. In a first step I included the hoppers from a csv file and added a ...
9
votes
3answers
9k views

Is it possible to rotate the canvas in QGIS

Can the canvas be rotated so north is pointing in some other direction than defined by the projection? This question answers with respect to the composer, but not the canvas. There is a related 5 year ...
7
votes
1answer
206 views

How to submit user scripts for Processing Toolbox?

QGIS 2.6 change-log says that now there is some kind of repository where users can submit their scripts to make them available for everyone. Unfortunately I was unable to find any details about how to ...
7
votes
1answer
196 views

Citing old version of QGIS in bibliography of assignment?

I've used QGIS 2.4.0-Chugiak to create maps for my assignment. I would like to know what is the correct way to reference QGIS in-text and in the bibliography. I've looked up Citing QGIS in formal ...
6
votes
2answers
382 views

Why does the qgis LTR release date lag behind the current release?

This is just a simple curiosity but I haven't been able to find an answer. Qgis 2.14 will be the LTR, but when it was released it was posted as the current release with 2.8.7 still as the LTR. Will ...
6
votes
2answers
4k views

Open Raster stored in ESRI V10.0 Geodatabase in QGIS V2.4

Is there a way to open a raster that is stored in ESRI V10.0 Geodatabase in QGIS V2.4. I can open the vector layer, but there does not seems to be a way to open a raster.
6
votes
2answers
6k views

How to add *.ecw files to QGIS 2.0 on Windows?

How do I add and view *.ecw raster images in Qgis 2.0 ?
6
votes
2answers
2k views

Set the layers style programmatically using QGIS

I have a layer of GPS points (about 60 layers) loaded inside my .qgs file. I want to set all their styles in the same manner using a .qml file without doing it one by one. Can somebody illustrate ...
6
votes
1answer
2k views

Ripley's K function in QGIS Chugiak 2.4

I need to apply the Ripley's K-function on a point pattern in QGIS 2.4 Chugiak, but I don't know how to do. I think I need to use some plugin or extension (maybe GRASS, R or something), but I haven't ...
5
votes
1answer
733 views

Plotting points that have relative coordinates rather than total station coordinates on map?

I have about +100 points of various descriptions from an archaeological survey. They are the backlog from years of excavations BEFORE systematically using Total Station at the site. For each artifact ...
5
votes
3answers
432 views

QGIS Composer thematic map : one (png, pdf, etc.) map per feature type

I've got a shapefile that contains thousands of features that can be group by categories. These features are sometime located in the same place so they overlap. An example of the content of my ...
5
votes
1answer
204 views

QGIS 2 bold Layer names?

I am currently working with QGIS 2.0 in an Ubuntu environment. I have a quite large project with many different layers and layer-groups. By default the layernames are in bold fonts and the groups are ...
5
votes
4answers
163 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 ...
4
votes
1answer
1k views

QGIS Segmentation fault (core dumped)

QGIS 2.14 worked fine until a couple of days ago (ubuntu 15.10 wily), but now crashes at startup with only this error : Segmentation fault (core dumped) sudo qgis doesn't give any error but QGIS don'...
4
votes
2answers
2k views

Grass Processing tools via QGIS : v.clean snap, chdangle, and rmdangle

Using QGIS 2.6 Grass Processing tools, I'm trying to clean up a topology on a water network layer. I noticed topological errors when first trying to break all lines on intersections using v.clean ...
4
votes
0answers
77 views

Model script works in QGIS 2.14 but not 2.18 [closed]

I created a model that worked fine in QGIS 2.14. With help I included a script in the model that prevented the model from running unless a feature was selected. But after upgrading to 2.18 the model ...
4
votes
1answer
737 views

USA Contiguous Albers Equal Area Conic to miles

My data is in USA Contiguous Albers Equal Area Conic projection. How can I convert the USA Contiguous Albers Equal Area Conic projection to miles?
4
votes
1answer
192 views

QGIS project crashes when project CRS is changed and all layers are activated

My QGIS project has four vector layers, three of them are from the NaturalEarth dataset (countries, regions and ocean layer). The other two are shapefiles for plant locations and plant names. Whenever ...
4
votes
2answers
779 views

Performing addition in QGIS Raster Calculator?

I am using QGIS 2.6 on Windows 7. I have generated two rasters from vector layers. They cover the same extent and have the same projection (Irish Transverse Mercator) and cell size (5m x 5m). I have '...
4
votes
1answer
449 views

QgsVectorFileWriter creating empty shapefile and invalid GEOJson

A script I wrote recently as an answer here was written and was working in QGIS 2.14.?, but now that I've updated to 2.18.3, the script is not working. I'm not getting any error messages saying ...
4
votes
1answer
368 views

How to refresh layers independently?

I'm writing a C++ application using QGIS API and I would like to improve the performance. I want to render 5 layers: one raster layer using gdal to load Bing/Google Map tiles 4 custom QgsMapLayer (...
4
votes
0answers
350 views

Rule-based labeling and the Data defined placement options are not working together (QGIS 2.12, 2.14)

After setting "Rule-based labeling" to my layer (new feature since QGIS 2.12), my data defined labeling is not working any more (see labeling tools on the right side): Going back to "Show labels for ...
4
votes
2answers
299 views

Easier calculation of a surface using QGIS

I'm looking for an easier way to calculate the surface on QGIS: My project CRS is in Lambert93. Currently, when I'm calculating a surface using QGIS, when the surface seems wrong, I always have to: ...
4
votes
1answer
3k views

How to remove selected elements from a QGIS legend?

I'm working with a QGIS project with a number of layers. When assembling a printout all visible layers are automatically added to the legend: I would like to exercise some control over the legend ...
3
votes
0answers
160 views

Raster calculators in SAGA return incorrect results

Here's a sample of my dataset (one cell) with 28 different raster values, representing 28 individual Float32 rasters with identical parameters. 0.0000264434, 0.0049953502, 0.0007529828, 0....
3
votes
1answer
8k views

QGIS polygonize error 4 “file does not exist in the file system”?

When I try to convert a raster DEM (in .asc or geotiff format) to polygons I get the error below: ERROR 4: `Y:/GIS/oversvmmelser/tmp/out.tif' does not exist in the file system, and is not ...
3
votes
1answer
689 views

Whats wrong with the difference tool QGIS 2.14.1?

I want to get the difference between two poligons. I compare the result from Arcgis erase tool and QGIS difference. ArcGIS give me that I want, but Qgis don't. Why? QGIS not only give wrong ...
3
votes
1answer
74 views

Multiple layers auto-updated when one of them is modified

I just discovered this post and I found what I searched here. But I was wondering if there was a way to have multiple layers (let's say l1, l2, l3, l4) being updated automatically when you change ...
3
votes
2answers
1k views

How to set NULL as default value for a date field in QGIS 2.4?

In QGIS 2.4, i am unable to set the default value as NULL if i have not updated any value on date fields. Its automatically taking the current system date. I am expecting to set the default values(...
3
votes
2answers
9k views

How to avoid “Handle bad layers” message when using QGIS Flowmapper plugin?

In QGIS, if I close a project and try to open it a few days later I often get a message that says "Handle bad layers". This is very frustrating because when I open the project various layers will have ...
3
votes
1answer
519 views

Spatialite WITH clause issue

I've encountered an issue: when I try to execute in Spatialite_GUI query that contains WITH clause I get SQL error: near "with": syntax error. Also WITH unlike SELECT and other keywords is not ...