In this video, Gordon opens, closes, alters, and saves QGIS projects using Python.
- [Instructor] In this video, … we're going to use Python to modify projects. … We're going to open a project, modify it, … and save it as a new project file. … First, let's open up a blank session of QGIS. … You'll notice I have no projects open. … We're going to go to plugins Python Console. … Make sure we have the editor open … and we're going to browse to the first file … that's found in our Managing Layers and Projects … with Python, PYTHON. … And the first one is open project. … We're going to use a Python script … to open a preexisting project. … You may have to change the code a little bit … to make sure that it points to the right project. … The first thing we do is create a project object … called QgsProject.instance. … We're creating an instance or instantiating the project … so that we can modify it in different ways. … The first thing we do is use a QgsProject.instance. … Then we use that project object to read in the file. … The file we're reading in … is called streetlight_map.qgz or QGZ. …
- Creating your first Python script
- Saving scripts
- Managing QGIS projects and layers programmatically
- Exporting geometry
- Drawing new geometry
- Importing DWG and DXF files
- Creating plugins
Skill Level Intermediate
Esri ArcGIS Maps for Creative Cloud Extensionwith Tony Harmer1h 17m Intermediate
1. Beginning Python
2. Managing Layers and Projects with Python
3. Geometry Handling
4. Importing DWG and DXF
5. Creating Plugins
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.