<?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 Create/Copy features in specific coordinates in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/create-copy-features-in-specific-coordinates/m-p/33245#M1175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I need to replicate an existing multi-line feature several times (e.g., copy and paste), but not at any random position. The new features should be centered on certain coordinates given by another point feature class. That is, ech new multi-line feature must be centered at each existing point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;INPUTS&lt;/SPAN&gt;&lt;BR /&gt;1 multi-line feature class, with 1 feature&lt;BR /&gt;1 point feature class, with &amp;gt; 1000 points&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;OUTPUTS&lt;/SPAN&gt;&lt;BR /&gt;1 multi-line feature class, with &amp;gt; 1000 features (same number as points), each centered at coordinates given by each point&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using ArcGIS 10.0 SP5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I was clear enough to describe my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion or solution is welcome, either through scripting or using any geoprocessing tool that I have missed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gastón.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Mar 2016 16:52:32 GMT</pubDate>
    <dc:creator>GastonIzaguirre</dc:creator>
    <dc:date>2016-03-03T16:52:32Z</dc:date>
    <item>
      <title>Create/Copy features in specific coordinates</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-copy-features-in-specific-coordinates/m-p/33245#M1175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I need to replicate an existing multi-line feature several times (e.g., copy and paste), but not at any random position. The new features should be centered on certain coordinates given by another point feature class. That is, ech new multi-line feature must be centered at each existing point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;INPUTS&lt;/SPAN&gt;&lt;BR /&gt;1 multi-line feature class, with 1 feature&lt;BR /&gt;1 point feature class, with &amp;gt; 1000 points&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;OUTPUTS&lt;/SPAN&gt;&lt;BR /&gt;1 multi-line feature class, with &amp;gt; 1000 features (same number as points), each centered at coordinates given by each point&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using ArcGIS 10.0 SP5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I was clear enough to describe my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion or solution is welcome, either through scripting or using any geoprocessing tool that I have missed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gastón.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 16:52:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-copy-features-in-specific-coordinates/m-p/33245#M1175</guid>
      <dc:creator>GastonIzaguirre</dc:creator>
      <dc:date>2016-03-03T16:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Creating features in specific coordinates</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-copy-features-in-specific-coordinates/m-p/33246#M1176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your comfortable with scripting have a look at &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/python/writing-geometries.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/python/writing-geometries.htm"&gt;Writing geometries—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="unlinked" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/python/writing-geometries.htm"&gt;http://desktop.arcgis.com/en/arcmap/10.3/analyze/python/writing-geometries.htm&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 16:58:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-copy-features-in-specific-coordinates/m-p/33246#M1176</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2016-03-03T16:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create/Copy features in specific coordinates</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-copy-features-in-specific-coordinates/m-p/33247#M1177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's how you can do it using Python at 10.1+ (sorry, no &lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/data-access/what-is-the-data-access-module-.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;data access module&lt;/A&gt; at 10.0):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; points_fc = 'points' # input points
... template_fc = 'template' # template line feature class
... out_fc = r'C:\junk\outputlines.shp' # output feature class
... sr = arcpy.Describe(points_fc).spatialReference # spatial reference
... template_geom = arcpy.da.SearchCursor(template_fc, 'SHAPE@', spatial_reference=sr).next() # get first line
... lines = [] # temporary line container
... points_count = int(arcpy.GetCount_management(points_fc).getOutput(0)) # count points
... for i in range(points_count):
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lines.append(template_geom[0]) # create line copies
... arcpy.CopyFeatures_management(lines, out_fc) # write lines to feature class
... points = arcpy.da.SearchCursor(points_fc, 'SHAPE@XY', spatial_reference=sr) # load points to list for later
... with arcpy.da.UpdateCursor(out_fc,['SHAPE@XY'],spatial_reference=sr) as cursor: # loop through line copies, collecting line centroid 
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cur_point = points.next() # get next point geometry
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.updateRow([(cur_point[0][0], cur_point[0][1])]) # move line feature centroid to new location&lt;/PRE&gt;&lt;P&gt;&lt;IMG __jive_id="188633" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/188633_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;----&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="188634" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/188634_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:18:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-copy-features-in-specific-coordinates/m-p/33247#M1177</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-10T21:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create/Copy features in specific coordinates</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-copy-features-in-specific-coordinates/m-p/33248#M1178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent!&lt;/P&gt;&lt;P&gt;That's just what I needed.&lt;/P&gt;&lt;P&gt;It works perfect.&lt;/P&gt;&lt;P&gt;Darren, thank you very much for taking the time for this answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 19:44:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-copy-features-in-specific-coordinates/m-p/33248#M1178</guid>
      <dc:creator>GastonIzaguirre</dc:creator>
      <dc:date>2016-03-03T19:44:50Z</dc:date>
    </item>
  </channel>
</rss>

