[postgis-tickets] [PostGIS] #2203: [raster]: Can't read out_db jpg in some cases
PostGIS
trac at osgeo.org
Mon Feb 18 15:19:34 PST 2013
#2203: [raster]: Can't read out_db jpg in some cases
---------------------+------------------------------------------------------
Reporter: robe | Owner: dustymugs
Type: defect | Status: assigned
Priority: medium | Milestone: PostGIS 2.1.0
Component: raster | Version: trunk
Resolution: | Keywords: history
---------------------+------------------------------------------------------
Comment(by dustymugs):
There is definitely something weird going on in Windows.
Can you rerun ST_Summarystats() after making sure that the file
back.jpg.aux.xml (should live with back.jpg) is removed and/or not
present?
What I am looking for in the debug output is something like
{{{
NOTICE: [rt_api.c:rt_raster_from_gdal_dataset:9183] GDAL Band 1 stats:
0.000000, 255.000000, 98.720363, 81.487081
}}}
That line is the output from GDALComputeRasterStatistics() upon the band
data. It will return the cached stats from *.aux.xml if it is avaiable,
hence why I ask that you delete that file if it exists. By not having
cached stats, GDAL is forced to go use the raw data to compute the stats.
I'm eliminating as many possible failure points as I can...
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2203#comment:40>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list