Skip to main content
deleted 52 characters in body
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

Thanks very much @sgillies, I solved the problem as such:

def geom_type():
    
    shapefile_location = r"E:\Cameron\Python\GDAL\SHP\Cadastral_Parcels\Parcels.shp"
    shapefile = ogr.Open(shapefile_location)
    layer = shapefile.GetLayer()

    for feature in layer:
        geometry = feature.GetGeometryRef()
        print(geometry.GetGeometryName())
        
geom_type()

Appreciate the help!

Thanks very much @sgillies, I solved the problem as such:

def geom_type():
    
    shapefile_location = r"E:\Cameron\Python\GDAL\SHP\Cadastral_Parcels\Parcels.shp"
    shapefile = ogr.Open(shapefile_location)
    layer = shapefile.GetLayer()

    for feature in layer:
        geometry = feature.GetGeometryRef()
        print(geometry.GetGeometryName())
        
geom_type()

Appreciate the help!

I solved the problem as such:

def geom_type():
    
    shapefile_location = r"E:\Cameron\Python\GDAL\SHP\Cadastral_Parcels\Parcels.shp"
    shapefile = ogr.Open(shapefile_location)
    layer = shapefile.GetLayer()

    for feature in layer:
        geometry = feature.GetGeometryRef()
        print(geometry.GetGeometryName())
        
geom_type()
Source Link
WhaleShark
  • 153
  • 1
  • 1
  • 12

Thanks very much @sgillies, I solved the problem as such:

def geom_type():
    
    shapefile_location = r"E:\Cameron\Python\GDAL\SHP\Cadastral_Parcels\Parcels.shp"
    shapefile = ogr.Open(shapefile_location)
    layer = shapefile.GetLayer()

    for feature in layer:
        geometry = feature.GetGeometryRef()
        print(geometry.GetGeometryName())
        
geom_type()

Appreciate the help!