You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

10 lines
332 B

from osgeo import ogr
countries = "/home/duque004/ISRIC/ProjectsInternal/SoilGrids/WorldBorders/ne_10m_admin_0_countries/ne_10m_admin_0_countries.shp"
driver = ogr.GetDriverByName("ESRI Shapefile")
dataSource = driver.Open(countries, 0)
layer = dataSource.GetLayer()
feature = layer.GetFeature(0)
geom = feature.GetGeometryRef()