<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>Dear Even,</p>
<p>Thank you for your answer.
</p>
<blockquote type="cite" cite="mid:16093580.ZZmd2xfaBe@even-i700">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<meta name="qrichtext" content="1">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> > I am using the "ReadXMLToList" method from the "GDALMDReaderBase" class[1].</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> In my development environment (with GDAL compiled by myself), it works</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> perfectly. But when want to compile my application on debian using the</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> package libgdal-dev[2], the linker can't find the symbols related to the</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> "GDALMDReaderBase" class. Do you know why "libgdal.so" from debian's package</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> doesn't contain all the symbols ?</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">It uses the --with-hide-internal-symbols switch to avoid exporting non-public symbols, such as the ones of GDALMDReaderBase, which is an implementation detail of GDAL</p>
</blockquote>
This "implementation detail" could be used in other contexts. I
understand GDAL doesn't have for purpose to provide a XML parser.
But this function is used to convert a XML file to a StringList,
which is a GDAL object. I think it would make sens to make that
function accessible.<br>
<blockquote type="cite" cite="mid:16093580.ZZmd2xfaBe@even-i700">
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> Don't you think that "ReadXMLToList",</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> which is a static method, </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">(it isn't actually a static method) As far as I can see, you can get the result of the parsing of those XML side-car files, mainly in the "IMD" metadata domain of the dataset</p>
</blockquote>
<p>You are right, this is not a static method. However, it only depends on the class method "<span class="pl-en">AddXMLNameValueToList" which is defined by a single line of code. So, this method could easily be made static.</span></p>
<p><span class="pl-en">Anyway, I leave this to your good judgement, and I will adapt according to your decision.</span></p>
<p><span class="pl-en">Best regards.
Julien :)
</span></p>
<p><span class="pl-en"></span></p>
</body>
</html>