<?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: Cast ESRI.ArcGIS.Client.Geometry.Envelope to ESRI.ArcGIS.Client.Geometry in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cast-esri-arcgis-client-geometry-envelope-to-esri/m-p/395783#M10227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Sanjay,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply. I was able to cast it to a geometry object successfully, but if I add that object to a Graphic object and try to write that to a feature service, it will fail. Do you know if its possible to write an extent as the geometry component of a feature?&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;Justin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Sep 2012 03:39:00 GMT</pubDate>
    <dc:creator>JustinMadex</dc:creator>
    <dc:date>2012-09-18T03:39:00Z</dc:date>
    <item>
      <title>Cast ESRI.ArcGIS.Client.Geometry.Envelope to ESRI.ArcGIS.Client.Geometry</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cast-esri-arcgis-client-geometry-envelope-to-esri/m-p/395781#M10225</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;I was looking for a way to cast/convert an Envelope object into a Geometry object so that I can write it to a feature service. I attempted to do a cast, but when writing the feature, I get an error from the ArcGIS server. Any ideas guys?&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;Justin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 04:15:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cast-esri-arcgis-client-geometry-envelope-to-esri/m-p/395781#M10225</guid>
      <dc:creator>JustinMadex</dc:creator>
      <dc:date>2012-09-17T04:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cast ESRI.ArcGIS.Client.Geometry.Envelope to ESRI.ArcGIS.Client.Geometry</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cast-esri-arcgis-client-geometry-envelope-to-esri/m-p/395782#M10226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The following code works for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
//This code is in Map's extent changed event.
 Envelope env = e.NewExtent;
ESRI.ArcGIS.Client.Geometry.Geometry poly = env.Extent as ESRI.ArcGIS.Client.Geometry.Geometry;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:06:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cast-esri-arcgis-client-geometry-envelope-to-esri/m-p/395782#M10226</guid>
      <dc:creator>SanajyJadhav</dc:creator>
      <dc:date>2021-12-11T18:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cast ESRI.ArcGIS.Client.Geometry.Envelope to ESRI.ArcGIS.Client.Geometry</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cast-esri-arcgis-client-geometry-envelope-to-esri/m-p/395783#M10227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Sanjay,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply. I was able to cast it to a geometry object successfully, but if I add that object to a Graphic object and try to write that to a feature service, it will fail. Do you know if its possible to write an extent as the geometry component of a feature?&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;Justin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 03:39:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cast-esri-arcgis-client-geometry-envelope-to-esri/m-p/395783#M10227</guid>
      <dc:creator>JustinMadex</dc:creator>
      <dc:date>2012-09-18T03:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cast ESRI.ArcGIS.Client.Geometry.Envelope to ESRI.ArcGIS.Client.Geometry</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cast-esri-arcgis-client-geometry-envelope-to-esri/m-p/395784#M10228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you put your code here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure I have understood your requirement correctly.I think your are adding a new feature to the layer in the feature service, right?And you want to set the Geometry property of this feature by the envelope ( some extent ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you following the approach given below?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

Graphic g = new Graphic;
g.Geometry = envelope as Geometry;
featrueLayer.Graphics.Add(g);

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:06:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/cast-esri-arcgis-client-geometry-envelope-to-esri/m-p/395784#M10228</guid>
      <dc:creator>SanajyJadhav</dc:creator>
      <dc:date>2021-12-11T18:06:59Z</dc:date>
    </item>
  </channel>
</rss>

