New answers tagged

0 votes

QGIS in conda environment

Installation has worked in 2023 as described in the answer https://gis.stackexchange.com/a/450154/30184 but I confirm that it does not work for me today. conda install conda-forge::qgis Collecting ...
user30184's user avatar
  • 64.5k
1 vote

Control labels connector position on line feature

You can move label callouts manually using the Move Label tool. Hover over either end of a callout to see a red square anchor, click and drag, then click again to release. To reset the callout to ...
she_weeds's user avatar
  • 11.9k
0 votes

Opening a .ppkx ArcGIS Pro file in QGIS or ArcMap

ArcGIS Pro package files are not backward compatible with ArcGIS v10x. ArcGIS Pro package files are proprietary data and not usable in non Esri (ArcGIS Pro) applications like QGIS. If your school had ...
GBG's user avatar
  • 9,614
1 vote

QGIS: expression in attribute table between greater than and less than with different categories in one field

Or maybe you just want to visualize the different categories?
P.J.'s user avatar
  • 11
1 vote

Function from QGIS to QField on offline project file

No.QField does not support user defined functions. However, it does support expressions. Are you sure an expression will not suffice? If not, QField does support triggers, which may provide a ...
Oisin's user avatar
  • 1,801
2 votes
Accepted

How to save KML layer as an SVG file using QGIS

Exporting most "final images" in QGIS is done via print layouts. This allows you to export in many formats, including vector formats like PDF and, as you mentioned, SVG. Go to Project > ...
wildkoala's user avatar
1 vote

Saving workspaces with dynamic filepaths

This is an interesting question. Unfortunately, QGIS cannot resolve environment variables, but it can repair invalid paths during project load. The problem can be solved with the help of a small ...
christoph's user avatar
  • 5,460
0 votes

Selecting data with Symbology

This is what I found with the help of ChatGPT. On Symbology ---> Rule based: CASE WHEN "Mx / m"='% Zn' THEN '#ff0bc2' WHEN "Mx / m"='% Cu' THEN '#bd9802' ELSE '#ff0109' END
Snowy Owl's user avatar
1 vote

Heatmap using lines in shapefile in QGIS

The line density tool in the interpolation toolset might work, especially if you use a small raster cell size. If each route is a different file you could do spatial join with a summation added. Then ...
GBG's user avatar
  • 9,614
2 votes

Drawing routes (on road shapefile) between X,Y coordinates in QGIS

It's a fast fix: The basic idea is to convert your points to a WKT Well-known text representation of geometry in EXCEL and export it as CSV data into QGIS. Therefore we create a new field (column) in ...
Xeppit's user avatar
  • 1,180
0 votes

Finding rectangular polygons in a multipolygon

I have a working solution which is good enough for the purposes of my analysis. It is not perfect but may help someone else. I've created a processing model in QGIS that works through the following ...
CitizenFish's user avatar
5 votes

QGIS: expression in attribute table between greater than and less than with different categories in one field

In the Field Calculator, you can use the following expression: CASE WHEN "value" < 3 THEN 'cat_01' WHEN "value" >= 3 AND "value" < 6 THEN 'cat_02' ...
Xeppit's user avatar
  • 1,180
1 vote
Accepted

Set random points within a given distance of a known street network

This can not be done for a general street network. Consider a street network of 40,000 1km roads that all branch from a single point (a very unlikely network, but extremes serve to illustrate the ...
Spacedman's user avatar
  • 63.2k
1 vote

QGIS Forms Range Widget steps

I have the same problem on QGIS 3.34, regardless of the precision of the field datatype. I think you should file this as a bug on GitHub. It seems like a problem when incrementing from NULL. One way ...
she_weeds's user avatar
  • 11.9k
1 vote

Extract specific information from a shapefile

I assume that when you say you have "72 pipes that have unique ID's", the remaining 3000+ pipes share an ID with one or more of the other pipes? I created a dummy layer with 15 features, 3 (...
Tom Brennan's user avatar
  • 4,362
3 votes

Extract specific information from a shapefile

Your question is slightly vague, but I assume you mean that you have a list of pipe IDs and want to extract those pipes from a large dataset of pipes with IDs. If so: Joining method Put the list of ...
wildkoala's user avatar
7 votes
Accepted

Displaying two attributes of line vector layer with same color ramp in QGIS

You could use data defined override on the colour of your lines, depending on the attributes. Using ramp_color() you can use any number between 0 and 1 in order to get a colour within the mentioned ...
Erik's user avatar
  • 16.1k
4 votes
Accepted

How to configure the Attributtes forms to show the historic table related to 'n' records in QGIS

You can create a relation between the geometry layer layer and the table having the extra data. Go to project/properties/relations/add relation. Make sure to give a name to the relation. Then open ...
JGH's user avatar
  • 41.6k
6 votes
Accepted

Set default in QGIS Drop Down

Assuming your file has at least one other field (e.g. "notes"), you could use the following expression as your default value and enable 'Apply default value on update' without it overriding ...
she_weeds's user avatar
  • 11.9k
1 vote
Accepted

How to style KML file boundary lines

You style KML polygon layers like you would any polygon layer: Double-click on your KML layer in the layer list. This will open the layer's properties window: On the left there are icons, one of ...
peter's user avatar
  • 810
2 votes

Least cost path based on flow direction

You may need to break your original question down into separate questions. Below is is what I would call a flow direction map. It's based off a raster DEM and each pixel has a flow direction in one of ...
Tom Brennan's user avatar
  • 4,362
3 votes
Accepted

Find location of highest point density in QGIS?

Heatmap. Set a search radius, output raster size and kernel_shape=Uniform (Advanced options) Raster pixels to points to create a point in each raster cell center with the column VALUE storing the cell ...
BERA's user avatar
  • 71.2k
6 votes

Creating map tip with pictures stored in relative path

you can put the images in a subfolder below your project and then you can refer to the images as a relative path...in the example below I have a field imagestoring the file name, which are located in ...
eurojam's user avatar
  • 10.7k
1 vote

Using QuickOSM in model designer QGIS

Use "Build query inside an extent". You can then hook this up to your Buffered output: If you use "Build query inside an area", you need to supply a description of an area (eg a ...
Tom Brennan's user avatar
  • 4,362
1 vote

No result from algorithm r.stats in QGIS

Can you try this on another Windows user without special characters in its name? The log says that it cannot find temp file C:/Users/Nicolò/AppData/Local/Temp/processing_fhmXKb/...
elevation_modeller's user avatar
1 vote
Accepted

Finding shortest distance from one point to each polygon and the distance from that point of the polygon to any of the points in the polygon in QGIS

I've assumed you have 3 layers called BasePoint (your point A), Polygon, and PointsInPolygon. Depending on how you want the distance displayed, you can get the distance from each Polygon feature to ...
Tom Brennan's user avatar
  • 4,362
2 votes

Error with array_foreach when using together with aggregate in QGIS expression

There is a known bug with array_foreach and aggregate. As a workaround, using nested array_foreach may work, as in this question: QGIS functions: aggregate and array_foreach not working for vertices I ...
Tom Brennan's user avatar
  • 4,362
0 votes

User profiles management in QGIS

"Settings | Options | User Profiles | Choose profile at start up" works fine for me.
Alirza Mamedov's user avatar
0 votes

Adding child features in a many-to-many relation using geospatial overlaps with QGIS

Hopefully someone will post an improvement on this, because it's not very neat, but my current solution is to run the following SQL delete from countries_rivers; insert into countries_rivers (...
Isaac Braham's user avatar
4 votes

QGIS functions: aggregate and array_foreach not working for vertices

You can work around the array/aggregate issue by using nested array_foreach loops. It looks pretty ugly but it spits out the right results for your test dataset! The trick - which I've never tried ...
Tom Brennan's user avatar
  • 4,362
1 vote
Accepted

Problem in creating diagrams for every single point in qGIS

Reformatting the attribute table by merging with the similar location field and creating different fields for each numeric feature that you want to show on pie chart should help. With this data ...
hillsonghimire's user avatar
2 votes

Create a raw SQL statement ready to be used in PostGIS from a geometry in QGIS

You can add a virtual field (type text) that gets the text representation of the geometry and ads the projection. Then you can copy/paste from the attribute table. 'st_setSRID(\'' || geom_to_wkt($...
JGH's user avatar
  • 41.6k
2 votes

QGIS functions: aggregate and array_foreach not working for vertices

First i tried this code, which works and get the countries BUT it's not ordered. Because the the intersection order is ordered by the polygons and not by the nodes. aggregate( layer:= '...
Xeppit's user avatar
  • 1,180
1 vote
Accepted

QGIS DEM (Raster) merge: errors

Quoting to solution to one of the similar issue: https://gis.stackexchange.com/a/74068/126926 (Quick Summary: You can't write data to a VRT. It's a "Virtual Raster", and is actually just an ...
hillsonghimire's user avatar
1 vote
Accepted

QGIS: batch assigning CRS for point clouds

There is a setting in "CRS and Transforms/CRS Handling/CRS for Layers": Set it to "Leave as an unknown CRS (take no action)" to prevent QGIS prompting for a CRS selction.
Tobias Schula's user avatar
2 votes
Accepted

How to Delete Output of the Processing Tool in PyQGIS

Sadly, you can't. QGIS does not release the file handlers of those files while the Processing tool is running. https://github.com/qgis/QGIS/issues/33641#issuecomment-790622961 suggests a workaround (...
bugmenot123's user avatar
  • 11.2k
4 votes
Accepted

Combining multiple Polygons into one MultiPolygon in QGIS

"Collect geometries" processing algorithm is what you are looking for. Takes a vector layer and collects its geometries into new multipart geometries. One or more attributes can be ...
Kalak's user avatar
  • 3,693
7 votes
Accepted

How do I merge/dissolve two polygons within one shapefile in QGIS?

It's a little tricky given that the dissolve/union simply extracts separate shapefile. Here is how you could do that: STEP 1: In the menu item go to: VIEW>TOOLBAR, and then toggle on "Advanced ...
hillsonghimire's user avatar
1 vote

Query polygon layer by geometry size

Right click on the layer --> Filter Enter your query It doesn't work if your layer is in the edit mode In Arcgis it is a little bit more logical that the defintion qurey is in the property window/...
Xeppit's user avatar
  • 1,180
0 votes
Accepted

QGIS: freeze frames in print layout

All you gotta do is click on the checkboxes of "Lock Layers" and "Lock styles for layers" (Red Circle) in the item properties > Layers > Lock Layers and Lock Styles for ...
fhernandez's user avatar
0 votes

Lowering elevation of lake using QGIS

The Serval Plugin worked really well for this problem. It has a nice tutorial on it's help page.
FLO-2D's user avatar
  • 21
0 votes

QGIS model algorithm "Load layer into project" wont allow layer to be loaded more than once

Try adding some processing step prior to loading the layer. Although this is creating a new temp layer, maybe that wont work for you. I've added Refactor fields without changing any fields:
BERA's user avatar
  • 71.2k
1 vote

Is there a simple way to sort layers alphabetically in QGIS?

https://plugins.qgis.org/plugins/layer_tree_tools/ This is a plugin that can sort the layers by name (from A to Z or Z to A) and also by: geometry, position (extent), file size, storage type, encoding,...
ViperMiniQ's user avatar
0 votes

Update point by changing coordinates in attributes table [QGIS]

As far as I know, it's not possible to update geometries by changing field values, I mean, it's possible but you'll need to run a process or import data again.What you can do is to use the geometry ...
Mayo's user avatar
  • 3,887
1 vote

QGIS geocoding with MMQGIS via OpenStreetMap finds almost no adresses

The problem was the encoding, probably because the file contains German adresses which include umlauts and ß. My solution was to open the csv-file with Notepadd++, then go to 'Encoding'. It was ...
i.i.k.'s user avatar
  • 1,271
1 vote

Why can't I import QGIS module in PyCharm

PyCharm does not seem to actually activate the environment which means that QGIS' Python paths are not registered. Check these: https://stackoverflow.com/questions/28326362/pycharm-and-pythonpath/...
bugmenot123's user avatar
  • 11.2k
1 vote
Accepted

Loading laz point cloud in QGIS error: Invalid Data Source

I also couldn't load "bad" into QGIS 3.22.16. I drag-n-dropped into and then re-saved "bad" in CloudCompare, compressed to LAZ in Las2Las(this step probably unneccessary), and then ...
Pointdump's user avatar
  • 1,025
1 vote
Accepted

How to union two polygon shapefiles by one or more attribute fields in QGIS

Given that your two layers presumably have the same attributes, you can just copy and paste: Edit -> Select -> Select All Features Edit -> Copy Features (Ctrl-C on Windows) Switch to other ...
Tom Brennan's user avatar
  • 4,362
2 votes

How to union two polygon shapefiles by one or more attribute fields in QGIS

You can use SQL with UNION operator. If you can have duplicate records, you should use UNION ALL, or the duplicates are dropped. SELECT * FROM "LayerA" UNION SELECT * from "LayerB" ...
BERA's user avatar
  • 71.2k
4 votes
Accepted

Workaround for QGIS unable to load DNC nautical charts (OGDI / VPF format)

According to the GDAL OGDI format documentation you can use an OGDI "gltp URL": gltp:[//<hostname>]/<driver_name>/<dataset_name>:<layer_name>:<family> The docs ...
user2856's user avatar
  • 65.3k

Top 50 recent answers are included