<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="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 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Mangal;
        panose-1:0 0 4 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Book Antiqua";
        panose-1:2 4 6 2 5 3 5 3 3 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Book Antiqua";
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
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=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Hi,<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>I have written the following
code to select/highlight the features on the map.<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<font color=teal><span style='color:teal'>MgMap</span></font> map = <font
color=blue><span style='color:blue'>new</span></font> <font color=teal><span
style='color:teal'>MgMap</span></font>(myConnection);<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
map.Open(<font color=maroon><span style='color:maroon'>&quot;MyMap&quot;</span></font>);<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<font color=teal><span style='color:teal'>MgFeatureQueryOptions</span></font>
queryOptions = <font color=blue><span style='color:blue'>new</span></font> <font
color=teal><span style='color:teal'>MgFeatureQueryOptions</span></font>();<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
queryOptions.SetFilter(<font color=maroon><span style='color:maroon'>&quot;ID&lt;4&quot;</span></font>);<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<font color=teal><span style='color:teal'>MgLayer</span></font> layer =
map.GetLayers().GetItem(0) <font color=blue><span style='color:blue'>as</span></font>
<font color=teal><span style='color:teal'>MgLayer</span></font>;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<font color=teal><span style='color:teal'>MgFeatureReader</span></font>
featureReader = layer.SelectFeatures(queryOptions);<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<font color=teal><span style='color:teal'>MgSelection</span></font> selection =
<font color=blue><span style='color:blue'>new</span></font> <font color=teal><span
style='color:teal'>MgSelection</span></font>(map);<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
selection.AddFeatures(layer, featureReader, 0);<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; selectionXml
= selection.ToXml();&nbsp; <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Book Antiqua"><span style='font-size:
10.0pt;font-family:"Book Antiqua"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Book Antiqua"><span style='font-size:
10.0pt;font-family:"Book Antiqua"'>The code runs perfectly. And in viewer it also
shows that 2 Features Selected. But features are not highlighted on the map.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Book Antiqua"><span style='font-size:
10.0pt;font-family:"Book Antiqua"'>Please assist&#8230;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Book Antiqua"><span style='font-size:
10.0pt;font-family:"Book Antiqua"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><b><font size=2 color=gray face="Book Antiqua"><span
style='font-size:10.0pt;font-family:"Book Antiqua";color:gray;font-weight:bold'>Thanks
&amp; Regards,<o:p></o:p></span></font></b></p>

<p class=MsoNormal><font size=2 color=gray face="Times New Roman"><span
style='font-size:11.0pt;color:gray'>Ravinder<o:p></o:p></span></font></p>

</div>

<pre>******************************************************************************************************************************
"This message and any attachments are solely for the intended recipient and may contain Birlasoft confidential or privileged information. If you are not the intended recipient,any disclosure,copying, use, or distribution of the information included in this message and any attachments is 
prohibited. If you have received this communication in error, please notify us by reply e-mail(administrator@birlasoft.com) immediately and permanently delete this message and any attachments. Thank you."
******************************************************************************************************************************
</pre></body>

</html>