[Qgis-user] Problem loading raster to PostGIS

johnrobot johnrobot at gmail.com
Sat Feb 16 05:09:48 PST 2013


Hi
I am having trouble loading a raster (.asc) file to PostGIS 2.0.1 using the
plugin Raster - PostGIS Raster - Load raster to postgis in QGIS 1.8.0 on Win
Viste 64 bit. I get the following error message:

---
Ett fel har inträffat vid Pythonexekvering:

Traceback (most recent call last):
  File "C:/Users/Magnus/.qgis//python/plugins\wktraster\DlgRasterLoader.py",
line 126, in browseRaster
    self.getMetadata(str(fileName))
  File "C:/Users/Magnus/.qgis//python/plugins\wktraster\DlgRasterLoader.py",
line 163, in getMetadata
    ds=gdal.Open(filename)
AttributeError: 'module' object has no attribute 'Open'

Python version:
2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]


QGIS version:
1.8.0-Lisboa Lisboa, 6416f38

Python sökväg: ['C:/Users/Magnus/.qgis//python/plugins\\sextante',
'C:/PROGRA~2/GIS/QGIS/apps/qgis/./python', 'C:/Users/Magnus/.qgis//python',
'C:/Users/Magnus/.qgis//python/plugins',
'C:/PROGRA~2/GIS/QGIS/apps/qgis/./python/plugins',
'C:\\PROGRA~2\\GIS\\QGIS\\bin\\python27.zip',
'C:\\PROGRA~2\\GIS\\QGIS\\apps\\Python27\\DLLs',
'C:\\PROGRA~2\\GIS\\QGIS\\apps\\Python27\\lib',
'C:\\PROGRA~2\\GIS\\QGIS\\apps\\Python27\\lib\\plat-win',
'C:\\PROGRA~2\\GIS\\QGIS\\apps\\Python27\\lib\\lib-tk',
'C:\\PROGRA~2\\GIS\\QGIS\\apps\\qgis\\bin',
'C:\\PROGRA~2\\GIS\\QGIS\\apps\\Python27',
'C:\\PROGRA~2\\GIS\\QGIS\\apps\\Python27\\lib\\site-packages',
'C:\\PROGRA~2\\GIS\\QGIS\\apps\\Python27\\lib\\site-packages\\PIL',
'C:\\PROGRA~2\\GIS\\QGIS\\apps\\Python27\\lib\\site-packages\\win32',
'C:\\PROGRA~2\\GIS\\QGIS\\apps\\Python27\\lib\\site-packages\\win32\\lib',
'C:\\PROGRA~2\\GIS\\QGIS\\apps\\Python27\\lib\\site-packages\\Pythonwin',
'C:\\PROGRA~2\\GIS\\QGIS\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode',
'C:\\Users\\Magnus\\.qgis\\python\\plugins\\mmqgis/forms',
'C:\\PROGRA~2\\GIS\\QGIS\\apps\\qgis\\python\\plugins\\fTools\\tools']
---

QGIS opens the file just fine. Any suggestions on what to do?

Magnus




--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Problem-loading-raster-to-PostGIS-tp5034687.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.



More information about the Qgis-user mailing list