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
0 answers

Can't import qgis module to run python scripts external to QGIS

I am unsuccessful in running a QGIS python script (generated and working in QGIS and then saved as a python script). At the moment I am not fussed about the functions it is calling as can't even get to a standard print statement. The bigger picture…
DConnaghan
  • 31
  • 1
3
votes
2 answers

Reading/importing .tpk maps into R or QGIS and use as shapefile

Is it possible to import a .tpk map file either in R or QGIS and use it as a shapefile? I need the coordinates of specific locations in the .tpk map that could be extracted with a shapefile map. I do not have access to ArcGIS. Grateful for any…
edo
  • 63
  • 1
  • 4
3
votes
1 answer

How to only buffer outside of the polygon and leave the shared edge un-buffered?

What I am trying to achieve is to buffer a set of connecting polygons while leaving the shared edges un-buffered. After some searching, ArcGIS's buffer wizards + dissolve does exactly that but unfortunately without an Arcgis license I am searching…
chmnata
  • 74
  • 4
3
votes
1 answer

Using third party Python modules in QGIS

I developed a QGIS plugin that uses third party libraries. The current situation is that the user of the plugin, has to install some Python libs into QGIS, before he/she can use my plugin. Every time a new QGIS version is installed, the used needs…
nlrmcm
  • 31
  • 2
3
votes
0 answers

flatpak add additional dependencies after install (QGIS)

I'm encountering a problem with the org.qgis.qgis package. It has a self-contained python install which it uses to run its plugins and console. This page tells me to install python modules using the following command: flatpak run --command=pip3…
graial
  • 79
  • 8
3
votes
0 answers

Working with `PyQt5.QtCore.QLibrary` in Python: How to cast a `sip.voidptr` to a function?

I am trying to port (some of) the logic of void QgsPluginManager::getCppPluginsMetadata() from QGIS from C++ to Python. In C++, the relevant section looks about as follows: /* `lib` is a path (string) to a QGIS plugin shared object file, e.g.…
s-m-e
  • 3,433
  • 2
  • 34
  • 71
3
votes
1 answer

Caculate point 50 miles away (North, 45% NE, 45% SW)

In PostGIS, Is there a way to calculate another point 50 miles away in different directions? Given a point, ('New York',-74.00,40.71), how do I calculate the following points? 1) 50 miles directly North 2) 50 miles 45% North East 4) 50 miles…
user2012677
  • 5,465
  • 6
  • 51
  • 113
3
votes
0 answers

PyCharm: Error while import module (qgis_core)

I want to use PyCharm Community Edition 2019.3.1 to write Python based programs for QGIS on Windows 10 64bit. I installed QGIS (v.3.10.1) via the OSGeo4 Installer running with default settings. The implemented Python version is Python 3.7. I created…
DrSnuggles
  • 217
  • 1
  • 14
3
votes
1 answer

Delete layer from GeoPackage

I am trying to delete a vector layer from a GeoPackage file using the sf package. By "delete" I mean permanently remove NOT overwrite or update. I am aware of the delete_layer option, but as I understand this only functions to delete a layer before…
M.Teich
  • 575
  • 5
  • 22
3
votes
1 answer

Stop 'JavaScript function triggering css width' from affecting scrolling-screen position (On Mobile device)

This might be a simple issue to fix but I struggled: On this website index page, if you scroll a bit down to interactive map. This problem also arises on web browser on laptop as well.(just discovered! ps. This was an embedded map as iframe html!…
Andy Yang
  • 67
  • 5
3
votes
1 answer

Trying to plot in tmap shapefile with attribute

I am trying to work with municipality data in Norway, and I'm totally new to QGIS, shapefiles and plotting this in R. I download the municipalities from here: Administrative enheter kommuner / Administrative units municipalities Reproducible files…
Joanna
  • 33
  • 4
3
votes
1 answer

How to shift/move/translate overlapping geometries?

I have a road network in which all roads are represented by lines. Depending on the size of the road, a road can be represented by two geometries (i.e. two driving directions). However, these two geometries are displayed on top of each other. I want…
Viaene
  • 111
  • 10
3
votes
1 answer

How to make Python wait while QGIS renders a shapefile

I have written code for my QGIS 2.8.1 which can successfully take screenshot of one shape file, but unfortunately it doesn't work when I try with multiple shapefiles. So basically if I replace allFiles = ["C:/Shapefiles/Map_00721.shp"] in the code…
Prashant Kumar
  • 501
  • 8
  • 26
3
votes
2 answers

I am trying to run the r.reclass on QGIS and keep getting an indentation error?

I am trying to reclassify a raster on QGIS 3.4 and I keep getting this error: File "/Applications/QGIS3.app/Contents/MacOS/grass/grass74", line 1697 sys.stdout.write("%s\n" % grass_version) ^ TabError: inconsistent use of tabs and spaces in…
CharlotteJ
  • 31
  • 1
3
votes
2 answers

How to modify attribute table in QGIS

I'm trying to create a global map grouping countries by some criteria, in QGIS, I download one template with all countries, and I'm trying to update this dataset. I opened attributes table --> edit -->add column, and after I choose the calculator…
Carlos Tellez
  • 147
  • 1
  • 2
  • 10