NighttimeLights.load_shapefile
— MethodPolygon boundaries are usually stored in a format called shapefile. For example, the shapefile of the world will consist of country names and each country will have coordinates of the boundaries.
load_shapefile("assets/mumbai_map/mumbai_districts.shp")
geometry | DISTRICT | ST_NM | STCENCD | DTCENCD | censuscode | |
---|---|---|---|---|---|---|
1 | Polygon(78 Points) | Mumbai | Maharashtra | 27 | 23 | 519 |
2 | Polygon(139 Points) | Mumbai Suburban | Maharashtra | 27 | 22 | 518 |
Each row of a shapefile data frame contains a polygon and other information about it.
Once a mask is obtained from a polygon, the mask can be used as just as any other mask.