<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="divRplyFwdMsg" dir="ltr"></div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; margin: 0px; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hello<br>
<br>
</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; margin: 0px; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I have built GDAL from source <b><u>v3.9.3 tag (<a href="https://github.com/OSGeo/gdal/tree/v3.9.3" id="LPlnk114718">https://github.com/OSGeo/gdal/tree/v3.9.3</a>).
</u></b>While building GDAL I passed below CMAKE flags</div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; margin: 0px; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b><u><br>
</u></b></div>
<table data-editing-info="{"topBorderColor":"#ABABAB","bottomBorderColor":"#ABABAB","verticalBorderColor":"#ABABAB","hasHeaderRow":false,"hasFirstColumn":false,"hasBandedRows":false,"hasBandedColumns":false,"bgColorEven":null,"bgColorOdd":"#ABABAB20","headerRowColor":"#ABABAB","tableBorderFormat":0,"verticalAlign":"top"}" style="box-sizing: border-box; border-collapse: collapse; border-spacing: 0px;">
<tbody>
<tr>
<td data-editing-info="{"bgColorOverride":true}" style="width: 394.388px; height: 22px; border-width: 1px; border-style: solid; border-color: rgb(171, 171, 171); background-color: rgb(204, 204, 204); vertical-align: top; box-sizing: border-box;">
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; margin: 0px; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b><u>GDAL_USE_LIBTIFF_INTERNAL=ON</u></b></div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; margin: 0px; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b><u>GDAL_USE_GEOTIFF_INTERNAL=ON</u></b></div>
</td>
</tr>
</tbody>
</table>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; margin: 0px; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b><u><br>
</u></b></div>
<div class="elementToProof" style="direction: ltr; text-align: left; text-indent: 0px; margin: 0px; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
Later, I am trying run Python autotests </div>
<ol start="1" data-editing-info="{"applyListStyleFromLevel":false,"orderedStyleType":6}" style="direction: ltr;">
<li style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); list-style-type: "a) ";">
<div class="elementToProof" style="direction: ltr;">After following the instructions about Autotests when I issue the below command<br>
<br>
<b>pytest autotest --collect-only</b></div>
</li></ol>
<ol start="1" data-editing-info="{"applyListStyleFromLevel":false,"orderedStyleType":6}" style="direction: ltr;">
<li style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); display: block; list-style-type: ") ";">
<div class="elementToProof" style="direction: ltr; margin: 0px;"><br>
Then I am seeing below error<br>
<br>
</div>
</li></ol>
<ol start="1" data-editing-info="{"applyListStyleFromLevel":false,"orderedStyleType":6}" style="direction: ltr;">
<li style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); display: block; list-style-type: ") ";">
<table data-editing-info="{"topBorderColor":"#ABABAB","bottomBorderColor":"#ABABAB","verticalBorderColor":"#ABABAB","hasHeaderRow":false,"hasFirstColumn":false,"hasBandedRows":false,"hasBandedColumns":false,"bgColorEven":null,"bgColorOdd":"#ABABAB20","headerRowColor":"#ABABAB","tableBorderFormat":0,"verticalAlign":"top"}" style="text-align: left; text-indent: 0px; box-sizing: border-box; border-collapse: collapse; border-spacing: 0px;">
<tbody>
<tr>
<td data-editing-info="{"bgColorOverride":true}" style="width: 1197.38px; height: 69.7859px; text-align: left; text-indent: 0px; border-width: 1px; border-style: solid; border-color: rgb(171, 171, 171); background-color: rgb(204, 204, 204); vertical-align: top; box-sizing: border-box;">
<div style="text-align: left; text-indent: 0px; margin: 0px;">=================================== ERRORS ====================================</div>
<div style="text-align: left; text-indent: 0px; margin: 0px;">________________ ERROR collecting autotest/test_random_tiff.py ________________</div>
<div style="text-align: left; text-indent: 0px; margin: 0px;">C:\workarea\IWS\depot\Mainline\Generation_3\sources_thirdparty\Source\gdal\gdal\autotest\test_random_tiff.py:165: in <module></div>
<div style="text-align: left; text-indent: 0px; margin: 0px;"> <span style="background-color: rgb(255, 255, 0);">
ds = gdal.Open("/vsimem/test.tif")</span></div>
<div style="text-align: left; text-indent: 0px; margin: 0px;">C:\workarea\IWS\depot\Mainline\Generation_3\sources_thirdparty\Source\gdal\build_RelWithDebInfo\swig\python\osgeo\gdal.py:8860: in Open</div>
<div style="text-align: left; text-indent: 0px; margin: 0px;"> return _gdal.Open(*args)</div>
<div style="text-align: left; text-indent: 0px; margin: 0px;">E RuntimeError: test.tif: MissingRequired:TIFF directory is missing required "StripOffsets" field</div>
<div style="text-align: left; text-indent: 0px; margin: 0px;">E May be caused by: test.tif: TIFFFetchNormalTag:Defined set_field_type of custom tag 49091 (Tag 49091) is TIFF_SETGET_UNDEFINED and thus tag is not read from file</div>
<div style="text-align: left; text-indent: 0px; margin: 0px;">E May be caused by: test.tif: TIFFFetchNormalTag:Defined set_field_type of custom tag 0 (Tag 0) is TIFF_SETGET_UNDEFINED and thus tag is not read from file</div>
<div style="text-align: left; text-indent: 0px; margin: 0px;">E May be caused by: test.tif: TIFFFetchNormalTag:Defined set_field_type of custom tag 5376 (Tag 5376) i</div>
<div style="text-align: left; text-indent: 0px; margin: 0px;">------------------------------- Captured stdout -------------------------------</div>
<div style="text-align: left; text-indent: 0px; margin: 0px;">iter = 1, comb_val_init = 11573492</div>
<div style="text-align: left; text-indent: 0px; margin: 0px;">------------------------------- Captured stderr -------------------------------</div>
<div style="text-align: left; text-indent: 0px; margin: 0px;">Warning 1: test.tif: TIFFReadDirectoryCheckOrder:Invalid TIFF directory; tags are not sorted in ascending order</div>
</td>
</tr>
</tbody>
</table>
</li></ol>
<ol start="1" data-editing-info="{"applyListStyleFromLevel":false,"orderedStyleType":6}" style="direction: ltr;">
<li style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); display: block; list-style-type: ") ";">
<div style="direction: ltr; text-align: left; text-indent: 0px; margin: 0px;"><br>
<br>
</div>
</li></ol>
<ol start="1" data-editing-info="{"applyListStyleFromLevel":false,"orderedStyleType":6}" style="direction: ltr;">
<li style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); display: block; list-style-type: ") ";">
<div style="direction: ltr; text-align: left; text-indent: 0px; margin: 0px;">The
<a href="https://github.com/OSGeo/gdal/blob/v3.9.3/autotest/test_random_tiff.py" id="OWAaa25a297-48a2-3fc9-9f58-3d0c4c59e075" class="OWAAutoLink" style="margin: 0px;">
https://github.com/OSGeo/gdal/blob/v3.9.3/autotest/test_random_tiff.py</a> attempts to open "/vsimem/test.tif" which seems like in-memory file. </div>
</li></ol>
<ol start="1" data-editing-info="{"applyListStyleFromLevel":false,"orderedStyleType":6}" style="direction: ltr;">
<li style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); display: block; list-style-type: ") ";">
<div class="elementToProof" style="direction: ltr; margin: 0px;"><br>
</div>
</li></ol>
<div class="elementToProof" style="direction: ltr; margin: 0px; font-family: Calibri, Helvetica, sans-serif; color: rgb(0, 0, 0);">
<span style="font-size: 12pt;"> b) Upon seeing error in (a) , I added the location of "tiff.dll" in the PATH environment variable. Upon re-running the same command (</span><span style="font-size: 16px; background-color: rgb(255, 255, 255);"><b>pytest
autotest --collect-only) </b>now I get the below error</span></div>
<div class="elementToProof" style="direction: ltr; margin: 0px; font-family: Calibri, Helvetica, sans-serif; font-size: 16px; color: rgb(0, 0, 0);">
<span style="background-color: rgb(255, 255, 255);"><br>
</span></div>
<ol start="1" data-editing-info="{"applyListStyleFromLevel":false,"orderedStyleType":6}" style="direction: ltr; text-align: left;">
<li style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); display: block; list-style-type: ") ";">
<table data-editing-info="{"topBorderColor":"#ABABAB","bottomBorderColor":"#ABABAB","verticalBorderColor":"#ABABAB","hasHeaderRow":false,"hasFirstColumn":false,"hasBandedRows":false,"hasBandedColumns":false,"bgColorEven":null,"bgColorOdd":"#ABABAB20","headerRowColor":"#ABABAB","tableBorderFormat":0,"verticalAlign":"top"}" style="text-align: left; text-indent: 0px; box-sizing: border-box; border-collapse: collapse; border-spacing: 0px;">
<tbody>
<tr>
<td data-editing-info="{"bgColorOverride":true}" style="width: 1197.38px; height: 69.7859px; text-align: left; text-indent: 0px; border-width: 1px; border-style: solid; border-color: rgb(171, 171, 171); background-color: rgb(204, 204, 204); vertical-align: top; box-sizing: border-box;">
<div class="elementToProof" style="text-align: left; text-indent: 0px; margin: 0px;">
=================================== ERRORS ====================================</div>
<div style="text-align: left; text-indent: 0px;">________________ ERROR collecting autotest/test_random_tiff.py ________________</div>
<div style="text-align: left; text-indent: 0px;">C:\workarea\IWS\depot\Mainline\Generation_3\sources_thirdparty\Source\gdal\gdal\autotest\test_random_tiff.py:165: in <module></div>
<div style="text-align: left; text-indent: 0px;"> ds = gdal.Open("/vsimem/test.tif")</div>
<div style="text-align: left; text-indent: 0px;">C:\workarea\IWS\depot\Mainline\Generation_3\sources_thirdparty\Source\gdal\build_RelWithDebInfo\swig\python\osgeo\gdal.py:8860: in Open</div>
<div style="text-align: left; text-indent: 0px;"> return _gdal.Open(*args)</div>
<div style="text-align: left; text-indent: 0px;">E RuntimeError: test.tif: TIFFReadDirectory:Cannot handle zero number of strips</div>
<div style="text-align: left; text-indent: 0px;">------------------------------- Captured stdout -------------------------------</div>
<div class="elementToProof" style="text-align: left; text-indent: 0px;">iter = 1, comb_val_init = 11967072</div>
</td>
</tr>
</tbody>
</table>
</li></ol>
<ol start="1" data-editing-info="{"applyListStyleFromLevel":false,"orderedStyleType":6}" style="direction: ltr; text-align: left;">
<li style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); display: block; list-style-type: ") ";">
<span style="font-size: 16px; background-color: rgb(255, 255, 255);"><br>
</span></li></ol>
<ol start="1" data-editing-info="{"applyListStyleFromLevel":false,"orderedStyleType":1}" style="direction: ltr; list-style-type: decimal;">
<li style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px; color: rgb(0, 0, 0); margin-right: 0px; margin-left: 0px;">
<div class="elementToProof" style="direction: ltr; margin-top: 0px; margin-bottom: 0px;">
<span style="background-color: rgb(255, 255, 255);">Do I really need an external TIFF/GEOTIFF library with the CMAKE flags I passed while building from source?</span></div>
</li><li style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px; color: rgb(0, 0, 0);">
<div class="elementToProof" style="direction: ltr; margin-top: 0px; margin-bottom: 0px;">
<span style="background-color: rgb(255, 255, 255);">How I can get rid of the TIFF errors I am seeing above.</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px; color: rgb(0, 0, 0);">
<div class="elementToProof" style="direction: ltr; margin-top: 0px; margin-bottom: 0px;">
<span style="background-color: rgb(255, 255, 255);"><br>
Please suggest what am I doing wrong to fix this.</span><span style="font-size: 12pt;"><br>
<br>
</span></div>
</div>
</li></ol>
<div class="elementToProof" style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Best Regards</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Parveen<br>
<br>
<br>
<br>
<br>
</div>
</body>
</html>