<?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: create offset polyline in arcpy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/create-offset-polyline-in-arcpy/m-p/306962#M23879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a way to use ArcObjects in Python (without arcpy):&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.pierssen.com/arcgis/upload/misc/python_arcobjects.pdf"&gt;http://www.pierssen.com/arcgis/upload/misc/python_arcobjects.pdf&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2012 07:31:36 GMT</pubDate>
    <dc:creator>FabianBlau</dc:creator>
    <dc:date>2012-05-31T07:31:36Z</dc:date>
    <item>
      <title>create offset polyline in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/create-offset-polyline-in-arcpy/m-p/306960#M23877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to create an offset polyline using arcpy, identical to the function in ArcObjects (constructoffset). After trying to access ArcObjects in arcpy, which I found difficult for those not well-versed in COM languages, and after much searching, I discovered that this functionality seems to only exist in ArcObjects. There may be ways to program this functionality in arcpy using trig, but that would take me hours. Essentially, the product I'd like is an offset polyline that preserves all original geometry and curvature. Have any other arcpy users needed this functionality, and is there something in the works at ESRI to make ArcObjects more easily accessible in arcpy?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 16:28:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-offset-polyline-in-arcpy/m-p/306960#M23877</guid>
      <dc:creator>JamieKass</dc:creator>
      <dc:date>2012-05-17T16:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: create offset polyline in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/create-offset-polyline-in-arcpy/m-p/306961#M23878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, if anyone still wants to do this in arcpy, we figured it out:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First off, make sure your line segs have unique IDs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.Buffer "FLAT" in each direction of the line, add a new field of the same name to each and give them a direction ("L","R").&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.Merge the buffers together.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.Buffer the original line again, this time "FULL".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.Convert the FULL buffer to lines (PolygonToLine: "IGNORE_NEIGHBORS"), then convert its vertices to points (FeatureVerticesToPoints: "BOTH_ENDS").&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.Buffer each point by a very small width (e.g. 0.1 m).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.Split the lines by vertex (SplitLine).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7.Select by location to select all lines that intersect with the point buffers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.Delete these lines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.Dissolve ("SINGLE_PART") on the segment unique ID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10.Spatial Join ("SHARE_A_LINE_SEGMENT_WITH") the new lines to the merged "LEFT" and "RIGHT" buffers to attribute them with direction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Voila! Offset lines without ArcObjects.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 16:25:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-offset-polyline-in-arcpy/m-p/306961#M23878</guid>
      <dc:creator>JamieKass</dc:creator>
      <dc:date>2012-05-29T16:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: create offset polyline in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/create-offset-polyline-in-arcpy/m-p/306962#M23879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a way to use ArcObjects in Python (without arcpy):&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.pierssen.com/arcgis/upload/misc/python_arcobjects.pdf"&gt;http://www.pierssen.com/arcgis/upload/misc/python_arcobjects.pdf&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 07:31:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-offset-polyline-in-arcpy/m-p/306962#M23879</guid>
      <dc:creator>FabianBlau</dc:creator>
      <dc:date>2012-05-31T07:31:36Z</dc:date>
    </item>
  </channel>
</rss>

