<?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: Points along Polyline in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/points-along-polyline/m-p/314406#M24449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kim, while I don't dought that your method will work, I am not that proficent with arcmap. I'm a click on the tool and let it work kind of guy. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However if I get time,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I'm not against giving it a try.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Brad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Oct 2011 13:01:00 GMT</pubDate>
    <dc:creator>BradFuller</dc:creator>
    <dc:date>2011-10-27T13:01:00Z</dc:date>
    <item>
      <title>Points along Polyline</title>
      <link>https://community.esri.com/t5/python-questions/points-along-polyline/m-p/314399#M24442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a Python script out there that will place points along a polyline at a preset distance (inputed). It would be great if the script would also not allow a point at the end of the line as well as not placing a point unless the distance is avalible to the end of the line. Such as if your request is every 525ft it would place a point at the start, places a point every 525ft there after. unless there is not a complete 525ft left before the end of the line than there is no point placed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Brad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 14:15:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/points-along-polyline/m-p/314399#M24442</guid>
      <dc:creator>BradFuller</dc:creator>
      <dc:date>2011-10-25T14:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Points along Polyline</title>
      <link>https://community.esri.com/t5/python-questions/points-along-polyline/m-p/314400#M24443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Density at &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=C466543F-1422-2418-8843-D333B3EB1879"&gt;http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=C466543F-1422-2418-8843-D333B3EB1879&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;but you will always have the end point, so you can modify the code or deal with it in some other way&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 19:57:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/points-along-polyline/m-p/314400#M24443</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2011-10-25T19:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Points along Polyline</title>
      <link>https://community.esri.com/t5/python-questions/points-along-polyline/m-p/314401#M24444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Densify is now also available "out of the box" at v10 (ArcEditor and above license levels). Use the FeatureToVerticiesPoint tool to sort out what vertices belong to the original layer and which ones were created through the densifying process. A text field consisting of concatenated X and Y coordinates makes a convenient "key field" for doing the comparison.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 20:37:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/points-along-polyline/m-p/314401#M24444</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2011-10-25T20:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Points along Polyline</title>
      <link>https://community.esri.com/t5/python-questions/points-along-polyline/m-p/314402#M24445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I will add that Densify is available at the ArcView license ... (continueing my venture to have all useful tools available and remove the need for different license levels &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; )&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 21:04:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/points-along-polyline/m-p/314402#M24445</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2011-10-25T21:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Points along Polyline</title>
      <link>https://community.esri.com/t5/python-questions/points-along-polyline/m-p/314403#M24446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sounds like a socialist conspiracy to undermine American capitalism...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;:cool:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 22:40:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/points-along-polyline/m-p/314403#M24446</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2011-10-25T22:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Points along Polyline</title>
      <link>https://community.esri.com/t5/python-questions/points-along-polyline/m-p/314404#M24447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could use Linear Referencing. Build the polylines for routes, (CreateRoutes) and then add a table with a measure at the chosen interval. This will create a set of points along the route (and will not add one at the end for an odd remainder). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You will have to create a dummy table with n x interval records that exceed the likely number. Does that disqualify the method because the easiest way to do that is run a python script to build a dummy table? But you only have to do it once. It can be reused.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Trying to think of everything, if you want to add points at a lot of different polylines, each one has to be a separate route ID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def makeEvent(event):
&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' Creates a table of events
&amp;nbsp;&amp;nbsp;&amp;nbsp; using fields plot and mark as a composite key plotmark
&amp;nbsp;&amp;nbsp;&amp;nbsp; all fields hardcoded:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sampling_location
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; plotmark
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; plotid
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mark
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; transect
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; distance_along_transect
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fpc_number
&amp;nbsp;&amp;nbsp;&amp;nbsp; '''
&amp;nbsp;&amp;nbsp;&amp;nbsp; try:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curIn = arcpy.InsertCursor(event)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in arcpy.SearchCursor(routeFC):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; plotmark = row.plotmark
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; plotid = row.plotid
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mark = row.mark
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for pt in range(1,traps+1): # one-based counting
&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; rownew = curIn.newRow()
&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; rownew.sampling_location = plotid # field Increased
&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; rownew.transect = mark.strip()
&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; rownew.trap_number = int(pt)
&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; rownew.distance_along_transect = int(pt*spacing) # long??
&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; rownew.plotmark = plotmark
&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; curIn.insertRow(rownew)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; del curIn
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; del rownew
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; del row
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; countrow = str(arcpy.GetCount_management(event))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage(event+" "+countrow)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return None&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:58:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/points-along-polyline/m-p/314404#M24447</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2021-12-11T14:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Points along Polyline</title>
      <link>https://community.esri.com/t5/python-questions/points-along-polyline/m-p/314405#M24448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dan, when I add your script to a toolbox I get a "This tool has no parameters" message when I activate the script. As I am not a script guru, do you have any thoughts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Brad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 12:53:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/points-along-polyline/m-p/314405#M24448</guid>
      <dc:creator>BradFuller</dc:creator>
      <dc:date>2011-10-27T12:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Points along Polyline</title>
      <link>https://community.esri.com/t5/python-questions/points-along-polyline/m-p/314406#M24449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kim, while I don't dought that your method will work, I am not that proficent with arcmap. I'm a click on the tool and let it work kind of guy. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However if I get time,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I'm not against giving it a try.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Brad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 13:01:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/points-along-polyline/m-p/314406#M24449</guid>
      <dc:creator>BradFuller</dc:creator>
      <dc:date>2011-10-27T13:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Points along Polyline</title>
      <link>https://community.esri.com/t5/python-questions/points-along-polyline/m-p/314407#M24450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Brad&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You right-click on the top of the Arctoolbox tree and select Add Toolbox, I have already created the toolbox and it has the associated parameters etc.&amp;nbsp; Just make sure that you unzipped the toolbox and its associated scripts in the same folder&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 14:02:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/points-along-polyline/m-p/314407#M24450</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2011-10-27T14:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Points along Polyline</title>
      <link>https://community.esri.com/t5/python-questions/points-along-polyline/m-p/314408#M24451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Brad&lt;BR /&gt;You right-click on the top of the Arctoolbox tree and select Add Toolbox, I have already created the toolbox and it has the associated parameters etc.&amp;nbsp; Just make sure that you unzipped the toolbox and its associated scripts in the same folder&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ahh! I see says grasshopper, it is the tool for the toolbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Brad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 14:38:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/points-along-polyline/m-p/314408#M24451</guid>
      <dc:creator>BradFuller</dc:creator>
      <dc:date>2011-10-28T14:38:30Z</dc:date>
    </item>
  </channel>
</rss>

