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
7
votes
1 answer

How to read out the text from QLineEdit in python?

I have created for my plugin a start GUI with 3 buttons. This works very well and if I click on one of the buttons a specific action is started. So far this works. If I click on one of the buttons a new GUI with two buttons "ok" and "cancel" and a…
Sven
  • 195
  • 1
  • 1
  • 4
6
votes
1 answer

QGIS 2 web plugin and shape drawing option

I would like to be able to draw some features on the map generated by the QGIS2web plugin. I found some Openlayers drawing plugin here: https://cdn.rawgit.com/HamHamFonFon/ol3-drawFeatures/82f29a3f/examples/basic_use.html But I don't know how to…
Geographos
  • 827
  • 2
  • 23
  • 57
6
votes
1 answer

NameError: name 'QgsMapLayerRegistry' is not defined

I am using Qgis 3.4.9. How can i fix To fix the error: NameError: global name 'QgsMapLayerRegistry' is not defined. from qgis.core import QgsMapLayerRegistry Is not working in Qgis 3.4.9 QgsMapLayerRegistry.instance().addMapLayer(point_layer)
Tono Kuriakose
  • 718
  • 6
  • 19
6
votes
2 answers

How can I get the encrypted password in the auth-manager with PyQGIS?

I'm making a QGIS plugin in which I ask the for authentication object (with QgsProcessingParameterAuthConfig) for the PostgreSQL connection (which is already set in the connecions list of the user). My goal is to take the login and password with…
Byga
  • 61
  • 2
6
votes
1 answer

Using Pycharm with QGIS 3

I've installed QGIS 3.4 using the network installer (64 bit) and tried to use qgis with pycharm as described here: http://spatialgalaxy.net/2018/02/13/quick-guide-to-getting-started-with-pyqgis3-on-windows/ However, I can´t get the processing…
Rudolf
  • 61
  • 4
6
votes
0 answers

Plotting Geohash data in QGIS

Has anyone had any luck in importing data that has Geohash as a field into QGIS for any visualizations? Ultimately my data is - Name, Geohash, Value Bob, 9mu9ecy, 3 Nancy, 9mu9ecy, 8 Nancy, 9mu9eff, 5 Tom, 9mu9ege, 5 Bob, 9mu9ege, 5 Mike, 9mu9emx,…
MrGumbyO
  • 95
  • 8
6
votes
1 answer

Where can I get the .geojson file for India and not separate files for each state/territory or any other distinction?

Does India have a .geoJSON file? I want to make data visualization using d3.js for the states, cities and hence need the GEOJSON File representing India. Where should I start from or what should be my approach? Also Mike's Tutorial doesn't help…
godimedia
  • 987
  • 2
  • 12
  • 28
6
votes
1 answer

Does QGIS have support for WMS-T (WMS with time)?

Does anyone know if there's support for WMS-T in QGIS? Through the app I can add WMS layers, but I can't work with WMS-T (there's no place to set the time parameter). I been going through the the Python plugins and although there are some that do…
5
votes
2 answers

Cannot plot sf linestring in R: Error in CPL_geos_is_empty(st_geometry(x))

I have hurricane track points which I converted to lines in QGIS: https://i.stack.imgur.com/Gtt61.png https://i.stack.imgur.com/6z8MO.png I have both saved as shapefiles and load them into R using the sf package. The points will plot using the…
FreyGeospatial
  • 325
  • 4
  • 17
5
votes
4 answers

Zonal Statistics QGIS

Is there any open source alternative for Zonal Statistics tool (ArcGIS Spatial Analyst)? What is the best tool (which I can use in script) dor counting statistics of raster files?
5
votes
2 answers

How to convert png to geotiff?

I have a PNG image file.I want to convert it to GeoTiff. I installed QGIS software but i can not use it and i dont know how to Georeference the image. Please help me. is there any online software ?
BJ_213
  • 73
  • 2
  • 9
5
votes
1 answer

importError: DLL load failed(import h5py)

I installed the OSGeo4W package to use h5py on a Windows environment. I used OSGeo shell to install h5py using pip install. C:\Users\Public\Desktop\OSGeo4W>pip install h5py When I open QGIS and go to the Python Console in QGIS I get this…
Kyungdong Kim
  • 95
  • 1
  • 2
  • 4
5
votes
3 answers

How to use WKT to draw polygon in qgis?

I have a CSV file with a data field which contains data like bellow POLYGON ((79.87749999947846 6.997500000409782, 79.88249999947845 6.997500000409782, 79.88249999947845 7.002500000409782, 79.87749999947846 7.002500000409782, 79.87749999947846…
GihanDB
  • 591
  • 2
  • 6
  • 23
5
votes
4 answers

Adding a unique feature id to GeoJSON in QGIS or Python

According to the GeoJSON Format Specification "If a feature has a commonly used identifier, that identifier should be included as a member of the feature object with the name "id"." My question is how do I add this to my GeoJSON? If I create it as…
fantomen
  • 81
  • 2
  • 8
5
votes
3 answers

Is it possible to export geometry data from a shapefile to CSV from QGIS?

I'm trying to get geometry data from a large quantity of shapefiles into a database (Google Datastore). The thing is, I don't need to work with maps, I just need the coordinates, so I would like just the numerical coordinates. Ideally I'd like to…
Katharine Osborne
  • 6,571
  • 6
  • 32
  • 61