> int sceneWidth  = (int)(nXSize * maxWidth / (double)maxWidthAtL0 + 0.99);
> int sceneHeight = (int)(nYSize * maxHeight / (double)maxHeightAtL0 + 0.99);

Ouch, you shouldn't be doing rounding like that.  Use the getDimsAtMag() 
function to get the exact width/height you need and all will be well.

-mpg

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

Reply via email to