<?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: Geometry to JSON Flex 2.4 in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometry-to-json-flex-2-4/m-p/458068#M10527</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Francisco,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Sure you can. To JSON encode the data there is a class for that.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import com.esri.ags.utils.JSON;
JSON.encode(your geometries array);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for you answer. I would like to know which parameters of the geometry object I should pass on in the JSON besides the points array. Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 20:23:44 GMT</pubDate>
    <dc:creator>FranciscoBereciartu</dc:creator>
    <dc:date>2021-12-11T20:23:44Z</dc:date>
    <item>
      <title>Geometry to JSON Flex 2.4</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometry-to-json-flex-2-4/m-p/458066#M10525</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 have a Geometry object result from the Geometry service of ArcGIS Server 10, and I want so send over that Geometry to do another process using a SOE in C# but the goetry is huge my questions are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.- Geometry this huge can be sent over using POST or can't be done? if the 1st was true, there is a method in Flex API to converte the geometry to JSON or it has to be manually?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 11:48:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometry-to-json-flex-2-4/m-p/458066#M10525</guid>
      <dc:creator>FranciscoBereciartu</dc:creator>
      <dc:date>2011-08-12T11:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry to JSON Flex 2.4</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometry-to-json-flex-2-4/m-p/458067#M10526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Francisco,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Sure you can. To JSON encode the data there is a class for that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import com.esri.ags.utils.JSON;
JSON.encode(your geometries array);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:23:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometry-to-json-flex-2-4/m-p/458067#M10526</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T20:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry to JSON Flex 2.4</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometry-to-json-flex-2-4/m-p/458068#M10527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Francisco,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Sure you can. To JSON encode the data there is a class for that.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import com.esri.ags.utils.JSON;
JSON.encode(your geometries array);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for you answer. I would like to know which parameters of the geometry object I should pass on in the JSON besides the points array. Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:23:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometry-to-json-flex-2-4/m-p/458068#M10527</guid>
      <dc:creator>FranciscoBereciartu</dc:creator>
      <dc:date>2021-12-11T20:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry to JSON Flex 2.4</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometry-to-json-flex-2-4/m-p/458069#M10528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Francisco,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; That is up to you as the developer and what your SOE is looking for. Not sure I can help you more.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2011 18:07:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometry-to-json-flex-2-4/m-p/458069#M10528</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-08-15T18:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry to JSON Flex 2.4</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometry-to-json-flex-2-4/m-p/458070#M10529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;result from the Geometry service ... and I want so send over that Geometry to do another process using a SOE ... but the goetry is huge&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure if if makes sense in your case, but one feature that is often overlooked in general is the ability to send a URL that will return geometries instead of the actual geometries. Whether a GP or SOE, depending on your specific use case, you might want to just send a URL to something like (instead of retrieving, parsing, returning those three polygons):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/buffer?geometries=" rel="nofollow" target="_blank"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/buffer?geometries=&lt;/A&gt;&lt;SPAN&gt;{%22geometries%22%3A%5B{%22x%22%3A1469510.0355645495%2C%22y%22%3A7499622.6821904825}%5D%2C%22geometryType%22%3A%22esriGeometryPoint%22}&amp;amp;inSR=102100&amp;amp;outSR=102100&amp;amp;bufferSR=4326&amp;amp;distances=10%2C50%2C100&amp;amp;unit=9036&amp;amp;unionResults=false&amp;amp;f=json&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, depending on your specific use case, this might or might not be a good idea &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 00:02:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometry-to-json-flex-2-4/m-p/458070#M10529</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2011-08-16T00:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry to JSON Flex 2.4</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometry-to-json-flex-2-4/m-p/458071#M10530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Not sure if if makes sense in your case, but one feature that is often overlooked in general is the ability to send a URL that will return geometries instead of the actual geometries. Whether a GP or SOE, depending on your specific use case, you might want to just send a URL to something like (instead of retrieving, parsing, returning those three polygons):&lt;BR /&gt;&lt;BR /&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/buffer?geometries={%22geometries%22%3A%5B{%22x%22%3A1469510.0355645495%2C%22y%22%3A7499622.6821904825}%5D%2C%22geometryType%22%3A%22esriGeometryPoint%22}&amp;amp;inSR=102100&amp;amp;outSR=102100&amp;amp;bufferSR=4326&amp;amp;distances=10%2C50%2C100&amp;amp;unit=9036&amp;amp;unionResults=false&amp;amp;f=json&lt;BR /&gt;&lt;BR /&gt;Again, depending on your specific use case, this might or might not be a good idea &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for yours answers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;bjorn, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using JSON.encode to encode my Geometry object to pass it to a SOE, but when I encode the geometry the result is liek this {"rings":[[[341839.7316,7715308.5897],...., "spatialReference":{"wkid":31984}} and when I try to do a jsonObject.TryGetJsonObject(...) it gives me an error like it can't be found but all the string arrives because I do TryGetString and all the string arrives, I'm trying to retrevie that object an create an instance of that geometry in C#... am I missing something?? before I create the JSON, the geometry object has more attributes ... the flex builder documentation says in the encode method (Encodes a Flex object into a JSON string. Note that for a graphic, convertToJSON will convert attributes and geometry, but not the symbol) but I don't understand what does this mean (I'm newbie in arcGiS world) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 09:00:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geometry-to-json-flex-2-4/m-p/458071#M10530</guid>
      <dc:creator>FranciscoBereciartu</dc:creator>
      <dc:date>2011-08-16T09:00:03Z</dc:date>
    </item>
  </channel>
</rss>

