id,summary,reporter,owner,description,type,status,priority,component,version,resolution,keywords,cc 376,GDAL returns incorrect NoData Value for PostGIS raster,mlt,osgeo4w-dev@…,"I don't have newer binary and did not do thorough testing but here is what I suspect will demonstrate the issue with OSGeo4W as of 2013-09-20. Steps to reproduce: 1. Create some GeoTIFF raster with 9999 as NoData[[BR]] 2. Import it like raster2pgsql -s 26915 -I -C -M dem.tif -t 50x50 public.dem50 | psql -d gis -U user[[BR]] 3. Make sure the following returns 9999[[BR]] SELECT ST_BandNoDataValue(rast,1) As bnval1 FROM dem50 WHERE rid = 1; 4. Test source file with gdalinfo $ which gdalinfo /osgeo4w/bin/gdalinfo.exe $ gdalinfo dem.tif | grep -i noda NoData Value=9999 5. And from PG $ gdalinfo 'PG:dbname=gis table=dem50 mode=2' | grep -i noda NoData Value=0 [http://irclogs.geoapt.com/postgis/%23postgis.2013-09-20.log Here] might (wasn't published as of submitting date) be a log.",defect,closed,major,Package,,outdated,"gdal,postgis",