Questions tagged [qgis]

QGIS is a cross-platform GIS application licensed under the GNU General Public License.

Filter by
Sorted by
Tagged with
15 votes
4 answers
6k views

Elevation profile 10 km each side of line

How can I get an elevation profile for a band of terrain? The highest elevation within 10 km (on each side of the defined line) should be taken into account.
Kara's user avatar
  • 161
14 votes
3 answers
5k views

How to Create a Grid Inside a Polygon that is Oriented with the Longest Side?

I have been using a process called "Create Polygon Graticule" to create a grid within a polygon with assigned row and column attributes. It is a SAGA tool which I have been running in QGIS. It ...
Kingfisher's user avatar
  • 2,314
14 votes
2 answers
6k views

Moving points onto lines (~neighborhood)

I do have two vector layer, of which one is a point layer based on "events" by remote sensing and the second one is a line layer from local research. In my case these are earthquakes and tectonic ...
Chris Pallasch's user avatar
13 votes
3 answers
10k views

Aligning multiple points to line in QGIS?

I would like to align multiple points to a line, or lines within a layer, using a specified tolerance or buffer around the line objects. Please refer to the sample sketch attached. For the sake of ...
Ed Camden's user avatar
  • 383
13 votes
3 answers
3k views

Difference between quotation marks ('single' vs "double") in QGIS

I am confused concerning the quotation marks syntax ('single' vs "double") in QGIS. I know something about the quotation marks and the way they are applied in Python scripting (i.e. comments,...
Taras's user avatar
  • 32.9k
12 votes
3 answers
9k views

Making automatic updated date and time field in QGIS?

I want to make a date and time updated field as I edit an attribute field in this format yyyy-mm-dd 00:00:00 (= 2016-05-08 11:04:00) - my local date/time. The data is in a QGIS 2.14 shapefile and ...
Carlos Pires's user avatar
  • 1,135
12 votes
3 answers
2k views

QGIS expression with overlay-fuction: filter-condition based on comparison of attributes from two layers

In QGIS 3.18, I have two point layers: layer_1 with attribute id_1 and layer_2 with id_2. I want to use the overlay_nearest function: overlay_nearest(layer[,expression][,filter][,limit=1][,...
Babel's user avatar
  • 71.2k
12 votes
4 answers
9k views

How to move layers in the Layer Order Panel using PyQGIS?

Related to the following question but looking for a PyQGIS method: QGIS Layer Order Panel - add layers at top of layer order The following is a simple setup containing a group with three layers. ...
Joseph's user avatar
  • 75.7k
11 votes
1 answer
2k views

How to automatically populate fields instantly?

I am looking to create an attribute table where the first field is a drop-down menu (I have achieved this by using the 'value map' edit widget), but I'm struggling to find a method for the next part; ...
ffinnm's user avatar
  • 448
11 votes
3 answers
16k views

Rotating a vector layer in QGIS with qgsAffine (or other method)?

I would like to rotate a set of vector points in QGIS an arbitrary number of degrees around a central point (or arbitrary point). This is similar to a recent question about creating a regular grid; ...
Simbamangu's user avatar
  • 14.8k
11 votes
7 answers
22k views

Getting image pop ups in QGIS

I have a map of an area and georeferenced photos. I need to be able to bring the pictures as points and then be able to click at a certain point and an image pop up. I have revisited this issue, i ...
totros airways's user avatar
11 votes
1 answer
12k views

How to reproject a raster file in QGIS with datum transformation?

I want to reproject a tiff raster file from projection A (ETRS89/UTM Zone 32) to projection B (DHDN/Gauss-Kruger zone 2). The two projections have a different datum so I have to use a datum ...
Jens's user avatar
  • 6,219
11 votes
3 answers
4k views

Converting point layer to raster grid that shows frequency of points per cell uisng QGIS

I have a point layer that shows the distribution of a species. Is it possible in QGIS to convert this point layer to a raster grid in which the value of each cell corresponds with the amount of ...
Murphy's user avatar
  • 165
11 votes
7 answers
16k views

QGIS 2.14.1 LAStools install error: "wrong value for parameter 'Msys folder'..."

I went to step 4 from How to install LAStools toolbox in QGIS guide and extracted LAStools to my C drive and just made the folder there. I can't do step 8 because it seems to already be in "advanced ...
Blake Scott's user avatar
11 votes
4 answers
20k views

Converting/using ArcGIS *.style file for/in QGIS (QML or SLD)?

I have downloaded a dataset from a government organisation. it comes with a .style file. I use QGIS 1.8 on windows 7. Is there a way to use the .style file as a qml or sld? I have tried simply ...
Ger's user avatar
  • 2,575
10 votes
5 answers
23k views

How to display special German characters "ÄÜÖß" in a map?

I have a shapefile with names for Regions. These don't seem to contain special characters "Ä", "Ü", "Ö", "ß" but ugly hieroglyphs. What can I do to display them correctly. If I import the shape as ...
desputin's user avatar
  • 2,311
10 votes
3 answers
34k views

How to create contour lines from point data using QGIS?

I'm using QGIS 2.4.0 and I have a shapefile of points with elevation data and X and Y coordinates. I'm using windows 7 OS. The idea is to create a contour line SHP using my point data. My question ...
Edixon Gutierrez's user avatar
10 votes
1 answer
13k views

Unique constraint failed error when saving GeoPackage in QGIS

In QGIS, when using Processing tools, the temporary output layer in many cases cannot be saved as Geopackage. This happens for example when using "Explode lines" or "Multipart to Single ...
Babel's user avatar
  • 71.2k
10 votes
2 answers
2k views

Representing uneven tree canopy spread around point in QGIS

I am trying to make an attribute to show the uneven spread of the crown of a tree using the four cardinal points. I can use a buffer to show one feature, in this case a root protection area. But I ...
Island Lescure's user avatar
10 votes
1 answer
7k views

Counting points in polygons using QGIS

I want to count points (1000 of students home) in district polygons with Qgis 2.16. I didn't find the tool in the analysis tools plugin. Is there another plugin or method I could use to perform this ...
syafrauf's user avatar
  • 257
10 votes
5 answers
20k views

Combining multiple overlapping rasters - retain maximum value?

I have 40 overlapping raster grids (derived from flood modelling software) that I want to combine in such a way so as to retain only the maximum value in any of the given rasters at each grid location,...
Kyle's user avatar
  • 437
10 votes
3 answers
1k views

Changing to alternate label if first label does not fit in QGIS?

I'm trying to create a map to print out and the size of my polygons varies greatly. As this will be a reference map I need to label every polygon, but some of the names will not fit in the polygon. In ...
Ian Turton's user avatar
  • 81.5k
9 votes
1 answer
9k views

QGis Save Raster as Rendered Image

In QGIS 1.9.0 Master, when you right click on a raster in the Layers Panel and select "Save As", you can select the output mode to be "Raw Data" or "Renedered Image". When selecting the Rendered ...
Gavin Taylor's user avatar
9 votes
2 answers
5k views

Using grid files (*.gsb) in QGIS

When opening a data source in EPSG:25832 in a project with crs set to EPSG:31468 I am prompted to select a datum transformation (e.g. +nadgrids=BETA2007.gsb) The nationwide standardized grid file for ...
Jochen Schwarze's user avatar
9 votes
2 answers
12k views

Exporting DEM-derived rasters to CSV from QGIS?

I have been able to import into QGIS a set of raster topographic maps and the associated DEM raster maps. It registered the two for me. From there I have calculated the associated slope raster map. ...
DaemonMaker's user avatar
8 votes
2 answers
2k views

Define custom CRS in WKT from point and angle

I'm trying to define a custom CRS using the WKT Syntax. However when I do the projection I'm off by about 2km. Here is my rotation point. Local X and Y: X: 4635.396 Y: 2397.085 MGA94 Zone50: x: ...
Garth Cooper's user avatar
7 votes
1 answer
1k views

Can't export geometry generator styling to DXF - alternatives?

I've been using QGIS' wonderful geometry generator to dynamically generate root protection zones and crown areas for some tree inventories I've been working on. It's been a massive time saver. ...
she_weeds's user avatar
  • 12.5k
7 votes
2 answers
2k views

Seeking open source alternative to ArcGIS Desktop Integrate tool [closed]

I need to snap about 1000 lines in one layer to the lines in another layer (there are about 5000 lines in the second layer). The lines to be snapped are about 15 map units away from the base layer ...
ajgdev's user avatar
  • 79
7 votes
2 answers
4k views

How do I split polygons into line segments?

How can I split my polygon file into "segements"? The lines should be broken up like this picture shows:
Kurt's user avatar
  • 7,097
7 votes
1 answer
9k views

How to create a point along a line given distance

I have been given a non-spatial database which contains the names of lines which I have a shapefile for. The database also has names of points and the distance of each point from the origin along the ...
BWill's user avatar
  • 1,772
6 votes
3 answers
3k views

Unable to stylize raster data as pseudocolor render type on MAC OSX

In a raster layer's Style Properties, I can choose pseudocolor render type, and choose a color ramp and classify the raster. However, when I click the 'Apply' button, or click 'OK', the ...
Tele-Pet's user avatar
  • 593
6 votes
2 answers
10k views

Colouring areas between (vector) contours?

Is it possible to colour areas between (vector) contours without making it a DEM first? Joshdoe seems to have done so in Create filled contour map with GRASS but does not say how.
dez93_2000's user avatar
  • 1,079
6 votes
4 answers
8k views

Workflow for creating line features between two coordinate pairs in QGIS

I have a table of stream reaches with XY coordinates for their respective tops and bottoms. I'd like to convert the table to a feature, using the XY coordinates as the endpoints of the line. Any ...
Jacques Tardie's user avatar
6 votes
2 answers
9k views

How to add links to PDFs in a Shapefile?

I want an attribute in a shapefile named "Link" to add. The works are all fine but then I would like to add a link in my directory. This link accesses a PDF. Now, this PDF is not shown. Is there ...
user8839's user avatar
  • 603
5 votes
1 answer
1k views

Activating 'missing' standard GRASS utilities in QGIS Processing toolbox

I have been using QGIS and Grass for ages and while I've noticed this issue before, I've not been bothered by it until now. It is (hopefully) a bit of a noob question but when I open GRASS in the ...
MappaGnosis's user avatar
  • 33.9k
5 votes
5 answers
20k views

Importing 3D DXF file into QGIS with z information as attribute value?

I have a dxf file of 3d contours. after import it does have only layer,x,y attribute and doesn't have Z attribute. How can I provide Z attribute to create a TIN file?
user28075's user avatar
  • 237
4 votes
3 answers
6k views

QGIS Raster calculator - if statement

I'm fairly new to QGIS, but I'm getting the hang of it. I have two layers - one DEM and one raster made from shape file (Buildings), but need one with higher Elevation where the buildings are for ...
TomS's user avatar
  • 41
4 votes
4 answers
3k views

Installing QGIS on Ubuntu 14.04?

Following the QGIS installation guide I have tried both UbuntuGIS and QGIS stable, but both fail with the error message: The following packages have unmet dependencies: python-qgis : Depends: python-...
bardu's user avatar
  • 141
4 votes
3 answers
19k views

Calculating slope in percentage with QGIS

I'm working with QGIS, v. 2.0.1. I have several soil types. They are (amongst others) described with slope indications. I already calculated the slope from the DTM in degrees, but as description of ...
G.H.'s user avatar
  • 41
3 votes
1 answer
5k views

Setting QGIS Python version?

I have brewed python 2.7.3 onto my Mac (Lion), and installed shapely via pip install shapely. The Polygonizer plugin, however, does not find the shapely library. I see when QGIS loads a Python console,...
gregmacfarlane's user avatar
2 votes
1 answer
806 views

Anti-aliased rasterization of vectors in QGIS?

I have some polygons that I want to rasterize, but in a fairly low-resolution grid (cell size 250x250m). The raster values of the area inside the polygons should normally have the same value (100), ...
tgerdin's user avatar
  • 63
1 vote
1 answer
1k views

Sorting grid cells in fishnet grid by location and number using QGIS?

I am using QGIS 3.2.0 on a Mac (and also have QGIS 2), and I have a fishnet grid (probably created in Arc) that comprises of nearly 2 million grid cells. As a result, every change I make to the ...
StripyDonkey's user avatar
95 votes
5 answers
146k views

Renaming attributes/fields in shapefile attribute table using QGIS

I would like to rename some fields in my attribute table: Like rename "XRF_N3"in something else. It seems quite a easy issue but I don't find any information about how can I do that.
G M's user avatar
  • 2,068
57 votes
8 answers
81k views

Сreating polygons with straight lines and right angles in QGIS

When creating a polygon, how do I do it so that the lines are straight (90, 0 degrees, etc.) and when I create corners they can be right angles? For instance, how do I create a perfect square or ...
hpy's user avatar
  • 3,157
48 votes
5 answers
25k views

Smoothing DEM using GRASS?

I have a SRTM DEM and I want to create a shaded relief from it. I created the shaded relief in GRASS and the result is very nice, but a little rough because the area is near flat and the DEM is 90m in ...
Pablo's user avatar
  • 9,827
44 votes
3 answers
62k views

Ignoring invalid input features with Intersection tool in QGIS?

In QGIS 2.18, when I used the Vector > Geoprocessing Tools > Intersection tool, I was able to check an option which said "Ignore NULL geometries [optional]". Now I've downloaded QGIS 3.2 and that ...
Felipe D.'s user avatar
  • 2,509
36 votes
3 answers
42k views

Handling multiple map frames with different layers in one print layout?

Often I need two (or more) map frames in map layout to present different data next to each other. It is easy to make multiple map frames in QGIS Print Composer. BUT... It is in the nature of my work ...
Miro's user avatar
  • 9,744
30 votes
3 answers
39k views

Opening GeoJSON file with mixed geometries in QGIS?

If I have a GEOJson file, for example a file named test.js with inside the following: { "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": {"type": "Point", "coordinates": [...
caneta's user avatar
  • 579
30 votes
5 answers
56k views

Grouping and counting attribute data in QGIS

I want to group and count features with the same code attribute value. I can classify the data and enable feature count in the layer list but I cannot get counts in the attribute table.
Seren's user avatar
  • 331
30 votes
8 answers
27k views

Getting list of distinct values from shapefile field using QGIS

I have a shapefile whose features I can filter by specifying a where clause in the query dialogue. F.x. I have a field named "city_name" and by stating "city_name" = 'London' in ...
Raffael's user avatar
  • 530

1
4 5
6
7 8
130