Hi there, 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.
However, I would just like to understand the cause behind the access failed output while using the DumpInstValue method in HFAField to inspect the .ovr file. The problem only seems to occur when it reaches the StyleLibrary node as it tries to parse its children. StyleLibrary(StyleLibrary_Eant) @ 743 + 6907 @ 871 + lineStyles[0] = + useCount = 0 + styleName = `Medium solid blackline' + description = (no values) + baseStyle = (no values) + mask = 14 + styleUnits = + coordSys = EEVG_OUTPUT + units = `points' + overLines = + color = 0 + width = 2.000000 + linePattern = + lineMark = 1.000000 + lineSpace = 0.000000 + lineStyles[1] = + useCount = 0 + styleName = `thin solid' + description = `thin single color solid line' + baseStyle = (no values) + mask = 12 + styleUnits = (no values) + overLines = + color = -1 + width = 0.700000 + linePattern[0] = + lineMark = 10.000000 + lineSpace = 0.000000 + linePattern[1] = + lineMark = 0.000000 + lineSpace = 0.000000 . . . + fillStyles[0] = + useCount = 0 + styleName = `Filled black' + description = (no values) + baseStyle = (no values) + mask = 30 + fill = EMSC_TRUE + trace = EMSC_FALSE + pattern = + color = 0 + traceStyle = -1 + fillStyles[1] = + useCount = 17 + styleName = `Text fill style' + description = (no values) + baseStyle = (no values) + mask = 6 + fill = EMSC_TRUE + trace = EMSC_FALSE + pattern = (no values) + traceStyle = 1 + fillStyles[2] = + useCount = 16 + styleName = ` fill style' + description = `kerville, no shadow or underline' + fillStyles[3] = (access failed) + fillStyles[4] = (access failed) + fillStyles[5] = (access failed) + fillStyles[6] = (access failed) + fillStyles[7] = (access failed) + fillStyles[8] = (access failed) + fillStyles[9] = (access failed) + fillStyles[10] = (access failed) + fillStyles[11] = (access failed) + fillStyles[12] = (access failed) + fillStyles[13] = (access failed) + fillStyles[14] = (access failed) + fillStyles[15] = (access failed) + ... remaining instances omitted ... Thank you! gdal version: 3.2.2 operating system: fedora 30 x86_64 Regards, Shen Yi Hong
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev