<?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: FAO Robert Scheitlin or anyone who knows about saved graphics as text files in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/fao-robert-scheitlin-or-anyone-who-knows-about/m-p/517918#M14443</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I recently tried Alex Jones python script to convert saved graphics from enhaced Draw Widget to shapefiles. I ran into problems when the script is inserting attribute values, I think it was because the fields are all text fields, but some values are not text strings, so I just made sure they are by using str(). Then it works for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also made a tool/script for ArcGIS toolbox, where the user can browse for txt-file, output location and coordinate system and run it in ArcGIS instead of running it from a python ide and using hard coded paths. It makes it a bit easier to use, if anyone is interessted here's the toolbox and script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just unzip it somewhere and then rightclick in your toolbox and choose add tollbox and point to the tbx file you just unzipped. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks to Alex for sharing the script!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Oct 2011 07:33:44 GMT</pubDate>
    <dc:creator>MattiasEkström</dc:creator>
    <dc:date>2011-10-04T07:33:44Z</dc:date>
    <item>
      <title>FAO Robert Scheitlin or anyone who knows about saved graphics as text files</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/fao-robert-scheitlin-or-anyone-who-knows-about/m-p/517911#M14436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This functionality is in Roberts enhanced draw widget and works great. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I would like to know is ifanyone knows of any way to import these text files into ArcMap to create geo-referenced shape files that can then be saved away to ArcSDE as feature classes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any help / advice / hints would be 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;Graham&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 08:54:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/fao-robert-scheitlin-or-anyone-who-knows-about/m-p/517911#M14436</guid>
      <dc:creator>grahamcooke</dc:creator>
      <dc:date>2011-06-28T08:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: FAO Robert Scheitlin or anyone who knows about saved graphics as text files</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/fao-robert-scheitlin-or-anyone-who-knows-about/m-p/517912#M14437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Graham,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I did look into this... But as I am not motivated to get back into my .net development days and time is at a premium for me normally, I did not do anything with it. Based on what I know this is doable if some .net wizard wants to convert the JSON and parse the text and use ArcObjects to create features.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 11:01:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/fao-robert-scheitlin-or-anyone-who-knows-about/m-p/517912#M14437</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-06-28T11:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: FAO Robert Scheitlin or anyone who knows about saved graphics as text files</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/fao-robert-scheitlin-or-anyone-who-knows-about/m-p/517913#M14438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is the Python script that I used to convert from the saved text/json to a shapefile. I never polished it up due to a lack of time. It should work as long as you change the path to the file name, the workspace and possibly the coordinate system. It would be very easy to convert from shp to sde if this portion works for you. Its not in .net so it may not be what you are looking for.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 15:28:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/fao-robert-scheitlin-or-anyone-who-knows-about/m-p/517913#M14438</guid>
      <dc:creator>AlexJones</dc:creator>
      <dc:date>2011-06-28T15:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: FAO Robert Scheitlin or anyone who knows about saved graphics as text files</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/fao-robert-scheitlin-or-anyone-who-knows-about/m-p/517914#M14439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for replying. Another question for you... did you find a way around the adobe "feature" of removing the .txt extension when the user renames the save file? getting users to retype the extension is a bit of an impossible mission and is causing me to get untold support calls about "lost files". because when they come to reload it only looks for .txt but they saved the file without an extension&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TheJones23:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for sharing. I havent ever used python before so please assume i am a complete idiot....any chance you can explain how I go about using this script? Do I need to execute it within ArcMap somehow (as a GP tool?) or can i somehow call it from within flex?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Graham&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 07:26:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/fao-robert-scheitlin-or-anyone-who-knows-about/m-p/517914#M14439</guid>
      <dc:creator>grahamcooke</dc:creator>
      <dc:date>2011-06-29T07:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: FAO Robert Scheitlin or anyone who knows about saved graphics as text files</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/fao-robert-scheitlin-or-anyone-who-knows-about/m-p/517915#M14440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Graham,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I have searched high and low and there is now way around that issue as it is there for security reasons that have not and probably will not change.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 12:00:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/fao-robert-scheitlin-or-anyone-who-knows-about/m-p/517915#M14440</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-06-29T12:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: FAO Robert Scheitlin or anyone who knows about saved graphics as text files</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/fao-robert-scheitlin-or-anyone-who-knows-about/m-p/517916#M14441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Graham,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This script would need to be run directly from a python ide. Idle, Aptana/PyDev, PyCharm, etc. If you just open the .py file in the ide you will see at the top a path to each piece you need to change. Change them and then hit run from the ide. If it works you will have shapefiles in the output directory. Currently C:\TEMP is the directory you will see them in. If you need more help just email me. alexander.t.jones at gmail.com &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 15:02:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/fao-robert-scheitlin-or-anyone-who-knows-about/m-p/517916#M14441</guid>
      <dc:creator>AlexJones</dc:creator>
      <dc:date>2011-06-29T15:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: FAO Robert Scheitlin or anyone who knows about saved graphics as text files</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/fao-robert-scheitlin-or-anyone-who-knows-about/m-p/517917#M14442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am bumping this as unfortunately Alex can no longer be of assistance as the polygons i need to convert are quite complicated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any other python experts out there who have come up with a way of converting JSON in text format to a shape file?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 11:16:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/fao-robert-scheitlin-or-anyone-who-knows-about/m-p/517917#M14442</guid>
      <dc:creator>grahamcooke</dc:creator>
      <dc:date>2011-08-08T11:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: FAO Robert Scheitlin or anyone who knows about saved graphics as text files</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/fao-robert-scheitlin-or-anyone-who-knows-about/m-p/517918#M14443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I recently tried Alex Jones python script to convert saved graphics from enhaced Draw Widget to shapefiles. I ran into problems when the script is inserting attribute values, I think it was because the fields are all text fields, but some values are not text strings, so I just made sure they are by using str(). Then it works for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also made a tool/script for ArcGIS toolbox, where the user can browse for txt-file, output location and coordinate system and run it in ArcGIS instead of running it from a python ide and using hard coded paths. It makes it a bit easier to use, if anyone is interessted here's the toolbox and script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just unzip it somewhere and then rightclick in your toolbox and choose add tollbox and point to the tbx file you just unzipped. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks to Alex for sharing the script!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 07:33:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/fao-robert-scheitlin-or-anyone-who-knows-about/m-p/517918#M14443</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2011-10-04T07:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: FAO Robert Scheitlin or anyone who knows about saved graphics as text files</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/fao-robert-scheitlin-or-anyone-who-knows-about/m-p/517919#M14444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thankyou Mattias! I will have a play with this and let you know how I get on&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 10:29:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/fao-robert-scheitlin-or-anyone-who-knows-about/m-p/517919#M14444</guid>
      <dc:creator>grahamcooke</dc:creator>
      <dc:date>2011-10-04T10:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: FAO Robert Scheitlin or anyone who knows about saved graphics as text files</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/fao-robert-scheitlin-or-anyone-who-knows-about/m-p/517920#M14445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This is the Python script that I used to convert from the saved text/json to a shapefile. I never polished it up due to a lack of time. It should work as long as you change the path to the file name, the workspace and possibly the coordinate system. It would be very easy to convert from shp to sde if this portion works for you. Its not in .net so it may not be what you are looking for.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use the JsonToShp.py script but I am getting the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\deleteme\JsonToShp.py", line 202, in &amp;lt;module&amp;gt; main()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\deleteme\JsonToShp.py", line 52, in main&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; createPoints(pntFc, ptFeats)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\deleteme\JsonToShp.py", line 142, in createPoints&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; feat.setValue(field[0:9], f[field])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy\arcobjects\arcobjects.py", line 1007, in setValue&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return convertArcObjectToPythonObject(self._arc_object.SetValue(*gp_fixargs(args)))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ValueError: Row: Invalid input value for SetValue&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea?&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;Jorge&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 22:16:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/fao-robert-scheitlin-or-anyone-who-knows-about/m-p/517920#M14445</guid>
      <dc:creator>JORGELAGOS2</dc:creator>
      <dc:date>2012-12-04T22:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: FAO Robert Scheitlin or anyone who knows about saved graphics as text files</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/fao-robert-scheitlin-or-anyone-who-knows-about/m-p/517921#M14446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To Mattias (message #8),&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for making your script available. It is exactly what I was looking for. It works perfectly for me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 19:57:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/fao-robert-scheitlin-or-anyone-who-knows-about/m-p/517921#M14446</guid>
      <dc:creator>ScottMcGee</dc:creator>
      <dc:date>2013-04-04T19:57:44Z</dc:date>
    </item>
  </channel>
</rss>

