<?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: Converting polygons drawn with Sketch widget to GeoJSON in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/converting-polygons-drawn-with-sketch-widget-to/m-p/194372#M17938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;There's no GeoJson support out of the box. Every ArcGIS geometry has &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html#toJSON"&gt;toJSON&lt;/A&gt; method which allows to you to&amp;nbsp;convert geometry objects to JSON geometry object. You can then perhaps use the following library to convert it to GeoJSON.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;A href="https://github.com/Esri/arcgis-to-geojson-utils"&gt;https://github.com/Esri/arcgis-to-geojson-utils&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 May 2019 17:14:45 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2019-05-14T17:14:45Z</dc:date>
    <item>
      <title>Converting polygons drawn with Sketch widget to GeoJSON</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/converting-polygons-drawn-with-sketch-widget-to/m-p/194371#M17937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to create an option in my webmap (drawn with ArcGIS API for JS) where I allow the user to draw polygons (probably using the &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sketch-geometries/index.html"&gt;Sketch &lt;/A&gt;widget). I then want to submit this polygon to a database. What's the best way to do this? Perhaps GeoJSON? Are there any options to&amp;nbsp;convert created polygons to geojson with this API?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using php to connect to a postgreSQL db that stores this data.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 May 2019 19:17:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/converting-polygons-drawn-with-sketch-widget-to/m-p/194371#M17937</guid>
      <dc:creator>Kevin_C</dc:creator>
      <dc:date>2019-05-12T19:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Converting polygons drawn with Sketch widget to GeoJSON</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/converting-polygons-drawn-with-sketch-widget-to/m-p/194372#M17938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;There's no GeoJson support out of the box. Every ArcGIS geometry has &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html#toJSON"&gt;toJSON&lt;/A&gt; method which allows to you to&amp;nbsp;convert geometry objects to JSON geometry object. You can then perhaps use the following library to convert it to GeoJSON.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;A href="https://github.com/Esri/arcgis-to-geojson-utils"&gt;https://github.com/Esri/arcgis-to-geojson-utils&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2019 17:14:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/converting-polygons-drawn-with-sketch-widget-to/m-p/194372#M17938</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2019-05-14T17:14:45Z</dc:date>
    </item>
  </channel>
</rss>

