<?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: ShapeFiles And Text files in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/shapefiles-and-text-files/m-p/385698#M10021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to parse the text file, create a PointCollection of MapPoints based on the (lat, lon) values. This PointCollection will be added to the ring(s) of your Polygon, which will become the Graphic's Geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 PointCollection pts = new PointCollection();
 
 // replace these points with the proper values
 pts.Add(new MapPoint(-35,51));&amp;nbsp; 
 pts.Add(new MapPoint(-36,80));
 
 Polygon p = new Polygon();
 p.Rings.Add(pts);
 Graphic g = new Graphic() { Geometry = p };
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 17:44:06 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2021-12-11T17:44:06Z</dc:date>
    <item>
      <title>ShapeFiles And Text files</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/shapefiles-and-text-files/m-p/385697#M10020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in my application, i need to load points and polygons through text files on runtime, like these&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
11,12;MyPointNamed
-35,51;-36,80;-100,42;-40,18;-35,51
-127,51;-84,2;0,0;-2,-40
11,16
11,20
11,24
11,28
11,32
21,32
31,32
41,32
51,32
61,42
71,52
81,62&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also need to load shapefiles on runtime. How do i do it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 13:02:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/shapefiles-and-text-files/m-p/385697#M10020</guid>
      <dc:creator>jonataspovoas</dc:creator>
      <dc:date>2010-10-26T13:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: ShapeFiles And Text files</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/shapefiles-and-text-files/m-p/385698#M10021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to parse the text file, create a PointCollection of MapPoints based on the (lat, lon) values. This PointCollection will be added to the ring(s) of your Polygon, which will become the Graphic's Geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 PointCollection pts = new PointCollection();
 
 // replace these points with the proper values
 pts.Add(new MapPoint(-35,51));&amp;nbsp; 
 pts.Add(new MapPoint(-36,80));
 
 Polygon p = new Polygon();
 p.Rings.Add(pts);
 Graphic g = new Graphic() { Geometry = p };
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:44:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/shapefiles-and-text-files/m-p/385698#M10021</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T17:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: ShapeFiles And Text files</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/shapefiles-and-text-files/m-p/385699#M10022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You need to parse the text file, create a PointCollection of MapPoints based on the (lat, lon) values. This PointCollection will be added to the ring(s) of your Polygon, which will become the Graphic's Geometry.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 PointCollection pts = new PointCollection();
 
 // replace these points with the proper values
 pts.Add(new MapPoint(-35,51));&amp;nbsp; 
 pts.Add(new MapPoint(-36,80));
 
 Polygon p = new Polygon();
 p.Rings.Add(pts);
 Graphic g = new Graphic() { Geometry = p };
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That should work for the Text Files, But how do I load A shapeFile into the application?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:44:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/shapefiles-and-text-files/m-p/385699#M10022</guid>
      <dc:creator>jonataspovoas</dc:creator>
      <dc:date>2021-12-11T17:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: ShapeFiles And Text files</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/shapefiles-and-text-files/m-p/385700#M10023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a sample of a shapefile reader here : &lt;/SPAN&gt;&lt;A href="http://esrislcontrib.codeplex.com/"&gt;http://esrislcontrib.codeplex.com/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 13:49:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/shapefiles-and-text-files/m-p/385700#M10023</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2010-10-28T13:49:10Z</dc:date>
    </item>
  </channel>
</rss>

