<?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: How to automate converting feature dataset polygons to lines using python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617569#M48177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The .gdb part indicates a file geodatabase.&lt;/P&gt;&lt;P&gt;As you removed that part it must have put the outputs into a file system folder and made them shapefiles.&lt;/P&gt;&lt;P&gt;Rather than relying on the default, it is better to set up an output specifically for the task.&lt;/P&gt;&lt;P&gt;Make a fgdb using ArcCatalog in a project folder, so you know where everything is going.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad to have been of help.&lt;/P&gt;&lt;P&gt;Enjoy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Dec 2015 06:08:14 GMT</pubDate>
    <dc:creator>NeilAyres</dc:creator>
    <dc:date>2015-12-22T06:08:14Z</dc:date>
    <item>
      <title>How to automate converting feature dataset polygons to lines using python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617556#M48164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a feature dataset, polygons,containing about 50 feature class. I need to convert them to lines. I was able to do it using PolygonToLine_management to perform the task for individual feature class in ArcMap 10.0 python window. Does "PolygonToLine_management" only work for individual feature class, or can work for the dataset at once? I tried to use for-in loop, it did not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Dec 2015 19:42:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617556#M48164</guid>
      <dc:creator>CarolLiu</dc:creator>
      <dc:date>2015-12-20T19:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate converting feature dataset polygons to lines using python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617557#M48165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What was your code?&amp;nbsp; You have to cycle through the featuredataset to get the associated featureclasses.&amp;nbsp; Some tips on setting up either a model or a script are here... &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/executing-tools/using-geoprocessing-options-to-control-tool-execution.htm" title="http://desktop.arcgis.com/en/desktop/latest/analyze/executing-tools/using-geoprocessing-options-to-control-tool-execution.htm"&gt;Using geoprocessing options to control tool execution—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp; and the arcpy structure and info is here... &lt;A href="http://desktop.arcgis.com/en/desktop/latest/main/analyze/what-is-geoprocessing.htm" title="http://desktop.arcgis.com/en/desktop/latest/main/analyze/what-is-geoprocessing.htm"&gt;What is geoprocessing?—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Dec 2015 20:11:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617557#M48165</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-12-20T20:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate converting feature dataset polygons to lines using python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617558#M48166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you only have the 50, and it's a one time thing, you could do it old school and grab the python snippet in the "result" tab....and then do the for...loop for a list of file names.&amp;nbsp; &lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Viewing_tool_execution_history/002100000035000000/" title="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Viewing_tool_execution_history/002100000035000000/"&gt;ArcGIS Desktop&lt;/A&gt;&amp;nbsp; Is the 10.0 help. I'm not sure if the batch option was available back then or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit.&amp;nbsp; Might also want to look thru this PDF&amp;nbsp; &lt;A href="http://users.clas.ufl.edu/forrest/gis/lectures/2013-10-22%20-%20Data%20and%20Batch%20Geoprocessing%20With%20ArcGIS.pdf" title="http://users.clas.ufl.edu/forrest/gis/lectures/2013-10-22%20-%20Data%20and%20Batch%20Geoprocessing%20With%20ArcGIS.pdf"&gt;http://users.clas.ufl.edu/forrest/gis/lectures/2013-10-22%20-%20Data%20and%20Batch%20Geoprocessing%20With%20ArcGIS.pdf&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Dec 2015 20:33:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617558#M48166</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-12-20T20:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate converting feature dataset polygons to lines using python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617559#M48167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;from arcpy import env&lt;/P&gt;&lt;P&gt;env.workspace = "C:/Data/City of Oleander.gdb/FireBoxMaps"&lt;/P&gt;&lt;P&gt;fcFireboxmaps = arcpy.ListFeatureClasses()&lt;/P&gt;&lt;P&gt;for fc in fcFireboxmaps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.PolygonToLine_management(fc,"C:/Documents/ArcGIS/Default.gdb","IDENTIFY_NEIGHBORS")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above was code. FireBoxMaps is feature dataset, containing about 50 feature classes. I wasn't able to figure out the output feature for PolygonToLine_Management. The above code only output one feature class, not all feature classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 05:27:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617559#M48167</guid>
      <dc:creator>CarolLiu</dc:creator>
      <dc:date>2015-12-21T05:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate converting feature dataset polygons to lines using python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617560#M48168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Rebecca.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 05:30:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617560#M48168</guid>
      <dc:creator>CarolLiu</dc:creator>
      <dc:date>2015-12-21T05:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate converting feature dataset polygons to lines using python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617561#M48169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your code you are not naming the output. So I am not sure what it is calling the output but it is probably doing all 50 fc's but just overwriting them each time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
from arcpy import env
env.workspace = "C:/Data/City of Oleander.gdb/FireBoxMaps"
fcFireboxmaps = arcpy.ListFeatureClasses()
for fc in fcFireboxmaps:
&amp;nbsp;&amp;nbsp;&amp;nbsp; lineout = str(fc) + "_line"
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.PolygonToLine_management(fc,"C:/Documents/ArcGIS/Default.gdb/" + lineout ,"IDENTIFY_NEIGHBORS")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:23:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617561#M48169</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2021-12-12T02:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate converting feature dataset polygons to lines using python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617562#M48170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Carol, if your question was answered, remember to mark any answers that were helpful, and mark the one that best resolved your question as answered. That will close this thread.&amp;nbsp; of course, if you still have questions, check out &lt;A href="https://community.esri.com/migration-blogpost/1070"&gt;Posting Code blocks in the new GeoNet&lt;/A&gt;&amp;nbsp; (for future questions too).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 14:05:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617562#M48170</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-12-21T14:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate converting feature dataset polygons to lines using python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617563#M48171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks, Neil! The code worked fine after a minor change. I am trying to make it clear for anybody who might have the same question in the future.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the output, I had to remove .gdb from "&lt;SPAN class="string"&gt;Default.gdb&lt;/SPAN&gt;" in order to make it work. So, the output would be &lt;SPAN class="string"&gt;"C:/Documents/ArcGIS/Default". I also noticed one interesting thing. All output files were shapefiles (ended with .shp), instead of feature class. Meanwhile, All output files fell outside .gdb. I would definitely like to find out while I get to know more about Python for GIS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="string"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="string"&gt;Again, thank Neil, thank Dan!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 00:14:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617563#M48171</guid>
      <dc:creator>CarolLiu</dc:creator>
      <dc:date>2015-12-22T00:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate converting feature dataset polygons to lines using python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617564#M48172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for telling me, Rebecca. I already marked "best answer".&amp;nbsp; I am new to this forum. Are there any restrictions or policies?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 00:18:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617564#M48172</guid>
      <dc:creator>CarolLiu</dc:creator>
      <dc:date>2015-12-22T00:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate converting feature dataset polygons to lines using python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617565#M48173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carol,&lt;/P&gt;&lt;P&gt;I would agree that Neil's answer is the best (not that it matters what I think.&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We all had to take baby steps when learning the new Geonet forums, but once you get the hang of it, it's very valuable and helpful.&amp;nbsp; Check out some of the help docs on&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/space/2004"&gt;GeoNet Help&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote up a "cheat sheet"&amp;nbsp; of tips for users in my State, but fairly generice.....but probably needs updating.&amp;nbsp; Feel free to check it out.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/docs/DOC-2938"&gt;Tips for Getting Started on GeoNet (general and Alaska User Group specific)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enjoy!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 00:27:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617565#M48173</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-12-22T00:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate converting feature dataset polygons to lines using python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617566#M48174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not really, but there are some useful links here ... &lt;A _jive_internal="true" href="https://community.esri.com/welcome" title="https://community.esri.com/welcome"&gt;https://community.esri.com/welcome&lt;/A&gt; &lt;/P&gt;&lt;P&gt;and here... &lt;A href="https://community.esri.com/space/2004"&gt;GeoNet Help&lt;/A&gt; &lt;/P&gt;&lt;P&gt;and this is the GeoNet Community structure to help in directing your posts... &lt;A href="https://community.esri.com/docs/DOC-1544"&gt;GeoNet Community Structure&lt;/A&gt; &lt;/P&gt;&lt;P&gt;have fun...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 00:27:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617566#M48174</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-12-22T00:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate converting feature dataset polygons to lines using python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617567#M48175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will do! Happy Holidays&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 00:52:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617567#M48175</guid>
      <dc:creator>CarolLiu</dc:creator>
      <dc:date>2015-12-22T00:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate converting feature dataset polygons to lines using python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617568#M48176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. Happy Holidays&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 00:53:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617568#M48176</guid>
      <dc:creator>CarolLiu</dc:creator>
      <dc:date>2015-12-22T00:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate converting feature dataset polygons to lines using python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617569#M48177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The .gdb part indicates a file geodatabase.&lt;/P&gt;&lt;P&gt;As you removed that part it must have put the outputs into a file system folder and made them shapefiles.&lt;/P&gt;&lt;P&gt;Rather than relying on the default, it is better to set up an output specifically for the task.&lt;/P&gt;&lt;P&gt;Make a fgdb using ArcCatalog in a project folder, so you know where everything is going.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad to have been of help.&lt;/P&gt;&lt;P&gt;Enjoy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 06:08:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-automate-converting-feature-dataset/m-p/617569#M48177</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2015-12-22T06:08:14Z</dc:date>
    </item>
  </channel>
</rss>

