<?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 Python Script for making changes to large number of files in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-script-for-making-changes-to-large-number/m-p/30640#M2445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have been tasked with taking a large number of shapefiles (over 10,000) that have no coordinate system and adding one so that they can be used in ArcMap and then convert them to polygons as they are currently polylines.&amp;nbsp; I can write small python scripts but I have never taken on something of this magnitude before.&amp;nbsp; Can anyone direct me to a place where I can find sample scripts to look at?&amp;nbsp; I'll never learn if I just ask someone else to do it for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Nov 2015 15:56:54 GMT</pubDate>
    <dc:creator>TaraPrince1</dc:creator>
    <dc:date>2015-11-19T15:56:54Z</dc:date>
    <item>
      <title>Python Script for making changes to large number of files</title>
      <link>https://community.esri.com/t5/python-questions/python-script-for-making-changes-to-large-number/m-p/30640#M2445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have been tasked with taking a large number of shapefiles (over 10,000) that have no coordinate system and adding one so that they can be used in ArcMap and then convert them to polygons as they are currently polylines.&amp;nbsp; I can write small python scripts but I have never taken on something of this magnitude before.&amp;nbsp; Can anyone direct me to a place where I can find sample scripts to look at?&amp;nbsp; I'll never learn if I just ask someone else to do it for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 15:56:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-for-making-changes-to-large-number/m-p/30640#M2445</guid>
      <dc:creator>TaraPrince1</dc:creator>
      <dc:date>2015-11-19T15:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script for making changes to large number of files</title>
      <link>https://community.esri.com/t5/python-questions/python-script-for-making-changes-to-large-number/m-p/30641#M2446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use either arcpy &lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/data-access/walk.htm"&gt;walk &lt;/A&gt;​ or &lt;A href="http://www.tutorialspoint.com/python/os_walk.htm"&gt;os.walk&lt;/A&gt; to cycle through different workspaces. If all the shapefiles are in one workspace you could just set your &lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/environment-settings/current-workspace.htm"&gt;environment workspace&lt;/A&gt; and iterate through a &lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/functions/listfeatureclasses.htm"&gt;list&lt;/A&gt; of features. For each feature in the list &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/define-projection.htm"&gt;define projection&lt;/A&gt;​ and then you could run &lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/feature-to-polygon.htm"&gt;feature to polygon .&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each link above has example codes if you scroll to the bottom of the page as well as proper syntax and parameter input types. Let us know if you need help setting up the basic code structure. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 16:08:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-for-making-changes-to-large-number/m-p/30641#M2446</guid>
      <dc:creator>LukeSturtevant</dc:creator>
      <dc:date>2015-11-19T16:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script for making changes to large number of files</title>
      <link>https://community.esri.com/t5/python-questions/python-script-for-making-changes-to-large-number/m-p/30642#M2447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tara, you can also do this with ModelBuilder fairly easily. It's ideal for once-off tasks like this, even if you know Python. (In fact a little bit of Python skill makes Model Builder much more powerful!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The approach I use is I build a model and test it for one dataset, once that is working, I add an iterator to the model and go home while it runs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 18:53:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-for-making-changes-to-large-number/m-p/30642#M2447</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2015-11-19T18:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script for making changes to large number of files</title>
      <link>https://community.esri.com/t5/python-questions/python-script-for-making-changes-to-large-number/m-p/30643#M2448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did end up using model builder.&amp;nbsp; Just in case anyone else could use it I inserted an iterator for Feature Class and then used the Define Projection tool under Data Management Tools &amp;gt; Projections and Transformations &amp;gt; Define Projection.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 20:12:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-for-making-changes-to-large-number/m-p/30643#M2448</guid>
      <dc:creator>TaraPrince1</dc:creator>
      <dc:date>2016-02-23T20:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script for making changes to large number of files</title>
      <link>https://community.esri.com/t5/python-questions/python-script-for-making-changes-to-large-number/m-p/30644#M2449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/187289_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Idk... just an idea to explore. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 20:23:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-for-making-changes-to-large-number/m-p/30644#M2449</guid>
      <dc:creator>MitchHolley1</dc:creator>
      <dc:date>2016-02-23T20:23:22Z</dc:date>
    </item>
  </channel>
</rss>

