<?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 can i create points per 10 and 100 meters for several lines with ArcPy? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-can-i-create-points-per-10-and-100-meters-for/m-p/35669#M2784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have a solution right away, but maybe you can find something helpful from this blog post?&lt;/P&gt;&lt;P&gt;&lt;A href="https://arcpy.wordpress.com/2014/10/30/split-into-equal-length-features/" title="https://arcpy.wordpress.com/2014/10/30/split-into-equal-length-features/"&gt;Split into equal length features | ArcPy Café&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Looks like you need &lt;A href="http://desktop.arcgis.com/en/desktop/latest/main/get-started/whats-new-in-arcgis.htm"&gt;ArcGIS 10.3&lt;/A&gt; for the &lt;SPAN style="font-family: 'courier new', courier;"&gt;segmentAlongLine&lt;/SPAN&gt; method of a geometry object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Mar 2015 23:54:30 GMT</pubDate>
    <dc:creator>BlakeTerhune</dc:creator>
    <dc:date>2015-03-18T23:54:30Z</dc:date>
    <item>
      <title>How can i create points per 10 and 100 meters for several lines with ArcPy?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-create-points-per-10-and-100-meters-for/m-p/35668#M2783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;Hello i have 10 lines and i want to generate points per 10 and 100 meters for each one of them. In ArcGis there is the tool construct points(COGO) but is not scriptable. Is there any suggestion?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 23:32:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-create-points-per-10-and-100-meters-for/m-p/35668#M2783</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2015-03-18T23:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can i create points per 10 and 100 meters for several lines with ArcPy?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-create-points-per-10-and-100-meters-for/m-p/35669#M2784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have a solution right away, but maybe you can find something helpful from this blog post?&lt;/P&gt;&lt;P&gt;&lt;A href="https://arcpy.wordpress.com/2014/10/30/split-into-equal-length-features/" title="https://arcpy.wordpress.com/2014/10/30/split-into-equal-length-features/"&gt;Split into equal length features | ArcPy Café&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Looks like you need &lt;A href="http://desktop.arcgis.com/en/desktop/latest/main/get-started/whats-new-in-arcgis.htm"&gt;ArcGIS 10.3&lt;/A&gt; for the &lt;SPAN style="font-family: 'courier new', courier;"&gt;segmentAlongLine&lt;/SPAN&gt; method of a geometry object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 23:54:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-create-points-per-10-and-100-meters-for/m-p/35669#M2784</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2015-03-18T23:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can i create points per 10 and 100 meters for several lines with ArcPy?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-create-points-per-10-and-100-meters-for/m-p/35670#M2785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Polyline/018z00000008000000/"&gt;positionAlongLine&lt;/A&gt; can be used​ to either densify existing lines or to create new point objects in a new file depending whether you are using an update or insert cursor.&amp;nbsp; Examples abound.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from the help files in the above link&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-top: 0.5em; margin-bottom: 0.5em; margin-left: 10px; padding-bottom: 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;TR style="border: 0px;"&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;where you would want to specify the distance by setting use_percentage=False&lt;/P&gt;&lt;P&gt;I think you asked a similar question which had a similar response recently.&amp;nbsp; If so, it would be useful to indicate where you are along in the process and whether you have an script components written.&amp;nbsp; You should also have a look at the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//001v00000003000000"&gt;Densify tool &lt;/A&gt;and its associated script call in the help files&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 01:32:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-create-points-per-10-and-100-meters-for/m-p/35670#M2785</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-03-19T01:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can i create points per 10 and 100 meters for several lines with ArcPy?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-create-points-per-10-and-100-meters-for/m-p/35671#M2786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't responsed yet because i am trying several things, i ll let you know more about my method and results&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 22:06:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-create-points-per-10-and-100-meters-for/m-p/35671#M2786</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2015-03-20T22:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can i create points per 10 and 100 meters for several lines with ArcPy?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-create-points-per-10-and-100-meters-for/m-p/35672#M2787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;self promotion&amp;gt;&lt;A _jive_internal="true" href="https://community.esri.com/message/471638#471638"&gt;Here &lt;/A&gt;is an example that comes to mind.&amp;lt;/self promotion&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Mar 2015 00:02:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-create-points-per-10-and-100-meters-for/m-p/35672#M2787</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-03-22T00:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can i create points per 10 and 100 meters for several lines with ArcPy?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-create-points-per-10-and-100-meters-for/m-p/35673#M2788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Darren, not sure he is even following this thread anymore, there was post on GIS-SA and someone posted a link to a premade toolset I think the desire to roll it out on his own isn't there.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Mar 2015 02:07:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-create-points-per-10-and-100-meters-for/m-p/35673#M2788</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-03-22T02:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can i create points per 10 and 100 meters for several lines with ArcPy?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-create-points-per-10-and-100-meters-for/m-p/35674#M2789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Mr Patterson i am still here, and i am still trying all three of the posible ways to see what works best for me. The &lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;positionAlongLine you suggested me works very well for my task and Wien's also (for feature classes i created). In addition the premade toolset from Ian is very interesting as a toolbox. I haven't posted my results yet because i am trying to find on my own a solution to the problem i have by using lines that are in memory instead.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 19:37:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-create-points-per-10-and-100-meters-for/m-p/35674#M2789</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2015-03-23T19:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can i create points per 10 and 100 meters for several lines with ArcPy?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-create-points-per-10-and-100-meters-for/m-p/35675#M2790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here is a simple script i wrote to add points along line at distance that might help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
from arcpy import env
env.workspace = arcpy.GetParameterAsText(0)
polylineFeature = arcpy.GetParameterAsText(1)
pointdistance = arcpy.GetParameterAsText(2)


pts = []
numPointDistance = repr(pointdistance)
with arcpy.da.SearchCursor(polylineFeature,"SHAPE@") as rows:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in rows:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Skip First Point
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #pts.append(row[0].positionAlongLine(0))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = numPointDistance
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while i &amp;lt; row[0].length:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pts.append(row[0].positionAlongLine(i))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i += numPointDistance
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; leng = row[0].length
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Skip Last Point
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #pts.append(row[0].positionAlongLine(leng))

arcpy.CopyFeatures_management(pts, r"StationPoints")
del pts&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:23:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-create-points-per-10-and-100-meters-for/m-p/35675#M2790</guid>
      <dc:creator>CarlSunderman</dc:creator>
      <dc:date>2021-12-10T21:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can i create points per 10 and 100 meters for several lines with ArcPy?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-create-points-per-10-and-100-meters-for/m-p/35676#M2791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Station Points reminds me a tool from ET Geowizard although you couldn't use that for over a number of points, i ll try that, thanks a lot Mr Sunderman.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 07:25:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-create-points-per-10-and-100-meters-for/m-p/35676#M2791</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2015-04-01T07:25:04Z</dc:date>
    </item>
  </channel>
</rss>

