From the course: Advanced Geospatial Data Analytics in Python
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Rasterizing vector data - Python Tutorial
From the course: Advanced Geospatial Data Analytics in Python
Rasterizing vector data
- [Instructor] As mentioned earlier, in real world geospatial data projects, we often need to move back and forth between vector and raster formats to achieve the desired outcomes. This makes it essential to develop strong data processing skills that allow for smooth conversion between these types. Hence, in this video we will focus on rasterization, the process of converting a vector data layer into a raster grid. Namely, we will turn the Germany level nuts1 polygons into a grid, where each pixel has a size of 25 times 25 kilometers. For this, we are going to use the local CRS of Germany, which we are going to define right now. Additionally, we are going to need to convert the nuts admin area geo data frame into the local CRS to make sure that we are using the right unit of measures to create 25 kilometers large pixels. So after doing the conversion using the to_CRS method, the output, the local geo data frames CRS to confirm that the unit of measures here is meters. Aligning to…
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.