<?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: copy shapefile to feature dataset ( within a .gdb) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/copy-shapefile-to-feature-dataset-within-a-gdb/m-p/1151465#M63991</link>
    <description>&lt;LI-CODE lang="python"&gt;source_path = r'C:/folder name/homes.shp'
out_loc = r'C:/folder name/new.gdb/Points'
out_name = 'homes'

arcpy.FeatureClassToFeatureClass_conversion(source_path, out_loc, out_name)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;although it's a bit strange to resort to doing this in python, what are you actually trying to achieve?&amp;nbsp; Is this just a coursework question?&lt;/P&gt;</description>
    <pubDate>Mon, 07 Mar 2022 20:14:21 GMT</pubDate>
    <dc:creator>DavidPike</dc:creator>
    <dc:date>2022-03-07T20:14:21Z</dc:date>
    <item>
      <title>copy shapefile to feature dataset ( within a .gdb)</title>
      <link>https://community.esri.com/t5/python-questions/copy-shapefile-to-feature-dataset-within-a-gdb/m-p/1151417#M63983</link>
      <description>&lt;P&gt;hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I have 3 .shp files ( points, polygon, polyline ) in a folder and within that folder, I also have a geodatabase with an empty point dataset.&lt;/P&gt;&lt;P&gt;how do I copy only the points shapefile into the point dataset within that geodatabase? i tried&amp;nbsp;os.path.join but it doens't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 18:52:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copy-shapefile-to-feature-dataset-within-a-gdb/m-p/1151417#M63983</guid>
      <dc:creator>Chelsea_Trusdell</dc:creator>
      <dc:date>2022-03-07T18:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: copy shapefile to feature dataset ( within a .gdb)</title>
      <link>https://community.esri.com/t5/python-questions/copy-shapefile-to-feature-dataset-within-a-gdb/m-p/1151442#M63987</link>
      <description>&lt;P&gt;Is it a point FC in a FGDB or a Feature Dataset in an FGDB or a Point FC in a Feature Dataset?&amp;nbsp; Can you share your code?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 19:38:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copy-shapefile-to-feature-dataset-within-a-gdb/m-p/1151442#M63987</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2022-03-07T19:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: copy shapefile to feature dataset ( within a .gdb)</title>
      <link>https://community.esri.com/t5/python-questions/copy-shapefile-to-feature-dataset-within-a-gdb/m-p/1151457#M63989</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Chelsea_Trusdell_0-1646682933964.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35788iBAC11124344D2E82/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Chelsea_Trusdell_0-1646682933964.png" alt="Chelsea_Trusdell_0-1646682933964.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;hmm, i haven't wrote the code yet but what i essentially want is to copy over the homes point shape file to the points dataset within the new.gdb. thanks for your help&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 19:56:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copy-shapefile-to-feature-dataset-within-a-gdb/m-p/1151457#M63989</guid>
      <dc:creator>Chelsea_Trusdell</dc:creator>
      <dc:date>2022-03-07T19:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: copy shapefile to feature dataset ( within a .gdb)</title>
      <link>https://community.esri.com/t5/python-questions/copy-shapefile-to-feature-dataset-within-a-gdb/m-p/1151463#M63990</link>
      <description>&lt;P&gt;David answered the same question here &lt;A href="https://community.esri.com/t5/python-questions/arcpy-import-data-into-feature-dataset-within/m-p/541881/highlight/true#M42311" target="_self"&gt;arcpy-import-data-into-feature-dataset&lt;/A&gt;&amp;nbsp;back in 2020.&lt;/P&gt;&lt;P&gt;In short, you just add the dataset name in the path when you copy it in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.CopyFeatures_management(homes.shp, r'C:\new.gdb\Points\homes')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;note, they must be the same spatial reference.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 20:07:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copy-shapefile-to-feature-dataset-within-a-gdb/m-p/1151463#M63990</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-03-07T20:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: copy shapefile to feature dataset ( within a .gdb)</title>
      <link>https://community.esri.com/t5/python-questions/copy-shapefile-to-feature-dataset-within-a-gdb/m-p/1151465#M63991</link>
      <description>&lt;LI-CODE lang="python"&gt;source_path = r'C:/folder name/homes.shp'
out_loc = r'C:/folder name/new.gdb/Points'
out_name = 'homes'

arcpy.FeatureClassToFeatureClass_conversion(source_path, out_loc, out_name)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;although it's a bit strange to resort to doing this in python, what are you actually trying to achieve?&amp;nbsp; Is this just a coursework question?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 20:14:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/copy-shapefile-to-feature-dataset-within-a-gdb/m-p/1151465#M63991</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2022-03-07T20:14:21Z</dc:date>
    </item>
  </channel>
</rss>

