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

Openstreetmaps - continuous road?

I imported the OSM data for Switzerland in Postgres and I am interested in getting the road data of a continuous part of a highway (I know the name),that is, the part that connects two specific cities. The highway is quite big (A1) and connects a…
grasshopper
  • 3,988
  • 3
  • 23
  • 29
3
votes
1 answer

Topojson: How to design valid polygons, lines, points in GIS softwares?

Up to now I always used GIS files from the web, which provide me administrative polygons, rivers, landmasses, etc. I then convert them to Topojson format to feed D3js. Today I have to design my own layer (wine_areas) within Quantum GIS (QGIS).…
Hugolpz
  • 17,296
  • 26
  • 100
  • 187
3
votes
1 answer

qgis preferences in a python plugin

I'm developing a qgis python plugin. This plugin changes the default UI windows displayed (which I've already managed to do) and creates a few new tabs and such. Recently, it was requested that I modify some of the options within qgis. These are…
sentinel21
  • 546
  • 7
  • 24
2
votes
1 answer

IPython not available in PyDev console

I would like to use the IPython interpreter in Eclipse/PyDev. PyDev however does not recognize my IPython installation. The results I get is the following: >>> import sys; print('%s %s' % (sys.executable or sys.platform, sys.version)) PyDev…
user1297073
  • 21
  • 1
  • 3
2
votes
2 answers

PYTHONPATH and PATH system variables

I am working with quantum gis 1.7.2.During installation it creates python25 folder. I am working with python2.6 for python plugins for QGIS. i set system variable as: PATH :=C:\Program Files\Quantum GIS Wroclaw\apps\qgis …
poonam
  • 748
  • 4
  • 19
  • 40
2
votes
1 answer

writing python script to automate QGIS (Qt) tasks

I am using QGIS to do some repetitive mapping work. I have a floor plan of an elderly home which is digitized into QGIS with the bed numbers properly labeled, and a spreadsheet with the bed numbers and all the other attributes that belong to that…
lokheart
  • 23,743
  • 39
  • 98
  • 169
2
votes
2 answers

Python: SpatiaLite table to numpy recarray with datetime format?

I posted this question at the QGIS-user forum but it might be too technical, thus I take a chance and try here as well. My plan is to have a QGIS plugin that reads and plots time series data corresponding to selected points in a vector layer(the…
joskal
  • 31
  • 3
2
votes
0 answers

Error installing ipykernel (and others) in Conda environment due to QGIS Python installation

I am trying to install the ipykernel package in a Conda environment so that I can use it with Jupyter Notebook, but I am running into an error related to my QGIS Python installation. QGIS is in my base, and I've seen other errors related to this.…
Beardsley
  • 151
  • 5
2
votes
0 answers

QGIS-Pycharm-QT Reference not found

I know it is a never ending story and there a lot of articles around and I tried a lot of the tips without no success. Maybe I should also mention, that I had a lot of different versions of QGIS installed. The last one which was functioning in…
The Rabbit
  • 141
  • 5
2
votes
2 answers

Export a computed raster layer in QGIS by python module

I am using SAGA GIS and python modules in QGIS to compute the Topographic Position Index (TPI) for a group of Digital Elevation Models (DEMs) and I need to export each computed TPI in a separate raster file. How can I do it? See my written code…
2
votes
1 answer

PyQgis: item is not the expected type on a QgsMapCanvas

I am currently working on a PyQgis based standalone application and I need to add various QgsRubberBand to my Canvas. I made a subclass of it : LineAnnotation. The problem is that when I use the method "QgsMapCanvas.itemAt(event.pos() )" on a…
Eggdrasil
  • 21
  • 4
2
votes
0 answers

Standalone PyQGIS: How to add new layer to map on runtime?

I can’t do setLayers(), for a layer created by QGIS processing algorithm on runtime. How to add new layers to QgsMapCanvas in standalone PyQGIS?
2
votes
1 answer

which file in the raster stack do I use?

I have a *.zip file from arcmap. It contains a bunch of files. In the top directory, one *.xml, one *.ovr, and two nested directories, *.dat and *.nit files (in one), and 6 *.adf files (in the other). I drag the *.zip into qgis and there it sits in…
Mathew Vickers
  • 125
  • 1
  • 8
2
votes
1 answer

Disconnect signals for QGis plugin with dialog created by Qt Designer

I'm working on a plugin for QGis 3.x. The UI was created with Qt Designer and the plugin code boilerplate by Plugin builder. I do have 3 main files in my project : my_plugin.py with the main MyPlugin class and initGui(), unload() and run()…
Beinje
  • 572
  • 3
  • 18
2
votes
0 answers

Layer loaded from GeoJSON is the wrong size in Openlayers

I am trying to use OpenLayers to show some road features that I drew on a non geographical image in qgis. The output geojson I am using looks as follows (only one feature shown for demonstration). {"type": "FeatureCollection", "name":…
Jetpackb
  • 21
  • 2