Iam not able to import a shapfile to PostGIS using the same library(ogr). I am using below link but it give me error. Import shp to Postgis using Python and ogr
Error :
Traceback (most recent call last):
File "C:/Users/n/.qgis2/python/plugins\Importtool\Import_tool.py", line 223, in select_output_file_5
layer = shapefile.GetLayer(0) AttributeError: 'NoneType' object has no attribute 'GetLayer'
أكثر...
Error :
Traceback (most recent call last):
File "C:/Users/n/.qgis2/python/plugins\Importtool\Import_tool.py", line 223, in select_output_file_5
layer = shapefile.GetLayer(0) AttributeError: 'NoneType' object has no attribute 'GetLayer'
أكثر...