<?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: Draw Polygon, save it as a shapefile in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-polygon-save-it-as-a-shapefile/m-p/339664#M31458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much for your response and advice. Much appreciated. I was just seeing what was out there in terms of what other people have done. Yes, a GP service would be great and I eventually may do this ( I have coworkers who have done this already). I also happened to find an older client-side example ( see my above message with links to js2Shapefile code). Have never created a GP service before but looks like this would be a good case to learn and start. But other client-side examples would be great to see as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 May 2016 12:53:26 GMT</pubDate>
    <dc:creator>DavidChrest</dc:creator>
    <dc:date>2016-05-12T12:53:26Z</dc:date>
    <item>
      <title>Draw Polygon, save it as a shapefile</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-polygon-save-it-as-a-shapefile/m-p/339659#M31453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there an example where the user simply draws a polygon and then can save/export to a named shapefile?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 16:17:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-polygon-save-it-as-a-shapefile/m-p/339659#M31453</guid>
      <dc:creator>DavidChrest</dc:creator>
      <dc:date>2016-05-11T16:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Draw Polygon, save it as a shapefile</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-polygon-save-it-as-a-shapefile/m-p/339660#M31454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are couple of opinions out there. Take a look at below links&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=76abc91cf91445cf957943955d35fb0c" title="http://www.arcgis.com/home/item.html?id=76abc91cf91445cf957943955d35fb0c"&gt;http://www.arcgis.com/home/item.html?id=76abc91cf91445cf957943955d35fb0c&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://gis.stackexchange.com/questions/77109/json-to-shapefile-in-javascript" title="http://gis.stackexchange.com/questions/77109/json-to-shapefile-in-javascript"&gt;json to shapefile in javascript - Geographic Information Systems Stack Exchange&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/159556"&gt;Using shp-write to export as shapefile&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is just for persistence and not&amp;nbsp; to use it elsewhere, I would suggest you to just save it as json file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 16:27:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-polygon-save-it-as-a-shapefile/m-p/339660#M31454</guid>
      <dc:creator>thejuskambi</dc:creator>
      <dc:date>2016-05-11T16:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Draw Polygon, save it as a shapefile</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-polygon-save-it-as-a-shapefile/m-p/339661#M31455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I found all those you list previously.&lt;/P&gt;&lt;P&gt;The example links in the &lt;A href="https://code.google.com/archive/p/js2shapefile/"&gt;JS2Shapefile&lt;/A&gt; page just give me 404 page errors, which is really too bad, since these look good. Would really love to see "&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Arial, Helvetica, sans-serif; font-size: 14px;"&gt;modification of the Draw Toolbar sample to let you save the results to a shapefile."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other links you list above I checked out but I didn't get very far. All looks a bit confusing and did not see exactly where one can save data after drawing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I LOVE the &lt;A href="http://timw1984.github.io/AdvancedDraw/"&gt;Advanced Draw&lt;/A&gt; tool. Just needs a Save to Shapefile button and I'd be golden. Seems like somebody out there must have done this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 16:51:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-polygon-save-it-as-a-shapefile/m-p/339661#M31455</guid>
      <dc:creator>DavidChrest</dc:creator>
      <dc:date>2016-05-11T16:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Draw Polygon, save it as a shapefile</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-polygon-save-it-as-a-shapefile/m-p/339662#M31456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe I found something. The code sample from the broken links in &lt;A href="https://code.google.com/archive/p/js2shapefile/"&gt;js2shapefile&lt;/A&gt; is available in this GitHub:&lt;A href="https://github.com/borisdev/js2shapefile" title="https://github.com/borisdev/js2shapefile"&gt;GitHub - borisdev/js2shapefile: Automatically exported from code.google.com/p/js2shapefile.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I forked the repo, downloaded, and this sample actually works: &lt;A href="https://github.com/borisdev/js2shapefile/blob/master/tests/Test_EsriDrawToShapefile.html" title="https://github.com/borisdev/js2shapefile/blob/master/tests/Test_EsriDrawToShapefile.html"&gt;js2shapefile/Test_EsriDrawToShapefile.html at master · borisdev/js2shapefile · GitHub&lt;/A&gt; . Uses Draw Toolbar to create lines, points, and polygons and can save all at once into their shapefiles. Pretty cool!&lt;A href="https://github.com/borisdev/js2shapefile/blob/master/tests/TestJS2Shapefile.html" title="https://github.com/borisdev/js2shapefile/blob/master/tests/TestJS2Shapefile.html"&gt;&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After downloading the shapefile(s), you just need to&amp;nbsp; assign them the Web Mercator Auxiliary Sphere projection. Once you have that .prj file, you can copy and rename to match others. Tool just creates .dbf, .shp, .shx files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code is 4 years old and uses ArcGIS JS 2.6, but is a simple app and a good starting point to upgrade to 3.16 and rework/modify the GUI. Would be good to be able to name shapefiles you save. Also needs to "Clear Graphics" button, only way to draw and export additional shapefiles is to refresh page.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 02:45:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-polygon-save-it-as-a-shapefile/m-p/339662#M31456</guid>
      <dc:creator>DavidChrest</dc:creator>
      <dc:date>2016-05-12T02:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Draw Polygon, save it as a shapefile</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-polygon-save-it-as-a-shapefile/m-p/339663#M31457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume you want to do this client-side?&amp;nbsp; Otherwise you could create your own server side GP service that does it for you by sending the geometries as ArcGIS JSON to the GP service and using the ArcPy tools in your GP model/script to do the convert to feature class and zip it up in a single file. That way you can "convert to shp" over and over and ensure that the data returned has projection information.&amp;nbsp; You can also do all kind of other stuff with it in the GP service e.g. add additional fields, calculate geometry properties, convert to other additional formats etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 11:13:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-polygon-save-it-as-a-shapefile/m-p/339663#M31457</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2016-05-12T11:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Draw Polygon, save it as a shapefile</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-polygon-save-it-as-a-shapefile/m-p/339664#M31458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much for your response and advice. Much appreciated. I was just seeing what was out there in terms of what other people have done. Yes, a GP service would be great and I eventually may do this ( I have coworkers who have done this already). I also happened to find an older client-side example ( see my above message with links to js2Shapefile code). Have never created a GP service before but looks like this would be a good case to learn and start. But other client-side examples would be great to see as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 12:53:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-polygon-save-it-as-a-shapefile/m-p/339664#M31458</guid>
      <dc:creator>DavidChrest</dc:creator>
      <dc:date>2016-05-12T12:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Draw Polygon, save it as a shapefile</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-polygon-save-it-as-a-shapefile/m-p/1374261#M83450</link>
      <description>&lt;UL&gt;&lt;LI&gt;0557358813&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 25 Jan 2024 04:37:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-polygon-save-it-as-a-shapefile/m-p/1374261#M83450</guid>
      <dc:creator>lura8800</dc:creator>
      <dc:date>2024-01-25T04:37:23Z</dc:date>
    </item>
  </channel>
</rss>

