<?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 working with geometry in editing session with Python? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-working-with-geometry-in-editing-session/m-p/652620#M50833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you just want to copy the shape of selected features in the ArcMap Python window then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add your two shapefiles to ArcMap and open the Python window.&lt;/LI&gt;&lt;LI&gt;Select the features you want to copy and enter the following python code - make sure to change the layer names to match your input and output:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14108265650141134" jivemacro_uid="_14108265650141134"&gt;
&lt;P&gt;inscursor = arcpy.da.InsertCursor("OutputShapes",("SHAPE@"))&lt;/P&gt;
&lt;P&gt;with arcpy.da.SearchCursor("InputData", ["SHAPE@"]) as cursor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inscursor.insertRow((row[0],))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="copy-geom.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/12654_copy-geom.png" style="width: 620px; height: 470px;" /&gt;&lt;/P&gt;&lt;P&gt;This will copy just the geometry into the output shapefile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Owen&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.spatialxp.com.au/"&gt;Spatial XP&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Sep 2014 00:18:46 GMT</pubDate>
    <dc:creator>OwenEarley</dc:creator>
    <dc:date>2014-09-16T00:18:46Z</dc:date>
    <item>
      <title>How to working with geometry in editing session with Python?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-working-with-geometry-in-editing-session/m-p/652619#M50832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have to copy lot of polygons (without attributs) for a shapefile to another in an editing session.&lt;/P&gt;&lt;P&gt;I want to do this with python scripting in python windows (ArcGIS 10.1).&lt;/P&gt;&lt;P&gt;I selected each polygon of interest and now I am doing this work just by Copy/Paste commands?&lt;/P&gt;&lt;P&gt;Some time the copy do not work and I have to repeat this step lot of time (I work on a server).&lt;/P&gt;&lt;P&gt;Can you please help me to figure out this problem?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 17:01:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-working-with-geometry-in-editing-session/m-p/652619#M50832</guid>
      <dc:creator>SaidAkif</dc:creator>
      <dc:date>2014-09-15T17:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to working with geometry in editing session with Python?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-working-with-geometry-in-editing-session/m-p/652620#M50833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you just want to copy the shape of selected features in the ArcMap Python window then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add your two shapefiles to ArcMap and open the Python window.&lt;/LI&gt;&lt;LI&gt;Select the features you want to copy and enter the following python code - make sure to change the layer names to match your input and output:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14108265650141134" jivemacro_uid="_14108265650141134"&gt;
&lt;P&gt;inscursor = arcpy.da.InsertCursor("OutputShapes",("SHAPE@"))&lt;/P&gt;
&lt;P&gt;with arcpy.da.SearchCursor("InputData", ["SHAPE@"]) as cursor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inscursor.insertRow((row[0],))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="copy-geom.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/12654_copy-geom.png" style="width: 620px; height: 470px;" /&gt;&lt;/P&gt;&lt;P&gt;This will copy just the geometry into the output shapefile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Owen&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.spatialxp.com.au/"&gt;Spatial XP&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 00:18:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-working-with-geometry-in-editing-session/m-p/652620#M50833</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2014-09-16T00:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to working with geometry in editing session with Python?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-working-with-geometry-in-editing-session/m-p/652621#M50834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Very much. I will try it and send a comment on this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 12:48:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-working-with-geometry-in-editing-session/m-p/652621#M50834</guid>
      <dc:creator>SaidAkif</dc:creator>
      <dc:date>2014-09-16T12:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to working with geometry in editing session with Python?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-working-with-geometry-in-editing-session/m-p/652622#M50835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It work perfectly. Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 18:21:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-working-with-geometry-in-editing-session/m-p/652622#M50835</guid>
      <dc:creator>SaidAkif</dc:creator>
      <dc:date>2014-09-16T18:21:32Z</dc:date>
    </item>
  </channel>
</rss>

