Hi,<div><br></div><div>Postgresql 8.4.7</div><div>postgis-pg84-binaries-2.0.0svn.zip</div><div>Tested with latest raster2pgsql.py rev 6860</div><div><br></div><div>I have a raster which is giving me problems when creating the raster table. The raster does not have any digits for no data but 'no data'.</div>
<div>Could this be the cause of the below problem? I tried a different raster which normally have been working with the old gdal2wktraster.py script.</div><div>Any suggestions?</div><div><br></div><div>The error:</div><div>
<div>C:\Python25>python raster2pgsql.py -r c:\prio_grid\source\mountain\mean_mnt_bin.</div><div>tif -t mountain -o mountain.sql</div><div>Traceback (most recent call last):</div><div>  File "raster2pgsql.py", line 1036, in <module></div>
<div>    main()</div><div>  File "raster2pgsql.py", line 999, in main</div><div>    gt = wkblify_raster(opts, filename.replace( '\\', '/') , i, gt)</div><div>  File "raster2pgsql.py", line 941, in wkblify_raster</div>
<div>    summary = wkblify_raster_level(options, ds, options.overview_level, band_ran</div><div>ge, infile, i)</div><div>  File "raster2pgsql.py", line 853, in wkblify_raster_level</div><div>    nodata_values = collect_nodata_values(ds, band_from, band_to)</div>
<div>  File "raster2pgsql.py", line 532, in collect_nodata_values</div><div>    if nodata is not None and not math.isnan(nodata):</div><div>AttributeError: 'module' object has no attribute 'isnan'</div>
<div><br></div><div>C:\Python25></div></div><div><br></div>