<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"\7EAF\6587\672C Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.Char
        {mso-style-name:"\7EAF\6587\672C Char";
        mso-style-priority:99;
        mso-style-link:\7EAF\6587\672C;
        font-family:"Calibri","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
/* Page Definitions */
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'>
<div class=Section1>
<p class=MsoNormal><span lang=EN-US>Hi list,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I want to get all fields and their corresponding
values of a feature by using function:”OGRFeature::GetFieldAsString()”.
Then, I got <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>RCID 7<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>PRIM 1<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>GRUP 2<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>OBJL 9<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>RVER 1<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>AGEN 550<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>FIND 143752687<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>FIDS 2738<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>LNAM 022608917DEF0AB2<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>LNAM_REFS (1:022608917DD60AB2)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>…….<o:p></o:p></span></p>
<p class=MsoPlainText><span lang=EN-US>But I fail to retrieve feature</span><span
lang=EN-US style='font-family:"Courier New"'>’</span><span lang=EN-US>s
attribute field. For instance, when I got a </span><span lang=EN-US
style='font-family:"Courier New"'>“</span><span lang=EN-US>WRECKS</span><span
lang=EN-US style='font-family:"Courier New"'>”</span><span lang=EN-US>
which was indicated by </span><span lang=EN-US style='font-family:"Courier New"'>“</span><span
lang=EN-US>OBJL = 159</span><span lang=EN-US style='font-family:"Courier New"'>”</span><span
lang=EN-US>, I should be able to get its attribute field like<o:p></o:p></span></p>
<p class=MsoPlainText><span lang=EN-US>CATWRK = </span><span lang=EN-US
style='font-family:"Courier New"'>…</span><span lang=EN-US><o:p></o:p></span></p>
<p class=MsoPlainText><span lang=EN-US>QUASOU = </span><span lang=EN-US
style='font-family:"Courier New"'>…</span><span lang=EN-US><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>WATLEV = …<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Under Mr Chaitanya’s guidance, I set environment
variable OGR_S57_OPTIONS =
"RETURN_LINKAGES=ON,RETURN_PRIMITIVE=ON,RETURN_REFS=ON", but it doesn’t
work very well and I still got nothing relevant attribute field info.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Therefore, I doubt there is something wrong
with my ENC file and want to use “ogrinfo.exe” for testing.
However, the window disappear as soon as it appear when I dblclick it and so does
some other application like gdalwarp.exe.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Anyone could give me suggestion?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Best Regards,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Randy<o:p></o:p></span></p>
</div>
</body>
</html>