<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I'm getting:<br>
<font color="#3366ff">GDAL:
GDALOpen(DB2ODBC:DB2:database=samp105;DSN=SAMP105A;tables=TEST.ZIPPOINT,
this=004995C0) succeeds as DB2ODBC.<br>
GTiff: Reopen with strip chop enabled<br>
GDAL: GDALOpen(..\gcore\data/cfloat64.tif, this=0485BEC8) succeeds
as GTiff.<br>
<br>
ODBC: SQLDisconnect()<br>
GDAL:
GDALClose(DB2ODBC:DB2:database=samp105;DSN=SAMP105A;tables=TEST.ZIPPOINT,
this=004995C0)<br>
GDAL: GDALClose(..\gcore\data/cfloat64.tif, this=0485BEC8)<br>
Traceback (most recent call last):<br>
File "../pymod\gdaltest_python2.py", line 42, in run_func<br>
result = func()<br>
File "ogr_db2r.py", line 278, in ogr_db2_CopyRaster1<br>
new_ds = ogrtest.db2_drv.CreateCopy(
'DB2ODBC:database=samp105;DSN=SAMP105A', src_ds )<br>
File
"C:\Python27\lib\site-packages\gdal-2.1.0-py2.7-win32.egg\osgeo\ogr.py",
line 363, in <lambda><br>
__getattr__ = lambda self, name: _swig_getattr(self, Driver,
name)<br>
File
"C:\Python27\lib\site-packages\gdal-2.1.0-py2.7-win32.egg\osgeo\ogr.py",
line 57, in _swig_getattr<br>
raise AttributeError(name)<br>
AttributeError: CreateCopy<br>
GDAL: In GDALDestroy - unloading GDAL shared library.</font><br>
<br>
from:<br>
def ogr_db2_CopyRaster1():<br>
if ogrtest.db2_drv is None:<br>
return 'skip'<br>
ds = ogr.Open(ogrtest.db2_test_server)<br>
if ds is None:<br>
return 'fail'<br>
src_ds = gdal.Open( '..\gcore\data/cfloat64.tif' )<br>
new_ds = ogrtest.db2_drv.CreateCopy(
'DB2ODBC:database=samp105;DSN=SAMP105A', src_ds )<br>
<br>
I'm guessing this is from CreateCopy. There is no other obvious
error indication.<br>
This works fine from gdal_translate.<br>
<br>
Any suggestions?<br>
<br>
<br>
</body>
</html>