From the course: QGIS and Python for AEC

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Drawing new geometry

Drawing new geometry - QGIS Tutorial

From the course: QGIS and Python for AEC

Start my 1-month free trial

Drawing new geometry

- [Instructor] In this video, we're going to use Python to draw points, lines, and polygons into our map. So first let's add a city limit shapefile to give us some context of where these new polygons and lines are going to be drawn. The city limit here that I just dragged and dropped, I may make it more transparent in my symbology. So I'm going to set the opacity to about 25%. There we go. So it's not so dominant. So I dragged and dropped city limit and I made the opacity about 25%. This sets me up so that when I draw features it's not dominated by this polygon in the background but I wanted the city limits in the background so I can see where I am and also to show that I'm still in this same EPSG:26910 coordinate system. First let's draw a point. So in the Python console, and move this over a little bit, I'm going to open the drawPoint.py file found under the Python under 3 Geometry Handling. Let's go ahead and open that up.…

Contents