<?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: Create Geometry from JSON string in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-geometry-from-json-string/m-p/534345#M13693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not the answer I was hoping for, but thank you for the reply!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Out of curiosity, is there a particular reason that this feature in not implemented in the Silverlight version (since the feature exists in Flex)? Is this something that will/could be implemented in a future version of the Silverlight API?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2012 11:45:48 GMT</pubDate>
    <dc:creator>MichaelOberegger</dc:creator>
    <dc:date>2012-07-19T11:45:48Z</dc:date>
    <item>
      <title>Create Geometry from JSON string</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-geometry-from-json-string/m-p/534343#M13691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Flex API's Geometry class has a static method called fromJSON() that lets you easily get a Geometry object from a JSON string that respresents a geometry. For example, you could do something like Geometry.fromJSON("\"geometry\":{\"x\":-10619660.612597,\"y\":3474324.60413219") and receive a Point object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does the Silverlight API have something similar to this? I see that the FeatureSet and FeatureLayer classes have a FromJson method, but they require more than a more complex JSON string that contains more than just the geometry values, and will also create an entire FeatureSet or FeatureLayer that I don't need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How would I go about doing something like this? Any help would be greatly appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 12:17:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-geometry-from-json-string/m-p/534343#M13691</guid>
      <dc:creator>MichaelOberegger</dc:creator>
      <dc:date>2012-07-18T12:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create Geometry from JSON string</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-geometry-from-json-string/m-p/534344#M13692</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;there is an internal API class called ArcGISJsonReader which does this but since it's internal you can't use it. If you use something like Telerik JustDecompile you can inspect the code and make your own though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 00:58:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-geometry-from-json-string/m-p/534344#M13692</guid>
      <dc:creator>DaveTimmins</dc:creator>
      <dc:date>2012-07-19T00:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create Geometry from JSON string</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-geometry-from-json-string/m-p/534345#M13693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not the answer I was hoping for, but thank you for the reply!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Out of curiosity, is there a particular reason that this feature in not implemented in the Silverlight version (since the feature exists in Flex)? Is this something that will/could be implemented in a future version of the Silverlight API?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 11:45:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-geometry-from-json-string/m-p/534345#M13693</guid>
      <dc:creator>MichaelOberegger</dc:creator>
      <dc:date>2012-07-19T11:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create Geometry from JSON string</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-geometry-from-json-string/m-p/534346#M13694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As FromJson does exist for a Featureset, the workaround may be to create a FeatureSet with only one geometry and return that geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&lt;SPAN style="color:blue;"&gt;static&lt;/SPAN&gt; &lt;SPAN style="color:#2b91af;"&gt;Geometry&lt;/SPAN&gt; FromJson(&lt;SPAN style="color:blue;"&gt;string&lt;/SPAN&gt; json)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:blue;"&gt;return&lt;/SPAN&gt; &lt;SPAN style="color:#2b91af;"&gt;FeatureSet&lt;/SPAN&gt;.FromJson(&lt;SPAN style="color:#a31515;"&gt;@"{""features"":[{"&lt;/SPAN&gt; + json + &lt;SPAN style="color:#a31515;"&gt;@"}]}"&lt;/SPAN&gt;).Features.First().Geometry;
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:13:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-geometry-from-json-string/m-p/534346#M13694</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2021-12-11T23:13:00Z</dc:date>
    </item>
  </channel>
</rss>

