Skip to main content
78 votes

Сreating polygons with straight lines and right angles in QGIS

There is a Shape Digitizing toolbar in which has an option to add rectangle using different methods: To show the toolbar, right-click the main menu and select Shape Digitizing toolbar I am using ...
ahmadhanb's user avatar
  • 40.9k
29 votes

Сreating polygons with straight lines and right angles in QGIS

No plugin needed In addition to the Shape Digitizing Toolbar it's also possible to add right angles through the Advanced Digitizing Tools. Activate the Advanced Digitizing Tools and lock the angles ...
Matthias Kuhn's user avatar
14 votes
Accepted

Split polygon with selected line from another layer in QGIS

In the Processing Toolbox under "Vector Overlay" use the "Split with lines" tool. Just be wary that with such a complex line dataset this can cause some geometry issues, especially if you have any ...
TeddyTedTed's user avatar
  • 6,110
11 votes

How to digitize building footprints with orthogonal edges?

No plugin needed This is now core QGIS functionality. Activate the Advanced Digitizing Tools and lock the angles to 90° . Have a look at the documentation of the advanced digitizing tools for what ...
Matthias Kuhn's user avatar
10 votes

Steps to digitize OpenStreetMap in QGIS?

There is no need to manually digitize all the OSM Maps. According to the OSM website OpenStreetMap is a map of the world, created by people like you and free to use under an open license. So you ...
Hasan Mustafa's user avatar
10 votes

Drawing points around polygon in QGIS?

there's three steps to this buffer (as mentioned by DPSSpatial). This draws an outline a fixed distance away from your blocks. Find this in Vector > Geoprocessing tools > Fixed distance buffer make a ...
Steven Kay's user avatar
  • 20.4k
9 votes

Сreating polygons with straight lines and right angles in QGIS

I tried the suggested solutions but found the CADTools plug-in a bit too complicated to get a quick hang of it. Besides, this is a rather simple task. Instead I found the plug-in Rectangles Ovals ...
Smerla's user avatar
  • 390
8 votes

Implementing Add Feature action using PyQGIS

I spent a while trying to figure this out too. The button is found in the QgisInterface class. # Find the layer to edit layer = qgis.utils.iface.activeLayer() layer.startEditing() # Implement the ...
Nicola's user avatar
  • 183
8 votes
Accepted

Quickly temporarily disabling snapping in QGIS 3?

Yes using s will enable/disable snapping.
Nathan W's user avatar
  • 34.8k
8 votes
Accepted

Fill attribute-table on feature-creation based on intersection with other layer

You could try the aggregate function to get the value of WayPoint where the object in point-layer intersects the start_point (and end_point) of the digitised line. This might work better than trying ...
M Bain's user avatar
  • 2,052
8 votes
Accepted

Looking for QGIS equivalent of ArcGIS streaming digitizing

Enable "Advanced Digitizing Toolbar" and you can find "Stream Digitizing":
BERA's user avatar
  • 73.9k
7 votes

Enabling "Snapping" in QGIS while drawing polygons?

Note that in the latest QGIS release snapping options is no longer visible by default. To use it right-click settings to activate snapping options.
Maarten 's user avatar
7 votes
Accepted

Automatic numbering of points during digitization in QGIS?

One method is to use a virtual field which would automatically number your points using the $id expression (or whatever expression you prefer): Note that you will need to save a project file for this ...
Joseph's user avatar
  • 75.9k
7 votes

Aligning an edge to match another edge

In QGIS, this feature is called Topological Editing. In the Snapping Toolbar, enable topological editing. With topological editing enabled, when you use the Vertex Tool to move a vertex on one ...
csk's user avatar
  • 24.9k
7 votes
Accepted

Allow overlapping polygons in QGIS

Look at the panel "snapping toolbar"
Christophe P.'s user avatar
7 votes

Create identical polygon adjacent to existing

Slightly misleading title. But @ahmadhanb is correct, you can create an identical polygon by copying/pasting. However, what you want is an adjacent polygon of the same dimensions (just not the same ...
user25730's user avatar
  • 894
7 votes
Accepted

QGIS Polygon tool adding vertices continuously (unexpected behavior)

You probably have "Stream Digitizing" activated. Choose Digitize with Segment to get the behavior you expect or simply press R to switch between mode while digitizing.
J.R's user avatar
  • 16.4k
6 votes

Implementing Add Feature action using PyQGIS

A complete solution with also saving the layer, as requested in a comment: # Get the active layer layer = iface.activeLayer() # Define a function called when a feature is added to the layer def ...
Marioba's user avatar
  • 356
6 votes

Extracting polygon in Google Maps?

In addition to @Matt's answer, which is relatively easier, you can use Google's My Maps. Assuming you have a Google account, creating a map is explained here and by using draw a line tool, you can ...
fatih_dur's user avatar
  • 4,993
6 votes
Accepted

OpenLayers 3: Change drawing style, but keep style of previously drawn features

Thanks to Gabor Farkas I was able to fix the issue. The style should not be set on the vector but on the single feature, that will be drawn. This can be done by setting the feature's style once ...
BritishSteel's user avatar
  • 6,647
6 votes

Connect newly drawn lines to existing lines in QGIS?

What you are looking for is doing a snapping operation, which is a very common task in a GIS software. Simply, go to Settings >> Snapping Options... and set where to apply the snapping and a ...
mgri's user avatar
  • 16.2k
6 votes

Digitising animal positions in aerial photos

Rather than using a full GIS tool to do this, you probably really only need to focus on annotating within-image coordinates per species, then doing geoprocessing on the resulting coordinates relative ...
Simbamangu's user avatar
  • 14.8k
6 votes
Accepted

What is the correct geometric predicate in filter for aggregate function?

I'd change the check for contains to contains($geometry,centroid(geometry(@parent))) - this way your expression should also work when you digitize a parcel/geometry which shares a border with your ...
Erik's user avatar
  • 16.4k
6 votes
Accepted

TypeError: QgsRubberBand(): argument 2 has unexpected type 'bool'

The problem is QgsRubberBand was changed in recent versions of QGIS. You have to use an old version of Qgis with this plugin (3.16 seems to work), wait for the developer to update the plugin or go ...
Jair Nájera Salaices's user avatar
5 votes

How to Continue a Line Feature in QGIS?

In the next release (8 july 2016) this wil be fixed. Have a look at http://changelog.linfiniti.com/en/qgis/version/2.16.0/ There you can read: Feature: Extend linestring geometries with reshape ...
PieterB's user avatar
  • 5,287
5 votes
Accepted

Filling gaps / holes in a shapefile?

Turn on the advanced digitizing toolbar - View > Toolbars Then use the delete ring feature.
Martin Hügi's user avatar
  • 3,612
5 votes
Accepted

Snapping multiple nodes of a polygon to the nodes of a line?

Preamble I propose a solution using PyQGIS. This is a complex issue and I'm sure that there are (many) specific cases that I didn't consider in my approach (so, take this answer as a starting point ...
mgri's user avatar
  • 16.2k
5 votes
Accepted

QGIS 3.4 How to make 90 degrees angles when digitizing polygons ? No plugins

View > Toolbars > Shape Digitizing Toolbar Then search for the Create Rectangle icon on the toolbar that you just selected to be checked > Add rectangle from 3 points. Now you can digitize buildings ...
Equinox's user avatar
  • 99
5 votes

Snapping polygon layer to another layer automatically

There are at least two possible solutions: 1. Use Geoprocessing / Difference A simple approach is to create a buffer around layer B - set the buffer distance high enough that all white spaces between ...
Babel's user avatar
  • 71.6k
5 votes

Cannot draw straight line polygon in QGIS 3.16

You have activated the icon Digitize with curve on the upper left. De-activate it: Edit/Update In QGIS 3.26, you have more options, see screenshot. If you can't find the icon, maybe the toolbar is ...
Babel's user avatar
  • 71.6k

Only top scored, non community-wiki answers of a minimum length are eligible