<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How create .cal file with KmlDocument ? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/how-create-cal-file-with-kmldocument/m-p/120635#M1331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I find.&amp;nbsp;I wasn't making any sense. To extract directly. You have to go to Graphics of SketchOverlay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Sep 2020 11:41:23 GMT</pubDate>
    <dc:creator>CavronJeremy</dc:creator>
    <dc:date>2020-09-15T11:41:23Z</dc:date>
    <item>
      <title>How create .cal file with KmlDocument ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-create-cal-file-with-kmldocument/m-p/120633#M1329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How can I convert a KmlDocument created with SketchEditor to a .cal file?&lt;/P&gt;&lt;P&gt;I try to close on the document but I don't have all the informations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;foreach (Object objChildNodes in mKmlDocument.ChildNodes)&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if (objChildNodes is KmlPlacemark)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; KmlPlacemark pl = (KmlPlacemark)objChildNodes;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine("type"); &lt;STRONG&gt;// I have type : Polygon, Polyline (only)&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(pl.GraphicType.ToString());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;foreach (Object obj in pl.Geometries)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if(obj is KmlGeometry)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; KmlGeometry kGeo = (KmlGeometry)obj;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine("-- Geometrie");&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(kGeo.Geometry.SpatialReference.ToJson());&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(((KmlGeometry)obj).Geometry.ToJson());&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine("Type");&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(kGeo.Type.ToString());&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I don't have Style in KmlDocument, the same in KmlPlaceMark.&amp;nbsp;Yet I do have line thickness and color on the SketchEditor.&lt;/P&gt;&lt;P&gt;Another thing.&lt;BR /&gt;I drew a rectangle. If I display the geometry in the console. It shows me the polygon or polyline type, but never rectangle, circle, etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2020 10:08:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-create-cal-file-with-kmldocument/m-p/120633#M1329</guid>
      <dc:creator>CavronJeremy</dc:creator>
      <dc:date>2020-09-15T10:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: How create .cal file with KmlDocument ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-create-cal-file-with-kmldocument/m-p/120634#M1330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be don't use Kml format and use directly GraphicsOverlay for extract informations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2020 10:40:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-create-cal-file-with-kmldocument/m-p/120634#M1330</guid>
      <dc:creator>CavronJeremy</dc:creator>
      <dc:date>2020-09-15T10:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: How create .cal file with KmlDocument ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-create-cal-file-with-kmldocument/m-p/120635#M1331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I find.&amp;nbsp;I wasn't making any sense. To extract directly. You have to go to Graphics of SketchOverlay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2020 11:41:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-create-cal-file-with-kmldocument/m-p/120635#M1331</guid>
      <dc:creator>CavronJeremy</dc:creator>
      <dc:date>2020-09-15T11:41:23Z</dc:date>
    </item>
  </channel>
</rss>

