Ivan wrote:
Debugging those two process I noticed some important difference. shp2img calls GDALDatasetRasterIO and will ultimately calls the driver IRasterIO but without calling GetOverview first, so when it goes to the driver IReadBlock the level is 0. gdal_translate calls GetOverview and get the appropriated level but it does not touch the driver IRasterIO, it goes directly to the IReadBlock with the correct level. It Seams like QGIS does the same.

Ivan,

Yikes!  On review I have reason to believe the GDALDataset::RasterIO()
method is not using overviews!  I will investigate on this side as well.

I only very recently reworked the MapServer IO code to use
GDALDataset::RasterIO() instead of calls to GDALRasterBand::RasterIO()
so this isn't a problem that would have showed up in MapServer in the past.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, [email protected]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to