New answers tagged qgis
0
votes
Showing QGIS Print layout extent in map as polygon
Static export - Processing tool
For a one-off export to an actual layer, use the processing tool 'Print layout map extent to layer'.
To access the processing toolbox press Ctrl+Alt+T, or go to ...
0
votes
Clickable HTML link in QGIS print composer pdf export?
Came here to add an update after searching for an answer on this in lots of places. Turns out that it's totally possible to get clickable links, in a variety of ways, but as this comment in GitHub ...
1
vote
QGIS – Add columns (number and names) based on the content of another column
Here’s how I approached this problem. Although it’s not the cleanest method, several constraints led me to this solution:
I don’t know how to program in Python.
The expected results are more about ...
2
votes
Self-referencing objects inside functions on print composer
You don't need to use map_get(item_variables(name_of_the_map)).
There is a variable called @map_scale, which is the scale of the map for which you want the grid.
2
votes
Only selecting Features that have another layers feature on top
Another option - use the field calculator to access the field in the poles layer that you want to transfer to the splitter layer with an expression like this:
This expression will set the new field ...
2
votes
Only selecting Features that have another layers feature on top
You can use Select By Expression CTRL+F3:
overlay_nearest(
layer:='Splitter',
limit:=1,
max_distance:=5)
on your Poles layer. Replace Splitter with the name of your splitter layer.
The ...
3
votes
How to snap Heatmap to outline of an island in QGIS
To clip the heatmap display to the island, move your island polygon to the top of the layer stack and display it as an inverted polygon, as described in this answer: https://gis.stackexchange.com/a/...
1
vote
Calculate weighted raster values per polygon depending on overlap with vector layer
I believe Zonal Statistics is calculating weighted average. Are you sure it doesnt when you use it?
I have a raster with values from 0-100 and a polygon layer with two polygons in it.
The first ...
2
votes
Creating polygon from selected lines in QGIS
The problem was that there were tiny gaps in my street segments. For example, the long top segment (the city limits) were separated from the vertical connector street in the center by 6cm.
I diagnosed ...
0
votes
Calculate weighted raster values per polygon depending on overlap with vector layer
You can use the tool "Raster pixels to polygons" to retrieve a polygon layer, with the extent and resolution of your raster layer. Each polygon holds the value of the pixel it was derived ...
1
vote
We getting different scale of dxf to base DWG file once we did georeferenced in QGIS?
Maybe the reason for your issue is that the GDAL DXF driver is setting the unit into Imperial Inches https://gdal.org/en/release-3.10/drivers/vector/dxf.html#units
GDAL writes DXF files with ...
2
votes
Creating one atlas QGIS plan to show multiple features that control atlas
I'm coming late to this party but I just had to figure this out by myself aswell.
In my case I had 100's of point features randomly distributed all over, some being very close to each other so there ...
1
vote
What is combine function in QGIS?
it is called r.cross (https://grass.osgeo.org/grass-stable/manuals/r.cross.html) finally found it too
0
votes
Is there a tool in QGIS similar to ArcGIS Combine?
I was facing the same problem and today i found r.cross (https://grass.osgeo.org/grass-stable/manuals/r.cross.html), since i didn't find anything in the internet talking about it i am comenting here
1
vote
Accepted
Showing lines as stacked bars side-by-side in QGIS
Using line symbol with an offset will give a close result, the main difference will be at the extremity of the segment where you may get superposition or gap.
There are two way to implement this
With ...
0
votes
Getting back to side bar after detaching layer panel in QGIS
Appears to still be a bug with Ubuntu 24.04.1 LTS (Noble Numbat) and QGIS 3.40.0-Bratislava. I cannot bring the Layers panel docked back to the side of the main window. Even after re-starting the ...
2
votes
Display French survey DEM in QGIS
So, after taking up the issue to QGIS side, there are some answers.
The jpg and png layers are served as 8 bit, which is clearly inadequate for a DEM (at the very least in France you need to code ...
0
votes
Loading raster results in wrong spatial location
In my case, I had an .ovr file in this context:
├── draft_birm30
│ ├── dblbnd.adf
│ ├── hdr.adf
│ ├── metadata.xml
│ ├── sta.adf
│ ├── vat.adf
│ ├── w001001.adf
│ └── w001001x.adf
├── ...
8
votes
QGIS scale-based callouts
You may use data-driven override on the callout lines, based on the variable @map_scale.
4
votes
Accepted
How can I create a print layout that is exactly filled with the contents of a shapefile?
you can use the data defined override possibilities of QGIS and override the map extent and the aspect ratio of your mapview in the layout with the following expressions:
override the mapextent of ...
2
votes
Accepted
Getting layer last modified value with QGIS Expression
For now, I can only suggest Python solutions that can be turned into a custom function via the Function Editor.
So, there is a polygon layer called 'polygon', which was the last modified on: 2024-12-...
0
votes
Importing DATEX II file to QGIS
I could suggest the following workflow. It is based on several Python packages: xml, requests, geopandas, and shapely. It works directly with the DATEX II file from the provided URL: https://fixcyprus....
2
votes
Vector nodes no longer highlighted in QGIS
As mentioned in the comments the snapping needs to be enabled either via Settings>Options>Map Tools>Digitizing or the Snapping Toolbar (right click on the top of qgis menus) the Shortcut is ...
0
votes
QGIS Change treeview categories in browser(2) panel
Using PyQGIS, it is possible to rename the Browser Root Items. Although these changes are not permanent.
from qgis.utils import iface
browser_root_items = iface.browserModel().rootItems()
for ...
3
votes
Accepted
Calculating quantity of sight using Viewshed in QGIS
First, create a set of points at the mast location with observ_hgt, target_hgt and radius values, like this:
Then running a viewshed is going to consider an observer at those heights up a mast, and ...
4
votes
Accepted
Getting attribute from CSV with QGIS Modeler
I've created a model with two input Vector Layers:
First one for the csv file with geometry type = Geometry Not Required
Second one for a point layer which should get the buffer value joined to it ...
-1
votes
Does HydroSheds (https://www.hydrosheds.org) provides labels?
Alright, I just read the FAQ:
Do the rivers, lakes, and basins in HydroRIVERS, HydroLAKES, and HydroBASINS have names?
It is currently not possible to identify the name of each waterbody or watershed ...
2
votes
Accepted
Interpolate from points from one vector layer along line vector using QGIS
one possible solution would be:
Interpolate by Inverse distance a new raster layer over your points
Buffer your line layer (river)
Clip the Raster with the buffered line layer as mask
0
votes
Was QgsMapLayerRegistry being removed in QGIS 3?
In standalone way:
"""remove layer from memory"""
QgsProject.instance().addMapLayer(your_layer)
QgsProject.instance().removeMapLayer(your_layer.id())
1
vote
Adding virtual field to layer from QGIS Graphical Modeler
Answer for anybody that would have the same question :
I found 2 ways to add a virtual field to an output (vector) layer from a model :
Create a new process that edits the output layer of the model ...
7
votes
Is stitching and aligning two layers a proper use of QGIS?
The Georeferencer is what you use to do this. Access it in the Layers -> Georeferencer... menu:
The tool will open in a new window.
Add your un-georeferenced image (the 18th century map) to the ...
1
vote
Writing predominant class of polygons on overlaying polygon in QGIS
Try the following expression for labelling:
array_majority(
overlay_intersects(
layer:='buildings', -- the layer with building
expression:="class" -- the field with ...
0
votes
How to get Orthometric (or geoid) Elevation in QField?
On the documentation of Qfield (link), you will find this:
Altitude values can be corrected with vertical grid shift files to calculate orthometric height.
Vertical grid shift files have to be made ...
3
votes
QGIS Stuck during boot-up 'QGIS READY'
Solved.
Logged in on another user profile on my PC.
Copied all text from the QGIS3.ini file and pasted into the one associated with my profile.
It looks like the issue lies with QGIS trying to load a ...
0
votes
Save processing modeler output layers to project folder/relative path?
If you want to save all output files to the same folder in the project directory you can enter the expression @project_home || '//output' as output directory in an algorithm.
The folder "output&...
1
vote
Saving processing results in file with QGIS Modeler
It is possible to save processing results as .gpkg to a dynamic filepath and directly load the newly created layer to the project :
The expression I used is:
file_path(@csv) ||'/'||base_file_name(@...
0
votes
Colouring polygons based on point layer in QGIS
Let's assume there are point and polygon layers, see the image below. Both are in the EPSG:5348. As was specified in the comment polygon features could also contain enclaved territory.
Step 1. Apply ...
1
vote
Labelling with unique value and concat
What you can do is:
Add a column to your existing layer to combine Parameter and measurements, you can call it Measure and the formula is the following:
concat(ParameterName,': ',...
0
votes
Accepted
The minimum and maximum value statistics obtained using ee.Reducer.minMax() are inconsistent with those displayed in QGIS
I set up the symbology in QGIS as follows, and the band range of the TIFF file opened in QGIS matches the range calculated in GEE.
0
votes
Oracle connection fails in newer builds, but works in QGIS version 3.22.16-Białowieża
Turns out I had to change sqlnet.ora.
From:
SQLNET.AUTHENTICATION_SERVICES= (NTS)
to
SQLNET.AUTHENTICATION_SERVICES= (NONE)
1
vote
Accepted
Exporting georeferenced image from WMS in QGIS
Yes, your option is correct.
Second is to make layout and what you need Legend and North sign for example and export it with worldfile.
Third option is to use processing rasterize chose range and ...
4
votes
How to create a raster layer of distance to a vector layer's features (e.g. rivers, roads, lakes) in QGIS?
Rasterize your line layer. A fixed value to burn=1
Proximity (raster distance), target_pixels = 1, distance_units=Georeferenced coordinates
1
vote
Summing up values of polygons within bigger polygon in QGIS
You can use Expressions.
I have two layers:
Neighboorhod
Building
I want to summarize the Building attribute population for all buildings whose point_on_surface is within each neighborhood.
...
2
votes
Accepted
Layer style autoupdates to match data range in QGIS
To avoid having the classes being recomputed, you can switch from graduated to rule based.
On the source layer, configure the graduated as you wish, then change the style to rule based. The classes ...
1
vote
Customizing label frequency of waterway river layer obtained by QuickOSM in QGIS
Use the "Dissolve" tool using the river name field as the dissolve field then use the resulting layer for labelling.
As the resulting layer will only have one feature par river name you will ...
4
votes
Accepted
Setting min and max values for gradient of vector layer style larger than the layer's data in QGIS
If you add a value in your layers with no geometry (trough the attribute table) with the min and max value, the symbology will take them into account.
2
votes
Accepted
JGD2011 and X Y Z coordinate problems with QGIS
I tried your coord, add them like you (blue) and with swaped X and Y (red), and answer is swaped X with Y, If you have coords in CSV file You could just add layer in QGIS with Select Field X as second ...
0
votes
Creating rasters with exactly 1km x 1km resolution in QGIS?
Can you use Create constant raster following the picture, I think it'll work, my QGIS version is 3.20.3:
0
votes
How can I avoid map size and scale changes in print composer?
If when you are printing and the size keeps on changing ! Click on the map and go to item properties then untick the controlled by Atlas
1
vote
Loading selected geometry from GeoParquet with multiple geometry columns into QGIS
The GeoParquet I tested with "multigeom.parquet" has "name", "multipoly_geom" and "centroid_geom" columns.
Using ogrinfo I can select each geometry column ...
Top 50 recent answers are included
Related Tags
qgis × 42096raster × 2877
pyqgis × 2860
python × 2362
coordinate-system × 2163
qgis-plugins × 1928
polygon × 1721
shapefile × 1712
qgis-3 × 1626
postgis × 1436
print-composer × 1256
attribute-table × 1243
labeling × 1150
qgis-processing × 1040
point × 1021
vector × 999
field-calculator × 963
line × 952
grass-gis × 941
gdal × 928
symbology × 910
layers × 859
qgis-2 × 845
fields-attributes × 832
expression × 812