<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<span style="margin: 0px; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">Hi there, </span>
<div style="margin: 0px; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
I have a unique use case whereby I would like to parse ERDAS Imagine .ovr files (otherwise referred to as ERDAS annotation files) using the HFA driver implemented in GDAL. I understand that the HFA implementation is mainly for .img raster images and it is not
meant to support other HFA files like .ovr. </div>
<div style="margin: 0px; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<span style="margin:0px"><br>
</span></div>
<div style="margin: 0px; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<span style="margin:0px">However, I would just like to understand the cause behind the</span><b><span> </span>access failed</b><span style="margin:0px"><span> </span>output while using the </span><i>DumpInstValue</i><span style="margin:0px"> method in<span> </span></span><i>HFAField</i><span style="margin:0px"> to
inspect the .ovr file. The problem only seems to occur when it reaches the<span> </span><i>StyleLibrary<span> </span></i>node as it tries to parse its children.</span></div>
<div style="margin: 0px; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<span style="margin:0px"><span style="margin:0px;font-family:monospace"><span style="margin: 0px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);">StyleLibrary(StyleLibrary_Eant) @ 743 + 6907 @ 871</span><br>
+ lineStyles[0] = <br>
+ useCount = 0<br>
+ styleName = `Medium solid blackline'<br>
+ description = (no values)<br>
+ baseStyle = (no values)<br>
+ mask = 14<br>
+ styleUnits = <br>
+ coordSys = EEVG_OUTPUT<br>
+ units = `points'<br>
+ overLines = <br>
+ color = 0<br>
+ width = 2.000000<br>
+ linePattern = <br>
+ lineMark = 1.000000<br>
+ lineSpace = 0.000000<br>
+ lineStyles[1] = <br>
+ useCount = 0<br>
+ styleName = `thin solid'<br>
+ description = `thin single color solid line'<br>
+ baseStyle = (no values)<br>
+ mask = 12<br>
+ styleUnits = (no values)<br>
+ overLines = <br>
+ color = -1<br>
+ width = 0.700000<br>
+ linePattern[0] = <br>
+ lineMark = 10.000000<br>
+ lineSpace = 0.000000<br>
+ linePattern[1] = <br>
+ lineMark = 0.000000<br>
+ lineSpace = 0.000000</span></span></div>
<div style="margin: 0px; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<span style="margin:0px"><span style="margin:0px;font-family:monospace"><br>
</span></span></div>
<div style="margin: 0px; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<span style="margin:0px;font-family:"Arial Black", Arial, sans-serif"><b>.</b></span></div>
<div style="margin: 0px; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<div style="margin: 0px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);">
<span style="margin:0px;font-family:"Arial Black", Arial, sans-serif"><b> .</b></span></div>
<b><span style="margin: 0px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);"></span></b>
<div style="margin: 0px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);">
<span style="margin:0px;font-family:"Arial Black", Arial, sans-serif"><b> .</b></span></div>
</div>
<div style="margin: 0px; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<span style="margin:0px"><span style="margin:0px;font-family:monospace"><br>
</span></span></div>
<div style="margin: 0px; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<span style="margin:0px"><span style="margin:0px;font-family:monospace"><span style="margin: 0px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);"> + fillStyles[0] = </span><br>
+ useCount = 0<br>
+ styleName = `Filled black'<br>
+ description = (no values)<br>
+ baseStyle = (no values)<br>
+ mask = 30<br>
+ fill = EMSC_TRUE<br>
+ trace = EMSC_FALSE<br>
+ pattern = <br>
+ color = 0<br>
+ traceStyle = -1<br>
+ fillStyles[1] = <br>
+ useCount = 17<br>
+ styleName = `Text fill style'<br>
+ description = (no values)<br>
+ baseStyle = (no values)<br>
+ mask = 6<br>
+ fill = EMSC_TRUE<br>
+ trace = EMSC_FALSE<br>
+ pattern = (no values)<br>
+ traceStyle = 1<br>
+ fillStyles[2] = <br>
+ useCount = 16<br>
+ styleName = ` fill style'<br>
+ description = `kerville, no shadow or underline'<br>
+ fillStyles[3] = (access failed)<br>
+ fillStyles[4] = (access failed)<br>
+ fillStyles[5] = (access failed)<br>
+ fillStyles[6] = (access failed)<br>
+ fillStyles[7] = (access failed)<br>
+ fillStyles[8] = (access failed)<br>
+ fillStyles[9] = (access failed)<br>
+ fillStyles[10] = (access failed)<br>
+ fillStyles[11] = (access failed)<br>
+ fillStyles[12] = (access failed)<br>
+ fillStyles[13] = (access failed)<br>
+ fillStyles[14] = (access failed)<br>
+ fillStyles[15] = (access failed)<br>
+ ... remaining instances omitted ...</span><br>
</span></div>
<div style="margin: 0px; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<span style="margin:0px"><br>
</span></div>
<div style="margin: 0px; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<span style="margin:0px"></span></div>
<div style="margin: 0px; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<span style="margin:0px"><br>
</span></div>
<div style="margin: 0px; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<span style="margin:0px">Thank you!</span></div>
<div style="margin: 0px; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<span style="margin:0px"><br>
</span></div>
<div style="margin: 0px; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
gdal version: 3.2.2</div>
<div style="margin: 0px; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
operating system: fedora 30 x86_64</div>
<div style="margin: 0px; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Regards,</div>
<span style="margin: 0px; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">Shen Yi Hong</span><br>
</div>
</body>
</html>