<?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 do I create points along a polyline based on distance? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334616#M11733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since I use Linear Referencing I have no use for this function.&amp;nbsp; It performs approximately 50 times slower than an LR event layer from a table based on other geometry operations I have tried.&amp;nbsp; Your welcome to pursue it, but unless you can get 120K points to draw in under 30 seconds, I have you beat with my LR event layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Oct 2014 14:13:17 GMT</pubDate>
    <dc:creator>RichardFairhurst</dc:creator>
    <dc:date>2014-10-20T14:13:17Z</dc:date>
    <item>
      <title>How do I create points along a polyline based on distance?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334608#M11725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a tool or script out there than can be used to create points along a polyline based on a distance in table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 21:21:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334608#M11725</guid>
      <dc:creator>JoshWhite</dc:creator>
      <dc:date>2014-10-01T21:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create points along a polyline based on distance?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334609#M11726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the table structure?&amp;nbsp; If they were easily spaced, then a simple densification would work, but obviously this is not the case&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also look at &lt;A _jive_internal="true" href="https://community.esri.com/message/77565#77565"&gt;this thread&lt;/A&gt;&amp;nbsp;&amp;nbsp; and the help file on discussion on &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//003m00000002000000"&gt;linear referencing &lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 22:46:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334609#M11726</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-10-01T22:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create points along a polyline based on distance?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334610#M11727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&amp;nbsp; I will get more specific.&amp;nbsp; I'm working with Sewer CCTV and Esri had created a script to use this data but it was having a lot of issues, mostly because it was the first release.&amp;nbsp; They have reworked some things and I haven't got a chance to get back to it yet but hopefully that helps.&amp;nbsp; If not, I may turn to linear referencing.&amp;nbsp; However, I worry that when I rebuild the network that the routes would also be updated, perhaps I am wrong about how this works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 13:17:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334610#M11727</guid>
      <dc:creator>JoshWhite</dc:creator>
      <dc:date>2014-10-08T13:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create points along a polyline based on distance?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334611#M11728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Normally, the Routes don't rebuild unless you make them rebuild.&amp;nbsp; As a result, holding positions through events can be a challenge.&amp;nbsp; But you can convert events to true points that are not relative to the route and then they will hold their position even if the route changes or you can calculate before and after XY coordinate values into the events and compare then to detect changes and make updates as necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Roads and Highways Extension does maintain updates as edits are made to Centerlines and registered event tables are synchronized with the edits according to the rules you define.&amp;nbsp; But without that extension the event tables and routes can get out of sync.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 15:01:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334611#M11728</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2014-10-08T15:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create points along a polyline based on distance?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334612#M11729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was my main fear of doing that.&amp;nbsp; I actually checked with my account manager on that extension and wow...too pricey for my blood.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 18:14:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334612#M11729</guid>
      <dc:creator>JoshWhite</dc:creator>
      <dc:date>2014-10-10T18:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create points along a polyline based on distance?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334613#M11730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What Richard says is true, however, I do not find this a challenging thing to overcome (the price of the Highways Extension is).&amp;nbsp; A general rule, the events will change location if you added length to the beginning of the route or some sort of alignment has occurred.&amp;nbsp; When these conditions occur, I simply:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Export the events to a feature class and calculate their XY coordinates&lt;/LI&gt;&lt;LI&gt;Update my LRS&lt;/LI&gt;&lt;LI&gt;Run a tool I developed in VB.NET&amp;nbsp; ArcObjects&lt;OL&gt;&lt;LI&gt;This tool snaps the Exported events feature class back to the new LRS. (This can be accomplished all through a manual process)&lt;OL&gt;&lt;LI&gt;Calculates the new measure&lt;/LI&gt;&lt;LI&gt;Calculates the new offset (if any)&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Export the data back to a table with the new measures/offset (This will be the new event table).&amp;nbsp; In our shop most of our attribute data resides in databases outside of ArcGis.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not really a hard process.... Our LRS rarely changes so this is not something I have to do a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 19:11:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334613#M11730</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2014-10-10T19:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create points along a polyline based on distance?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334614#M11731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Back to the original question, you can fairly easily place a point along a line at a feature-specific distance using arcpy geometry objects - specifically, the positionAlongLine method in the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Polyline/018z00000008000000/"&gt;Polyline &lt;/A&gt;object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="arcpyclass_methodsigtbl" style="margin: 0 0 0 15px; border: 1px solid #c2c4ba; font-size: 12px; color: #4d4d4d; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;TBODY&gt;&lt;TR style="border: 0px;"&gt;&lt;TD style="padding: 2px 5px 0; border: 1px solid #c2c4ba;"&gt;positionAlongLine (value, {use_percentage})&lt;/TD&gt;&lt;TD style="padding: 2px 5px 0; border: 1px solid #c2c4ba;"&gt;&lt;P style="margin: 0.5em 0 0.5em 10px; padding: 0 0 2px;"&gt;Returns a point on a line at a specified distance from the beginning of the line.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 22:22:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334614#M11731</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2014-10-17T22:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create points along a polyline based on distance?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334615#M11732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what about a specific distance rather than a percentage?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 13:02:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334615#M11732</guid>
      <dc:creator>JoshWhite</dc:creator>
      <dc:date>2014-10-20T13:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create points along a polyline based on distance?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334616#M11733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since I use Linear Referencing I have no use for this function.&amp;nbsp; It performs approximately 50 times slower than an LR event layer from a table based on other geometry operations I have tried.&amp;nbsp; Your welcome to pursue it, but unless you can get 120K points to draw in under 30 seconds, I have you beat with my LR event layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 14:13:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334616#M11733</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2014-10-20T14:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create points along a polyline based on distance?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334617#M11734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Josh, &lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;positionAlongLine defaults to using an absolute distance. If you want to use a percentage, you would change the optional second parameter to True (I think).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Richard, this is clearly just one method, and for me using Python geometry objects is more flexible than finding the fastest pre-made tool. IMHO, it also directly answers the question, "how do I create points along a polyline based on distance," better than "read the help on Linear Referencing".&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 17:56:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334617#M11734</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2014-10-20T17:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create points along a polyline based on distance?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334618#M11735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, LR is more flexible than a python geometry object.&amp;nbsp; I can chain point events together and create line segment events and a line segment event table can be displayed as either points or segments, depending on how I set up the Route Event layer.&amp;nbsp; I can make the point fall on the line or offset to the side of the line with another event layer setting change.&amp;nbsp; And with another setting change I can get tangent or normal angles to the line at each point automatically to set rotations relative to the line with no real effort.&amp;nbsp; By setting up multiple layers I can make one LR table function as at least 5 different point or line segments layers simultaneously and do different geometry calculations from each layer that all write back to fields in one table.&amp;nbsp; So, LR is much more than a fixed point on a line (although it can become that with a simple export in seconds).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only pursue code as a replacement for built-in tools if the built-in tools cannot do the task required or the code can outperform the tools.&amp;nbsp; Since python geometry does neither, I will promote LR until someone demonstrates they can beat it on one account or the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Create Route tool is the starting point to create routes from lines.&amp;nbsp; It is reasonable to assume the table mentioned in this post already has a Route ID and distance, so the field that defines that ID would be used with the Create Route tool. Some type of orientation has to be assumed for the way the distances increase and the tool has a variety of options for maintaining the measures so that they comply with that orientation.&amp;nbsp; I personally use the Coordinate Priority option.&amp;nbsp; Once the routes are built, right click the table and choose the Create Route Event layer menu item.&amp;nbsp; The settings are pretty straight forward to choose the Routes, Route ID, and measure (distance) field.&amp;nbsp; If you need a side offset you can apply that with a side distance field.&amp;nbsp; Advanced settings let you get an error code for distances that fall off the line or get a tangent or normal angle in arithmetic or geographic angles.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 20:14:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334618#M11735</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2014-10-20T20:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create points along a polyline based on distance?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334619#M11736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Darren says it is easy it is fairly easy.. As an example, I have an example of a function that I use in the field calculator that allows you to get the X or Y coordinate tool for polylines or polygon perimeters.&amp;nbsp; It is much like the Calculate Geometry tool but allow for some fine tuning of the position and in what format to return (many threads contributed to its final form).&amp;nbsp; But in any event, it could easy be put into use.&amp;nbsp; The "shape" variable is either a shape like when running through a cursor or the shape field (!Shape!, usually) when using the field calculator&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;def pnt_along(shape, value, use_fraction, XorY):
&amp;nbsp;&amp;nbsp;&amp;nbsp; """
&amp;nbsp;&amp;nbsp;&amp;nbsp; :Required:
&amp;nbsp;&amp;nbsp;&amp;nbsp; :--------
&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp; shape field, value (planar distance or decimal fraction, 0-1),
&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp; use_fraction (True/False), XorY (X or Y):
&amp;nbsp;&amp;nbsp;&amp;nbsp; :
&amp;nbsp;&amp;nbsp;&amp;nbsp; :Returns:
&amp;nbsp;&amp;nbsp;&amp;nbsp; :-------
&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp; A point x meters, or x decimal fraction along a line.
&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp; User specifies whether X or Y coordinates.
&amp;nbsp;&amp;nbsp;&amp;nbsp; :
&amp;nbsp;&amp;nbsp;&amp;nbsp; :Useage:&amp;nbsp; For field calculator...
&amp;nbsp;&amp;nbsp;&amp;nbsp; :------
&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp; pnt_along(!Shape!, 100, False, 'X')&amp;nbsp; #eg. X coordinate 100 m from start point
&amp;nbsp;&amp;nbsp;&amp;nbsp; :
&amp;nbsp;&amp;nbsp;&amp;nbsp; :Notes:&amp;nbsp; Project the data prior to using absoulte distances.
&amp;nbsp;&amp;nbsp;&amp;nbsp; :-----
&amp;nbsp;&amp;nbsp;&amp;nbsp; :
&amp;nbsp;&amp;nbsp;&amp;nbsp; """
&amp;nbsp;&amp;nbsp;&amp;nbsp; XorY = XorY.upper()
&amp;nbsp;&amp;nbsp;&amp;nbsp; if use_fraction and (value &amp;gt; 1.0):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value = value/100.0
&amp;nbsp;&amp;nbsp;&amp;nbsp; if shape.type.lower() == "polygon":
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shape = shape.boundary()
&amp;nbsp;&amp;nbsp;&amp;nbsp; pnt = shape.positionAlongLine(value, use_fraction)
&amp;nbsp;&amp;nbsp;&amp;nbsp; if XorY == 'X':
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return pnt.centroid.X
&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return pnt.centroid.Y
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in any event, enjoy... and thanks to the ideas of its predecessors&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:51:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334619#M11736</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T15:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create points along a polyline based on distance?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334620#M11737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Absolute distances with the positionAlongLine method always have to be in meters.&amp;nbsp; LR by default uses the length units of the original line when the Length option is checked in the Create Routes tool and that tool has the option to apply a conversion factor that can convert the measures to any units of measurement desired.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 20:42:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334620#M11737</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2014-10-20T20:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create points along a polyline based on distance?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334621#M11738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, looks like I opened a can of worms on that one.&amp;nbsp; They've released a new version of the CCTV processor that I am going to try out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 20:56:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334621#M11738</guid>
      <dc:creator>JoshWhite</dc:creator>
      <dc:date>2014-10-20T20:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create points along a polyline based on distance?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334622#M11739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Grief Richard....No the function isn't restricted on one planar measure.&amp;nbsp; It uses the coordinate system of the incoming shape.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However, since you bring it up, It is common only to use projected data for such a function, since the position between two geodesic points (ie Long/Lat coordinates) need not be on the imaginary line connecting them but on the geodesic line.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are other examples for this, but Josh's main issue is getting off topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, in Canada, we use metres (Canadian and world-wide spelling) or meters (US spelling) and my examples for teaching purposes and serves as a gentle reminder to ensure to use planar coordinates when trying to determine geometric properties of spatial features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry Josh...back to&amp;nbsp; you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 21:05:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334622#M11739</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-10-20T21:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create points along a polyline based on distance?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334623#M11740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Richard, the units for positionAlongLine are determined by the spatial reference of the Polyline object. For example, the following snippet places a point 1000 feet from the start of the line, because "kentucky_line" uses the Kentucky State Plane US Feet projection:&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14138393083668000 jive_text_macro" jivemacro_uid="_14138393083668000"&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; for row in arcpy.da.SearchCursor("kentucky_line", ["SHAPE@"]):&lt;/P&gt;
&lt;P&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point = row[0].positionAlongLine(1000)&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.CopyFeatures_management(point, 'in_memory\point')&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 21:08:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334623#M11740</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2014-10-20T21:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create points along a polyline based on distance?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334624#M11741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry about my bad assumption.&amp;nbsp; The descriptions of some of the methods in the Geometry help suggest that they only return values in meters (&lt;STRONG style="font-size: 12.8000001907349px; color: #4d4d4d; font-family: Arial, Helvetica, sans-serif;"&gt;getLength) &lt;/STRONG&gt;and square meters (&lt;STRONG style="font-size: 12.8000001907349px; color: #4d4d4d; font-family: Arial, Helvetica, sans-serif;"&gt;getArea) &lt;/STRONG&gt;and the help document is far from clear about how any of the other functions behave with regard to units, so I thought this method might have a similar restriction.&amp;nbsp; Anyway, I grant that LR and the postionAlongLine geometry function are equal as far as unit handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darren:&amp;nbsp; I am curious.&amp;nbsp; What is the performance of your code example?&amp;nbsp; How many points does it generate and how long does it take?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 01:39:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334624#M11741</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2014-10-21T01:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create points along a polyline based on distance?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334625#M11742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you acn use this python script to generate point along polyline&amp;nbsp; . here i have taken distance 50.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy, math, datetime, numpy&lt;/P&gt;&lt;P&gt;print ("starting")&lt;/P&gt;&lt;P&gt;start = datetime.datetime.now() # for calculating time of process&lt;/P&gt;&lt;P&gt;midpoint =&amp;nbsp; "E:/test/testShape.shp"&amp;nbsp; &lt;/P&gt;&lt;P&gt;polyline = "c:/arcgis/MyLR/baseroads.shp"&lt;/P&gt;&lt;P&gt;#housekeeping&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;arcpy.DeleteFeatures_management(midpoint)&lt;/LI&gt;&lt;LI&gt;arcpy.env.overwriteOutput = True&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;with arcpy.da.SearchCursor(polyline, "SHAPE@") as in_cursor, \&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;arcpy.da.InsertCursor(midpoint, "SHAPE@") as out_cursor:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in in_cursor:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; midpoint = row[0].positionAlongLine(50)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out_cursor.insertRow([midpoint])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jan 2016 10:27:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334625#M11742</guid>
      <dc:creator>MiniAgarwal</dc:creator>
      <dc:date>2016-01-30T10:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create points along a polyline based on distance?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334626#M11743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following runs in 44 seconds (12 of which are tied up in CopyFeatures), placing 100,000 points.&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; import cProfile
... def drawPoints():
...&amp;nbsp;&amp;nbsp;&amp;nbsp; reps = 100000
...&amp;nbsp;&amp;nbsp;&amp;nbsp; points = []
...&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.SearchCursor("a_line",'SHAPE@') as cursor: # only one line
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i in range(reps):
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; points.append(row[0].positionAlongLine(1000))
...&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CopyFeatures_management(points, r'in_memory\points')
... cProfile.runctx('drawPoints()',None,locals())&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:51:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/334626#M11743</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-11T15:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create points along a polyline based on distance?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/1359816#M27084</link>
      <description>&lt;P&gt;You can use the geoprocessing tool&amp;nbsp;Create RouteEvent layer&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 17:59:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-i-create-points-along-a-polyline-based-on/m-p/1359816#M27084</guid>
      <dc:creator>ClaudiaEQuicenoR</dc:creator>
      <dc:date>2023-12-12T17:59:35Z</dc:date>
    </item>
  </channel>
</rss>

