hi,<br><br>I attempted to build overviews for .tiff files on Linux and windows. For the windows version, building of overviews worked fine. But on linux, I have this error message:<br><br>"ERROR 1: IReadBlock failed at X offset ... " <br>
<br>I did a google search and seems to me that this problem is inherent in gdal. Is this problem existent only in Linux but not on windows?<br><br>Regards<br>Heng Hock<br><br><div class="gmail_quote">On Tue, Jun 3, 2008 at 12:00 AM, <<a href="mailto:gdal-dev-request@lists.osgeo.org">gdal-dev-request@lists.osgeo.org</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Send gdal-dev mailing list submissions to<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:gdal-dev-request@lists.osgeo.org">gdal-dev-request@lists.osgeo.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:gdal-dev-owner@lists.osgeo.org">gdal-dev-owner@lists.osgeo.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of gdal-dev digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Converting between datum (Bryan Keith)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 2 Jun 2008 08:37:57 -0600 (MDT)<br>
From: "Bryan Keith" <<a href="mailto:bryan@ideotrope.org">bryan@ideotrope.org</a>><br>
Subject: Re: [gdal-dev] Converting between datum<br>
To: "Andreas Theofilu" <<a href="mailto:andreas@theosys.at">andreas@theosys.at</a>><br>
Cc: GDAL list <<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>><br>
Message-ID: <<a href="mailto:2326.64.78.232.178.1212417477.squirrel@ideotrope.org">2326.64.78.232.178.1212417477.squirrel@ideotrope.org</a>><br>
Content-Type: text/plain;charset=iso-8859-1<br>
<br>
> Am Sonntag, 1. Juni 2008 14:01:53 schrieben Sie:<br>
> Frank, thanks for that hint. It seems to work, but:<br>
><br>
>> So, try changing your DataWindow definition to:<br>
>><br>
>> <DataWindow><br>
>> <UpperLeftX>617400</UpperLeftX><br>
>> <UpperLeftY>481865</UpperLeftY><br>
>> <LowerRightX>626560</LowerRightX><br>
>> <LowerRightY>480365</LowerRightY><br>
>> <SizeX>916</SizeX><br>
>> <SizeY>150</SizeY><br>
>> </DataWindow><br>
>><br>
><br>
> call me stupid, but I can't figure out how you calculated these values.<br>
> Allthough I know what square pixel means, I don't know how I can calculate<br>
> them. Could you or anybody else point me to a page where I may find a<br>
> documentation on how to do that?<br>
><br>
<br>
Andreas,<br>
<br>
Here you see how to calculate the cellsize from the given numbers:<br>
<br>
>>> 481865 - 480365<br>
1500<br>
>>> _ / 150.<br>
10.0<br>
>>> 626560 - 617400<br>
9160<br>
>>> _ / 916.<br>
10.0<br>
<br>
So Frank made square cells size 10.0. In the other direction you need to<br>
slightly increase your extent and then calculate the number of pixels in x<br>
and y so that you get square cells.<br>
<br>
Bryan<br>
<br>
> --<br>
> Andreas Theofilu<br>
> TheoSys - Software Systems and Solutions<br>
> <a href="http://www.theosys.at" target="_blank">http://www.theosys.at</a><br>
> Tel.: +43 676 / 786 53 89<br>
> _______________________________________________<br>
> gdal-dev mailing list<br>
> <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
><br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
<br>
End of gdal-dev Digest, Vol 49, Issue 4<br>
***************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br>Regards<br>Heng Hock