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.
Working with layers - QGIS Tutorial
From the course: QGIS and Python for AEC
Working with layers
- [Instructor] Next we're going to focus on adding raster and vector layers using Python. First, let's open up our Python console inside of a brand new project. Make sure your editor is available and also clear your console. So the first file we're going to open up is the add vector Python file. This is found under Python in your 2 managing layers and projects with Python. Let's open up that Python file and you'll notice it's very simple. Basically it's a variable called layer that is the interface and the method we're calling is addVectorLayer and the vector layer we're adding is a shape file again, and it's easements and this easements shape file is found under data in your 2 managing layers and projects with Python sub-folder. Now these easements or right of ways, that's why I'm calling it ROW right of way or easement, they're interchangeable in this particular case, and this type of layer is an OGR, so it's vector…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.