<?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 feature set into feature class or layer in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/converting-feature-set-into-feature-class-or-layer/m-p/287375#M9934</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is your input variable holding something apprporiate to CreateObject?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you tried using arcpy.FeatureSet(input)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.FeatureSet() followed by ~.load(input) and then ~.save(path)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be a good idea to make the save path a raw string:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;obj.save(r"C:\Users\rbhosle\Desktop\Project_540\Interagency_Compliance\output.shp") &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;otherwise single backslashes are interpreted as escapes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Mar 2012 11:29:35 GMT</pubDate>
    <dc:creator>markdenil</dc:creator>
    <dc:date>2012-03-13T11:29:35Z</dc:date>
    <item>
      <title>Converting feature set into feature class or layer</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/converting-feature-set-into-feature-class-or-layer/m-p/287374#M9933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am making a script tool in which I want to convert a parameter whose data type is feature set, to a feature class. I used these three lines in the code but I am getting an error saying that the object was not created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;input = sys.argv[1] # Input from the script tool &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;obj = arcpy.CreateObject(featureset, input) # Creating a feature set object&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;obj.save("C:\Users\rbhosle\Desktop\Project_540\Interagency_Compliance\output.shp") #saving the feature set in a shapefile format&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could somebody tell me where I am going wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2012 18:41:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/converting-feature-set-into-feature-class-or-layer/m-p/287374#M9933</guid>
      <dc:creator>RahulBhosle</dc:creator>
      <dc:date>2012-03-12T18:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Converting feature set into feature class or layer</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/converting-feature-set-into-feature-class-or-layer/m-p/287375#M9934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is your input variable holding something apprporiate to CreateObject?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you tried using arcpy.FeatureSet(input)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.FeatureSet() followed by ~.load(input) and then ~.save(path)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be a good idea to make the save path a raw string:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;obj.save(r"C:\Users\rbhosle\Desktop\Project_540\Interagency_Compliance\output.shp") &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;otherwise single backslashes are interpreted as escapes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 11:29:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/converting-feature-set-into-feature-class-or-layer/m-p/287375#M9934</guid>
      <dc:creator>markdenil</dc:creator>
      <dc:date>2012-03-13T11:29:35Z</dc:date>
    </item>
  </channel>
</rss>

