<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:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:D="DAV:" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" 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:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","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-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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=HR link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hello Susan,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Here is C# code for selection, it's pretty same as PHP. <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#FF9595;background:black;mso-highlight:black'>MgSiteConnection</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>siteConnection</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>=</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:red;background:black;mso-highlight:black'>null</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>;<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:white;
background:black;mso-highlight:black'>InitializeWebTier</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>();<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:#FF9595;
background:black;mso-highlight:black'>MgUserInformation</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>userInfo</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>=</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:red;background:black;mso-highlight:black'>new</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:#FF9595;background:black;mso-highlight:black'>MgUserInformation</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>(</span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>mgSessionId</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>);<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:white;
background:black;mso-highlight:black'>siteConnection</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>=</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:red;background:black;mso-highlight:black'>new</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:#FF9595;background:black;mso-highlight:black'>MgSiteConnection</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>();<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:white;
background:black;mso-highlight:black'>siteConnection.Open</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>(</span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>userInfo</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>);<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:#FF9595;
background:black;mso-highlight:black'>MgResourceService</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>resourceService</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>=</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>siteConnection.CreateService</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>(</span><span style='font-size:13.0pt;font-family:Consolas;
color:#FF9595;background:black;mso-highlight:black'>MgServiceType</span><span
style='font-size:13.0pt;font-family:Consolas;color:white;background:black;
mso-highlight:black'>.ResourceService</span><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>) </span><span
style='font-size:13.0pt;font-family:Consolas;color:red;background:black;
mso-highlight:black'>as</span><span style='font-size:13.0pt;font-family:Consolas;
color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-size:13.0pt;font-family:Consolas;color:#FF9595;background:black;
mso-highlight:black'>MgResourceService</span><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>;<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:#FF9595;
background:black;mso-highlight:black'>MgFeatureService</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>featureService</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>=</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>siteConnection.CreateService</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>(</span><span style='font-size:13.0pt;font-family:Consolas;
color:#FF9595;background:black;mso-highlight:black'>MgServiceType</span><span
style='font-size:13.0pt;font-family:Consolas;color:white;background:black;
mso-highlight:black'>.FeatureService</span><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>) </span><span
style='font-size:13.0pt;font-family:Consolas;color:red;background:black;
mso-highlight:black'>as</span><span style='font-size:13.0pt;font-family:Consolas;
color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-size:13.0pt;font-family:Consolas;color:#FF9595;background:black;
mso-highlight:black'>MgFeatureService</span><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>;<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:#FF9595;
background:black;mso-highlight:black'>MgMap</span><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-size:13.0pt;font-family:Consolas;color:white;background:black;
mso-highlight:black'>map</span><span style='font-size:13.0pt;font-family:Consolas;
color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-size:13.0pt;font-family:Consolas;color:white;background:black;
mso-highlight:black'>=</span><span style='font-size:13.0pt;font-family:Consolas;
color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-size:13.0pt;font-family:Consolas;color:red;background:black;
mso-highlight:black'>new</span><span style='font-size:13.0pt;font-family:Consolas;
color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-size:13.0pt;font-family:Consolas;color:#FF9595;background:black;
mso-highlight:black'>MgMap</span><span style='font-size:13.0pt;font-family:
Consolas;color:#E0E0E0;background:black;mso-highlight:black'>();<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:white;
background:black;mso-highlight:black'>map.Open</span><span style='font-size:
13.0pt;font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>(</span><span
style='font-size:13.0pt;font-family:Consolas;color:white;background:black;
mso-highlight:black'>resourceService</span><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>, </span><span
style='font-size:13.0pt;font-family:Consolas;color:red;background:black;
mso-highlight:black'>"1"</span><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>); </span><span
style='font-size:13.0pt;font-family:Consolas;color:lime;background:black;
mso-highlight:black'>//opening map with name „1“<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:lime;background:black;mso-highlight:black'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:#FF9595;
background:black;mso-highlight:black'>MgFeatureQueryOptions</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>queryOptionsObjekti</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>=</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:red;background:black;mso-highlight:black'>new</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:#FF9595;background:black;mso-highlight:black'>MgFeatureQueryOptions</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>();<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:#FF9595;
background:black;mso-highlight:black'>MgAgfReaderWriter</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>geometryReaderWriter</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>=</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:red;background:black;mso-highlight:black'>new</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:#FF9595;background:black;mso-highlight:black'>MgAgfReaderWriter</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>();<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:#FF9595;
background:black;mso-highlight:black'>MgSelection</span><span style='font-size:
13.0pt;font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:white;
background:black;mso-highlight:black'>selection</span><span style='font-size:
13.0pt;font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:white;
background:black;mso-highlight:black'>=</span><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-size:13.0pt;font-family:Consolas;color:red;background:black;
mso-highlight:black'>new</span><span style='font-size:13.0pt;font-family:Consolas;
color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-size:13.0pt;font-family:Consolas;color:#FF9595;background:black;
mso-highlight:black'>MgSelection</span><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>(</span><span
style='font-size:13.0pt;font-family:Consolas;color:white;background:black;
mso-highlight:black'>map</span><span style='font-size:13.0pt;font-family:Consolas;
color:#E0E0E0;background:black;mso-highlight:black'>);<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:lime;
background:black;mso-highlight:black'>//Defining layer and feature source<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:#FF9595;
background:black;mso-highlight:black'>MgLayer</span><span style='font-size:
13.0pt;font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:white;
background:black;mso-highlight:black'>layerObjekti</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>=</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>GetLayerByName</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>(</span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>map</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>, </span><span style='font-size:13.0pt;font-family:Consolas;
color:red;background:black;mso-highlight:black'>"OBJEKTI"</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>);<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:#FF9595;
background:black;mso-highlight:black'>MgResourceIdentifier</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>featureResIdObjekti</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>=</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:red;background:black;mso-highlight:black'>new</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:#FF9595;background:black;mso-highlight:black'>MgResourceIdentifier</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>(</span><span style='font-size:13.0pt;font-family:Consolas;
color:red;background:black;mso-highlight:black'>"Library://PROJEKTI/"</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>+</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>TIMgisUser</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>+</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:red;background:black;mso-highlight:black'>"/PODACI/OBJEKTI.FeatureSource"</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>);<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:lime;
background:black;mso-highlight:black'>//Creating feature filter, this is very
important step!<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:red;background:
black;mso-highlight:black'>string</span><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-size:13.0pt;font-family:Consolas;color:white;background:black;
mso-highlight:black'>filter</span><span style='font-size:13.0pt;font-family:
Consolas;color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-size:13.0pt;font-family:Consolas;color:white;background:black;
mso-highlight:black'>=</span><span style='font-size:13.0pt;font-family:Consolas;
color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-size:13.0pt;font-family:Consolas;color:red;background:black;
mso-highlight:black'>"ID="</span><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-size:13.0pt;font-family:Consolas;color:white;background:black;
mso-highlight:black'>+</span><span style='font-size:13.0pt;font-family:Consolas;
color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-size:13.0pt;font-family:Consolas;color:white;background:black;
mso-highlight:black'>idO</span><span style='font-size:13.0pt;font-family:Consolas;
color:#E0E0E0;background:black;mso-highlight:black'>;<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:white;
background:black;mso-highlight:black'>queryOptionsObjekti.SetFilter</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>(</span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>filter</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>);<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:#FF9595;
background:black;mso-highlight:black'>MgFeatureReader</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>featureReaderObjekti</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>=</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>featureService.SelectFeatures</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>(</span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>featureResIdObjekti</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>, </span><span style='font-size:13.0pt;font-family:Consolas;
color:red;background:black;mso-highlight:black'>"OBJEKTI"</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>, </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>queryOptionsObjekti</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>);<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:white;
background:black;mso-highlight:black'>selection.AddFeatures</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>(</span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>layerObjekti</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>, </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>featureReaderObjekti</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>, </span><span style='font-size:13.0pt;font-family:Consolas;
color:yellow;background:black;mso-highlight:black'>1</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>);<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:white;
background:black;mso-highlight:black'>selection.Save</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>(</span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>resourceService</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>, </span><span style='font-size:13.0pt;font-family:Consolas;
color:red;background:black;mso-highlight:black'>"1"</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>);<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:#FF9595;
background:black;mso-highlight:black'>StringReader</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>stream</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>=</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:red;background:black;mso-highlight:black'>new</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:#FF9595;background:black;mso-highlight:black'>StringReader</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>(</span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>selection.ToXml</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>());<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:red;background:
black;mso-highlight:black'>string</span><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-size:13.0pt;font-family:Consolas;color:white;background:black;
mso-highlight:black'>selectionXml</span><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-size:13.0pt;font-family:Consolas;color:white;background:black;
mso-highlight:black'>=</span><span style='font-size:13.0pt;font-family:Consolas;
color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-size:13.0pt;font-family:Consolas;color:white;background:black;
mso-highlight:black'>selection.ToXml</span><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>();<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:white;
background:black;mso-highlight:black'>featureReaderObjekti.Close</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>();<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:white;
background:black;mso-highlight:black'>map.Save</span><span style='font-size:
13.0pt;font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>();<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>
</span><span style='font-size:13.0pt;font-family:Consolas;color:lime;
background:black;mso-highlight:black'>//Here, you call javascript function and
pass the selection var<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:13.0pt;font-family:Consolas;
color:#E0E0E0;background:black;mso-highlight:black'> </span><span
style='font-size:13.0pt;font-family:Consolas;color:white;background:black;
mso-highlight:black'>Response.Write</span><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>(</span><span
style='font-size:13.0pt;font-family:Consolas;color:red;background:black;
mso-highlight:black'>"<script>select('"</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>+</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>selectionXml</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>+</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:red;background:black;mso-highlight:black'>"');</script>"</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>);</span><span style='font-size:13.0pt;font-family:Consolas;
color:#E0E0E0'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:13.0pt;font-family:Consolas;
color:#E0E0E0'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:lime;background:black;mso-highlight:black'>//This is
javascript function that set's the selection from code and do the refresh.<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:red;background:black;mso-highlight:black'>function</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'> </span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>select</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>(</span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>xml</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>)<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>{<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:white;background:black;mso-highlight:black'>parent</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>.</span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>mapFrame</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>.</span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>SetSelectionXML</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>(</span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>xml</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>);<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:white;background:black;mso-highlight:black'>parent</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>.</span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>mapFrame</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>.</span><span style='font-size:13.0pt;font-family:Consolas;
color:white;background:black;mso-highlight:black'>ExecuteMapAction</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>(</span><span style='font-size:13.0pt;font-family:Consolas;
color:yellow;background:black;mso-highlight:black'>10</span><span
style='font-size:13.0pt;font-family:Consolas;color:#E0E0E0;background:black;
mso-highlight:black'>);<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:13.0pt;
font-family:Consolas;color:#E0E0E0;background:black;mso-highlight:black'>}<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>susan
Daniel<br>
<b>Sent:</b> Friday, April 17, 2009 9:11 AM<br>
<b>To:</b> mapguide-users@lists.osgeo.org<br>
<b>Subject:</b> [mapguide-users] select the location on map<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>hi all<br>
My plat form is mapguide
maestro&php.I connect it with mysql.Now i want to select the corresponding
polygon on the map while clicking on the data in database.In order to display
the database table in the taskpane,i removed the contents of the file
"/mapviewerphp/getting started .php" and wrote my codings.then how to
select the polygon?.Any one know this????Anyone having coding to do this???<br>
please help me<br clear=all>
<br>
<br>
thanks&regards<br>
susan<o:p></o:p></p>
</div>
</body>
</html>