Questions tagged [qgis]

QGIS is an open source program used to process and visualize geospatial data. It is available for most desktop and mobile operating systems.

QGIS (formerly Quantum GIS) is a user-friendly, cross-platform Geographic Information System (GIS) application with support for Linux, Unix, MacOS X and Windows. News updates are available from the QGIS blog.

QGIS supports numerous vector, raster, and database formats and provides numerous features for exploring, creating, analyzing, converting and exporting geospatial data. The core functions can also be extended through external plugins written in .

QGIS is an official project of the Open Source Geospatial Foundation (OSGeo) and is licensed under the GNU General Public License.

The gis.stackexchange.com site covers QGIS use cases in detail.

1691 questions
3
votes
1 answer

PostGIS - Merge buffers geometry in different groups (when intersecting)

I've some geometries stored in this table (140k) CREATE TABLE buffers (pk integer NOT NULL,geom geometry(MultiPolygon,4326),) and i would like to create (if possible) a new table (buffersmerged) that will contain the resultants geometries where…
entalpia
  • 101
  • 1
  • 11
3
votes
1 answer

Merge non-adjacent polygons in Qgis or Postgres

I am working with Qgis and PostgreSQL. But i can't figure out how to merge the non-adjacent polygons in my screenshot into one record? Can anybody help mee with this problem? I want all the polygons with the same cat to be merged in one record. See…
L. Grunn
  • 175
  • 2
  • 15
3
votes
2 answers

How to get QGIS debug output

I am trying to get my build of QGIS to output the debug messages from calls to QgsDebugMsg. Here's what I have so far: I've built QGIS configured as RelWithDebugInfo and in the application's Help > About > About window, I see the text: "This copy of…
David
  • 170
  • 2
  • 9
3
votes
1 answer

Python virtualenv picks up wrong library

$ virtualenv --version 13.0.3 I create a new virtualenv with Python3 without access to global site packages. $ virtualenv --no-site-packages venv_pygments --python=/usr/local/bin/python3 Running virtualenv with interpreter…
ustroetz
  • 5,802
  • 16
  • 47
  • 74
3
votes
0 answers

How to automatically detect X/Y fields in CSV

I am developing a plugin in QGIS that needs to import a csv file at some point. To do that, I use the common process : uri = "file:///"+fileName+"?delimiter=%s&xField=%s&yField=%s" % (";", "X", "Y") layer = QgsVectorLayer(uri, name,…
Ril8772
  • 141
  • 3
3
votes
3 answers

Incrementing Python Dictionary Value based on a Counter

I have a dictionary with duplicate values. Deca_dict = { "1": "2_506", "2": "2_506", "3": "2_506", "4": "2_600", "5": "2_600", "6": "1_650" } I have used collections.Counter to count how many of each there…
user25976
  • 1,005
  • 4
  • 18
  • 39
3
votes
1 answer

No module named sip when running QGIS from Python

I have QGIS Valmiera 2.2.0 installed and started a simple python script using this documentation. I had a hard time because always when I used from qgis.core import * I got the message ImportError: No module named qgis.core. I fixed that with the…
ulrich
  • 1,431
  • 3
  • 17
  • 46
3
votes
0 answers

How to change the group icon in legend via Python in QGIS 2.6

I would want that group created by plugin differs from the group created by man. ;) How to change the group icon in legend via Python in QGIS 2.6? At version 1.x I did it this way: self.legendTree =…
dimamix
  • 31
  • 1
3
votes
0 answers

QGIS rich multiline labels, with different fonts, with symbol inserted?

This is now easy to make multiline label in QGIS, with concatenation in expressions. I would like to know if it would be possible to have different fonts, one per line (or per item). And to make the label richer, it it would be possible to insert -…
Cy's
  • 63
  • 5
3
votes
2 answers

python-qgis version information

Can someone tell me how I get the version information for python-qgis? I have tried all the usual foo.version or foo.__version__ or foo.VERSION. If someone knows how to do this, it would be a great help!
Mike
  • 439
  • 1
  • 6
  • 13
3
votes
1 answer

HTTP Error 400 when uploading spatial layer from QGIS to mapsengine using google maps engine connector

I installed the "google maps engine connector"-plugin for QGIS in order to upload point data to mapsengine for generating maps to embed in a website. The reason I use QGIS is because the interface is because I can make a direct link with my postgis…
jedgroev
  • 115
  • 5
3
votes
0 answers

Any clue how to read a .style (ArcGIS) file in Python, for converting into another platform-specific format?

The problem I am face with is that I have all my data as shapefiles but my organization works with only 1 ArcGIS license. Migrating to QGIS to prominent amount of work, I need to convert my ArcGIS .style file to the .sld format of QGIS, to ensure…
Akhil
  • 181
  • 1
  • 15
3
votes
1 answer

Qt Designer Custom Widget: using flags

I have a problem with the declaration of flags in a widget which is used as a custom widget for QtDesigner. This widget is a QComboBox using a filter proxy model, called QgsMapLayerComboBox In the filter proxy model (QgsMapLayerProxyModel), I have…
Denis Rouzaud
  • 2,412
  • 2
  • 26
  • 45
3
votes
1 answer

Open a Mapbox map in QGis

I'm looking for a way to display one of my Mapbox map in QGis (baselayer edited on mapbox.com & data uploaded from tilemill). Did someone here already find a way ? Is there a feature or a plugin to do that ? Thanks for your future answers ! Adrien
AdrienVH
  • 91
  • 1
  • 4
3
votes
1 answer

Open georeferenced Raster .PNG .TAB in QGIS

how can I open a raster file in .png and .tab (made with MapInfo) and keep the georeferenced form in QGIS. thanks a lot