<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<meta name="Generator" content="Microsoft Word 14 (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:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        mso-fareast-language:EN-US;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
p.HTMLVorformatiert, li.HTMLVorformatiert, div.HTMLVorformatiert
        {mso-style-name:"HTML Vorformatiert";
        mso-style-link:"HTML Vorformatiert Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
span.HTMLVorformatiertZchn
        {mso-style-name:"HTML Vorformatiert Zchn";
        mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert";
        font-family:"Courier New";
        mso-fareast-language:DE;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></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="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hello David,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">can you please check that you feature source is not set as „read only“?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<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";mso-fareast-language:HR">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:HR"> mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>David Das Neves<br>
<b>Sent:</b> Tuesday, January 24, 2012 10:54 AM<br>
<b>To:</b> mapguide-users@lists.osgeo.org<br>
<b>Subject:</b> [mapguide-users] Showing point in map<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="DE">Hey guys,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I am totally frustrated now. After reconstructing and trying lots of examples to show a damn point in the map I did not get it to work.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The most example codes are offline and the demo project for the “markup feature” does also not work.<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">Now in the last step I tried to avoid to create the layer programmatically and created it in the Maestro.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">But now the code<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;mso-fareast-language:DE"> featureService.UpdateFeatures(resourceIdentifier, featureCommandCollection, </span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:blue;mso-fareast-language:DE">false</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;mso-fareast-language:DE">);<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">does not throw an exception and does also not work.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Has someone a solution for me – preferred in c# .Net for the Ajax viewer which knowly works?<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">I canīt believe that it is so hard to show a damn point in the map.<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">Here is the last way I have tried – (last one of lots before):<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:blue">void</span><span lang="EN-US" style="font-family:Consolas;color:black"> ShowPoint()<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> {<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:green">//---------------------------------------------------//</span><span lang="EN-US" style="font-family:Consolas;color:black"><o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:green">// Initialize</span><span lang="EN-US" style="font-family:Consolas;color:black"><o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> InitializeWebTier();<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> sessionId = Request.Params[</span><span lang="EN-US" style="font-family:Consolas;color:#A31515">"SESSION"</span><span lang="EN-US" style="font-family:Consolas;color:black">];<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> mapName = Request.Params[</span><span lang="EN-US" style="font-family:Consolas;color:#A31515">"MAPNAME"</span><span lang="EN-US" style="font-family:Consolas;color:black">];<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgUserInformation</span><span lang="EN-US" style="font-family:Consolas;color:black"> userInfo = </span><span lang="EN-US" style="font-family:Consolas;color:blue">new</span><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgUserInformation</span><span lang="EN-US" style="font-family:Consolas;color:black">(sessionId);<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgSiteConnection</span><span lang="EN-US" style="font-family:Consolas;color:black"> siteConnection = </span><span lang="EN-US" style="font-family:Consolas;color:blue">new</span><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgSiteConnection</span><span lang="EN-US" style="font-family:Consolas;color:black">();<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> siteConnection.Open(userInfo);<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgResourceService</span><span lang="EN-US" style="font-family:Consolas;color:black"> resourceService = (</span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgResourceService</span><span lang="EN-US" style="font-family:Consolas;color:black">)siteConnection.CreateService(</span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgServiceType</span><span lang="EN-US" style="font-family:Consolas;color:black">.ResourceService);<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgFeatureService</span><span lang="EN-US" style="font-family:Consolas;color:black"> featureService = (</span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgFeatureService</span><span lang="EN-US" style="font-family:Consolas;color:black">)siteConnection.CreateService(</span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgServiceType</span><span lang="EN-US" style="font-family:Consolas;color:black">.FeatureService);<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> <o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="DE" style="font-family:Consolas;color:green">//---------------------------------------------------//</span><span lang="DE" style="font-family:Consolas;color:black"><o:p></o:p></span></pre>
<pre style="background:white"><span lang="DE" style="font-family:Consolas;color:black"> </span><span lang="DE" style="font-family:Consolas;color:green">// Open the map</span><span lang="DE" style="font-family:Consolas;color:black"><o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgMap</span><span lang="EN-US" style="font-family:Consolas;color:black"> map = </span><span lang="EN-US" style="font-family:Consolas;color:blue">new</span><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgMap</span><span lang="EN-US" style="font-family:Consolas;color:black">(siteConnection);<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="DE" style="font-family:Consolas;color:black">map.Open(mapName);<o:p></o:p></span></pre>
<pre style="background:white"><span lang="DE" style="font-family:Consolas;color:black"> <o:p></o:p></span></pre>
<pre style="background:white"><span lang="DE" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgBatchPropertyCollection</span><span lang="EN-US" style="font-family:Consolas;color:black"> batchPropertyCollection = </span><span lang="EN-US" style="font-family:Consolas;color:blue">new</span><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgBatchPropertyCollection</span><span lang="EN-US" style="font-family:Consolas;color:black">();<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">String</span><span lang="EN-US" style="font-family:Consolas;color:black"> featureSourceName = </span><span lang="EN-US" style="font-family:Consolas;color:#A31515">"Library://test/shapes/POIs.FeatureSource"</span><span lang="EN-US" style="font-family:Consolas;color:black">;<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:#2B91AF"> </span><span lang="EN-US" style="font-family:Consolas;color:green">//String featureSourceName = "Library://test/layer/POIs.LayerDefinition";</span><span lang="EN-US" style="font-family:Consolas;color:black"><o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"><o:p> </o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgResourceIdentifier</span><span lang="EN-US" style="font-family:Consolas;color:black"> resourceIdentifier = </span><span lang="EN-US" style="font-family:Consolas;color:blue">new</span><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgResourceIdentifier</span><span lang="EN-US" style="font-family:Consolas;color:black">(featureSourceName);<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> <o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:green">// Make the point</span><span lang="EN-US" style="font-family:Consolas;color:black"><o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> batchPropertyCollection.Add(MakePoint(</span><span lang="EN-US" style="font-family:Consolas;color:#A31515">"Point A"</span><span lang="EN-US" style="font-family:Consolas;color:black">, x, y));<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> <o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:green">// Add the batch property collection to the feature source</span><span lang="EN-US" style="font-family:Consolas;color:black"><o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgInsertFeatures</span><span lang="EN-US" style="font-family:Consolas;color:black"> cmd = </span><span lang="EN-US" style="font-family:Consolas;color:blue">new</span><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgInsertFeatures</span><span lang="EN-US" style="font-family:Consolas;color:black">(</span><span lang="EN-US" style="font-family:Consolas;color:#A31515">"POIs"</span><span lang="EN-US" style="font-family:Consolas;color:black">, batchPropertyCollection);<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgFeatureCommandCollection</span><span lang="EN-US" style="font-family:Consolas;color:black"> featureCommandCollection = </span><span lang="EN-US" style="font-family:Consolas;color:blue">new</span><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgFeatureCommandCollection</span><span lang="EN-US" style="font-family:Consolas;color:black">();<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> featureCommandCollection.Add(cmd);<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"><o:p> </o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:green">// Execute the "add" commands</span><span lang="EN-US" style="font-family:Consolas;color:black"><o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> featureService.UpdateFeatures(resourceIdentifier, featureCommandCollection, </span><span lang="EN-US" style="font-family:Consolas;color:blue">false</span><span lang="EN-US" style="font-family:Consolas;color:black">);<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> <o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="DE" style="font-family:Consolas;color:green">// Saving the map</span><span lang="DE" style="font-family:Consolas;color:black"><o:p></o:p></span></pre>
<pre style="background:white"><span lang="DE" style="font-family:Consolas;color:black"> map.Save(resourceService);<o:p></o:p></span></pre>
<pre style="background:white"><span lang="DE" style="font-family:Consolas;color:black"> </span><span lang="DE" style="font-family:Consolas;color:green">//map.save</span><span lang="DE" style="font-family:Consolas;color:black"><o:p></o:p></span></pre>
<pre style="background:white"><span lang="DE" style="font-family:Consolas;color:black"><o:p> </o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:blue">string</span><span lang="EN-US" style="font-family:Consolas;color:black"> script = </span><span lang="EN-US" style="font-family:Consolas;color:#A31515">"parent.Refresh();"</span><span lang="EN-US" style="font-family:Consolas;color:black">;<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> <o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> ClientScript.RegisterClientScriptBlock(</span><span lang="EN-US" style="font-family:Consolas;color:blue">this</span><span lang="EN-US" style="font-family:Consolas;color:black">.GetType(), </span><span lang="EN-US" style="font-family:Consolas;color:#A31515">"Refresh"</span><span lang="EN-US" style="font-family:Consolas;color:black">,<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> script, </span><span lang="EN-US" style="font-family:Consolas;color:blue">true</span><span lang="EN-US" style="font-family:Consolas;color:black">);<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> ClientScript.RegisterStartupScript(</span><span lang="EN-US" style="font-family:Consolas;color:blue">this</span><span lang="EN-US" style="font-family:Consolas;color:black">.GetType(), </span><span lang="EN-US" style="font-family:Consolas;color:#A31515">"Refresh"</span><span lang="EN-US" style="font-family:Consolas;color:black">, </span><span lang="EN-US" style="font-family:Consolas;color:#A31515">"Refresh();"</span><span lang="EN-US" style="font-family:Consolas;color:black">);<o:p></o:p></span></pre>
<p class="MsoNormal"><span lang="DE">}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE"><o:p> </o:p></span></p>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:green">///////////////////////////////////////////////////////////////////////////////////</span><span lang="EN-US" style="font-family:Consolas;color:black"><o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgPropertyCollection</span><span lang="EN-US" style="font-family:Consolas;color:black"> MakePoint(</span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">String</span><span lang="EN-US" style="font-family:Consolas;color:black"> name, </span><span lang="EN-US" style="font-family:Consolas;color:blue">double</span><span lang="EN-US" style="font-family:Consolas;color:black"> x, </span><span lang="EN-US" style="font-family:Consolas;color:blue">double</span><span lang="EN-US" style="font-family:Consolas;color:black"> y)<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> {<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgPropertyCollection</span><span lang="EN-US" style="font-family:Consolas;color:black"> propertyCollection = </span><span lang="EN-US" style="font-family:Consolas;color:blue">new</span><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgPropertyCollection</span><span lang="EN-US" style="font-family:Consolas;color:black">();<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"><o:p> </o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgWktReaderWriter</span><span lang="EN-US" style="font-family:Consolas;color:black"> wktReaderWriter = </span><span lang="EN-US" style="font-family:Consolas;color:blue">new</span><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgWktReaderWriter</span><span lang="EN-US" style="font-family:Consolas;color:black">();<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgAgfReaderWriter</span><span lang="EN-US" style="font-family:Consolas;color:black"> agfReaderWriter = </span><span lang="EN-US" style="font-family:Consolas;color:blue">new</span><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgAgfReaderWriter</span><span lang="EN-US" style="font-family:Consolas;color:black">();<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> <o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgGeometry</span><span lang="EN-US" style="font-family:Consolas;color:black"> geometry = (</span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgPoint</span><span lang="EN-US" style="font-family:Consolas;color:black">)wktReaderWriter.Read(</span><span lang="EN-US" style="font-family:Consolas;color:#A31515">"POINT XY ("</span><span lang="EN-US" style="font-family:Consolas;color:black"> + x.ToString().Replace(</span><span lang="EN-US" style="font-family:Consolas;color:#A31515">','</span><span lang="EN-US" style="font-family:Consolas;color:black">, </span><span lang="EN-US" style="font-family:Consolas;color:#A31515">'.'</span><span lang="EN-US" style="font-family:Consolas;color:black">) + </span><span lang="EN-US" style="font-family:Consolas;color:#A31515">" "</span><span lang="EN-US" style="font-family:Consolas;color:black"> + y.ToString().Replace(</span><span lang="EN-US" style="font-family:Consolas;color:#A31515">','</span><span lang="EN-US" style="font-family:Consolas;color:black">, </span><span lang="EN-US" style="font-family:Consolas;color:#A31515">'.'</span><span lang="EN-US" style="font-family:Consolas;color:black">) + </span><span lang="EN-US" style="font-family:Consolas;color:#A31515">")"</span><span lang="EN-US" style="font-family:Consolas;color:black">);<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> <o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgByteReader</span><span lang="EN-US" style="font-family:Consolas;color:black"> geometryByteReader = agfReaderWriter.Write(geometry);<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgGeometryProperty</span><span lang="EN-US" style="font-family:Consolas;color:black"> geometryProperty = </span><span lang="EN-US" style="font-family:Consolas;color:blue">new</span><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgGeometryProperty</span><span lang="EN-US" style="font-family:Consolas;color:black">(</span><span lang="EN-US" style="font-family:Consolas;color:#A31515">"Geometry"</span><span lang="EN-US" style="font-family:Consolas;color:black">, geometryByteReader);<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"><o:p> </o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:green">//propertyCollection.Add(new MgInt32Property("FeatId", 6));</span><span lang="EN-US" style="font-family:Consolas;color:black"><o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> propertyCollection.Add(</span><span lang="EN-US" style="font-family:Consolas;color:blue">new</span><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgStringProperty</span><span lang="EN-US" style="font-family:Consolas;color:black">(</span><span lang="EN-US" style="font-family:Consolas;color:#A31515">"Name"</span><span lang="EN-US" style="font-family:Consolas;color:black">, </span><span lang="EN-US" style="font-family:Consolas;color:#A31515">"Name"</span><span lang="EN-US" style="font-family:Consolas;color:black">));<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> propertyCollection.Add(</span><span lang="EN-US" style="font-family:Consolas;color:blue">new</span><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:#2B91AF">MgGeometryProperty</span><span lang="EN-US" style="font-family:Consolas;color:black">(</span><span lang="EN-US" style="font-family:Consolas;color:#A31515">"Geometry"</span><span lang="EN-US" style="font-family:Consolas;color:black">, geometryByteReader));<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> <o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> wktReaderWriter.Dispose();<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> agfReaderWriter.Dispose();<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> <o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="EN-US" style="font-family:Consolas;color:blue">return</span><span lang="EN-US" style="font-family:Consolas;color:black"> propertyCollection;<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-US" style="font-family:Consolas;color:black"> </span><span lang="DE" style="font-family:Consolas;color:black">}<o:p></o:p></span></pre>
<pre style="background:white"><span lang="DE" style="font-family:Consolas;color:black"><o:p> </o:p></span></pre>
<pre style="background:white"><span lang="DE" style="font-family:Consolas;color:black"><o:p> </o:p></span></pre>
<pre style="background:white"><span lang="DE" style="font-family:Consolas;color:black"><o:p> </o:p></span></pre>
<pre style="background:white"><span lang="DE" style="font-family:Consolas;color:black">Best Regards<o:p></o:p></span></pre>
<pre style="background:white"><span lang="DE" style="font-family:Consolas;color:black"><o:p> </o:p></span></pre>
<pre style="background:white"><span lang="DE" style="font-family:Consolas;color:black">David<o:p></o:p></span></pre>
<p class="MsoNormal"><span lang="DE"><o:p> </o:p></span></p>
</div>
</body>
</html>