<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=gb2312">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:宋体;
        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:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:新宋体;
        panose-1:2 1 6 9 3 1 1 1 1 1;}
@font-face
        {font-family:"\@新宋体";
        panose-1:2 1 6 9 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;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.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>Under Mr Frank and Mr Chaitanya’s guidance,
I try to get every feature’s field(including its name and value). But I find
that I cannot get all fields. The following is my code snippet(in MFC):<o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;text-autospace:none'><span
lang=EN-US>
</span><span lang=EN-US style='font-size:9.0pt;font-family:新宋体'>CString strEnd=</span><span
lang=EN-US style='font-size:9.0pt;font-family:"Times New Roman","serif"'>”</span><span
lang=EN-US style='font-size:9.0pt;font-family:新宋体'>\r\n</span><span lang=EN-US
style='font-size:9.0pt;font-family:"Times New Roman","serif"'>”</span><span
lang=EN-US style='font-size:9.0pt;font-family:新宋体'>;<o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;text-autospace:none'><span
lang=EN-US style='font-size:9.0pt;font-family:新宋体'>
int nFieldCount=0;<o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;text-autospace:none'><span
lang=EN-US style='font-size:9.0pt;font-family:新宋体'> <span
style='color:blue'>for</span>(nFieldCount=0;nFieldCount<poFeature->GetFieldCount();nFieldCount++)<o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;text-autospace:none'><span
lang=EN-US style='font-size:9.0pt;font-family:新宋体'> {<o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;text-autospace:none'><span
lang=EN-US style='font-size:9.0pt;font-family:新宋体'> poFieldDefn=poFeature->GetFieldDefnRef(nFieldCount);<o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;text-autospace:none'><span
lang=EN-US style='font-size:9.0pt;font-family:新宋体'>
fieldName=poFieldDefn->GetNameRef();<o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;text-autospace:none'><span
lang=EN-US style='font-size:9.0pt;font-family:新宋体'> fileFieldAttr.Write(fieldName,strlen(fieldName));<o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;text-autospace:none'><span
lang=EN-US style='font-size:9.0pt;font-family:新宋体'>
outputFieldAttr=poFeature->GetFieldAsString(nFieldCount);<o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left;text-autospace:none'><span
lang=EN-US style='font-size:9.0pt;font-family:新宋体'> fileFieldAttr.Write(outputFieldAttr+strEnd,strlen(outputFieldAttr)+2);<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:新宋体'> }<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Then, what I got was as follows:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>RCID3<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>PRIM1<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>GRUP2<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>OBJL9<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>RVER1<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>AGEN550<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>FIDN344289455<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>FIDS2233<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>LNAM0226148570AF08B9<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>LNAM_REFS(2:02261485702E08B9,02261485703208B9)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>FFPT_RIND(2:2,2)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>RCID4<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>PRIM1<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>GRUP2<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>OBJL39<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>…………<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>It means that I didn’t get the feature’s
attribute field(ATTF) like ATTL</span><span style='font-family:宋体'>、</span><span
lang=EN-US>ATVL and feature’s FSPT field(Feature Record to Spatial Record
Pointer) like ORNT</span><span style='font-family:宋体'>、</span><span lang=EN-US>USAG</span><span
style='font-family:宋体'>、</span><span lang=EN-US>MASK.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Then who can tell me what’s wrong with my
code?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Thanks a lot!!!<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><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>
<p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p>
</div>
</body>
</html>