<?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 Convert Serialized PolygonN (XML) to Silverlight ESRI.ArcGIS.Client.Geometry.Polygon? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/convert-serialized-polygonn-xml-to-silverlight/m-p/244091#M6313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a convenient way to convert a &lt;/SPAN&gt;&lt;STRONG&gt;PolygonN &lt;/STRONG&gt;&lt;SPAN&gt;serialized as XML to a Silverlight &lt;/SPAN&gt;&lt;STRONG&gt;ESRI.ArcGIS.Client.Geometry.Polygon&lt;/STRONG&gt;&lt;SPAN&gt;?&amp;nbsp; Back in the Web ADF days, you could use a combination of System.Xml.Serialization.XmlSerializer and ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.Converter.ToAdfPolygon to create the Web ADF polygon from the PolygonN XML.&amp;nbsp; I would like to do the same within Silverlight to create ESRI.ArcGIS.Client.Geometry.Polygons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am hoping to avoid parsing the XML for the ring(s)/PointArray/Points and manually constructing the Silverlight polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Background&lt;/STRONG&gt;&lt;SPAN&gt;:&amp;nbsp; On one project we have a fairly substantial web service that pulls data from numerous sources (GIS and non-GIS) and among the return data are Esri Geometries (PolygonN, PolylineN, PointN) serialized as XML on the server and returned to the service consumer as a string. I don't have the luxury of modifying this web service, and am hoping to avoid having to create some kind of companion service that returns the Esri geometries in a more "Silverlight-friendly" way (for example, I've read the Esri blog post "&lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/03/11/Sending-geometry-between-Silverlight-and-the-server-using-WCF.aspx"&gt;Sending geometry between Silverlight and the server using WCF&lt;/A&gt;&lt;SPAN&gt;" - good post and I totally get how to do that, but don't want to go there...).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS Server 10 SP3 and Silverlight API 2.2 (though that may soon change to 2.3).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Dec 2011 17:14:07 GMT</pubDate>
    <dc:creator>DavidMarley</dc:creator>
    <dc:date>2011-12-01T17:14:07Z</dc:date>
    <item>
      <title>Convert Serialized PolygonN (XML) to Silverlight ESRI.ArcGIS.Client.Geometry.Polygon?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/convert-serialized-polygonn-xml-to-silverlight/m-p/244091#M6313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a convenient way to convert a &lt;/SPAN&gt;&lt;STRONG&gt;PolygonN &lt;/STRONG&gt;&lt;SPAN&gt;serialized as XML to a Silverlight &lt;/SPAN&gt;&lt;STRONG&gt;ESRI.ArcGIS.Client.Geometry.Polygon&lt;/STRONG&gt;&lt;SPAN&gt;?&amp;nbsp; Back in the Web ADF days, you could use a combination of System.Xml.Serialization.XmlSerializer and ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.Converter.ToAdfPolygon to create the Web ADF polygon from the PolygonN XML.&amp;nbsp; I would like to do the same within Silverlight to create ESRI.ArcGIS.Client.Geometry.Polygons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am hoping to avoid parsing the XML for the ring(s)/PointArray/Points and manually constructing the Silverlight polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Background&lt;/STRONG&gt;&lt;SPAN&gt;:&amp;nbsp; On one project we have a fairly substantial web service that pulls data from numerous sources (GIS and non-GIS) and among the return data are Esri Geometries (PolygonN, PolylineN, PointN) serialized as XML on the server and returned to the service consumer as a string. I don't have the luxury of modifying this web service, and am hoping to avoid having to create some kind of companion service that returns the Esri geometries in a more "Silverlight-friendly" way (for example, I've read the Esri blog post "&lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/03/11/Sending-geometry-between-Silverlight-and-the-server-using-WCF.aspx"&gt;Sending geometry between Silverlight and the server using WCF&lt;/A&gt;&lt;SPAN&gt;" - good post and I totally get how to do that, but don't want to go there...).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS Server 10 SP3 and Silverlight API 2.2 (though that may soon change to 2.3).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2011 17:14:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/convert-serialized-polygonn-xml-to-silverlight/m-p/244091#M6313</guid>
      <dc:creator>DavidMarley</dc:creator>
      <dc:date>2011-12-01T17:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Serialized PolygonN (XML) to Silverlight ESRI.ArcGIS.Client.Geometry.Poly</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/convert-serialized-polygonn-xml-to-silverlight/m-p/244092#M6314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In this &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/8774-save-layer-to-xml-file"&gt;thread&lt;/A&gt;&lt;SPAN&gt;, I gave code to serialize and deserialize graphics in XML (including geometry).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure it's useful if your XML input geometry is not using the same exact format, but it's worth to look at.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 06:51:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/convert-serialized-polygonn-xml-to-silverlight/m-p/244092#M6314</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-12-02T06:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Serialized PolygonN (XML) to Silverlight ESRI.ArcGIS.Client.Geometry.Poly</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/convert-serialized-polygonn-xml-to-silverlight/m-p/244093#M6315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply Dominique - I did find you post in my searches, and I will definitely take a look at your code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 10:57:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/convert-serialized-polygonn-xml-to-silverlight/m-p/244093#M6315</guid>
      <dc:creator>DavidMarley</dc:creator>
      <dc:date>2011-12-02T10:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Serialized PolygonN (XML) to Silverlight ESRI.ArcGIS.Client.Geometry.Poly</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/convert-serialized-polygonn-xml-to-silverlight/m-p/244094#M6316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also see this sample: &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=6d28a606369c43fd9a6f929541ae7c93"&gt;http://www.arcgis.com/home/item.html?id=6d28a606369c43fd9a6f929541ae7c93&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;While this converts SQL Server Geometry to JSON, it should provide you with the key parts for doing the same thing with PolygonN.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2012 19:04:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/convert-serialized-polygonn-xml-to-silverlight/m-p/244094#M6316</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2012-01-06T19:04:19Z</dc:date>
    </item>
  </channel>
</rss>

