<?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>idea GP Tool to get true midpoint of multi-part lines in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/gp-tool-to-get-true-midpoint-of-multi-part-lines/idi-p/1197400</link>
    <description>&lt;P&gt;For multi-part lines, it would be helpful if there were a GP that could:&lt;/P&gt;&lt;P&gt;Create a single midpoint for the entire feature. Place the point halfway along the entire length of the line (all parts considered).&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The &lt;U&gt;Feature Vertices to Points&lt;/U&gt; GP tool doesn't seem to do this. It creates a point for each part.&lt;/LI&gt;&lt;LI&gt;The &lt;U&gt;Feature to Point&lt;/U&gt; GP tool (with the "Inside" option) doesn't seem to do it either. The point isn't placed halfway along the line.&lt;UL&gt;&lt;LI&gt;It seems to do something else, like possibly&amp;nbsp;&lt;SPAN&gt;place the point in the middle of the feature envelope. Then snap the point to the line, to satisfy the "Inside" criteria. That's not the same as the line midpoint.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Could a&amp;nbsp;GP Tool be added that creates a&amp;nbsp;&lt;U&gt;&lt;EM&gt;true&lt;/EM&gt;&lt;/U&gt; midpoint for multi-part lines?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jul 2022 15:44:04 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2022-07-29T15:44:04Z</dc:date>
    <item>
      <title>GP Tool to get true midpoint of multi-part lines</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/gp-tool-to-get-true-midpoint-of-multi-part-lines/idi-p/1197400</link>
      <description>&lt;P&gt;For multi-part lines, it would be helpful if there were a GP that could:&lt;/P&gt;&lt;P&gt;Create a single midpoint for the entire feature. Place the point halfway along the entire length of the line (all parts considered).&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The &lt;U&gt;Feature Vertices to Points&lt;/U&gt; GP tool doesn't seem to do this. It creates a point for each part.&lt;/LI&gt;&lt;LI&gt;The &lt;U&gt;Feature to Point&lt;/U&gt; GP tool (with the "Inside" option) doesn't seem to do it either. The point isn't placed halfway along the line.&lt;UL&gt;&lt;LI&gt;It seems to do something else, like possibly&amp;nbsp;&lt;SPAN&gt;place the point in the middle of the feature envelope. Then snap the point to the line, to satisfy the "Inside" criteria. That's not the same as the line midpoint.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Could a&amp;nbsp;GP Tool be added that creates a&amp;nbsp;&lt;U&gt;&lt;EM&gt;true&lt;/EM&gt;&lt;/U&gt; midpoint for multi-part lines?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 15:44:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/gp-tool-to-get-true-midpoint-of-multi-part-lines/idi-p/1197400</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-07-29T15:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: GP Tool to get true midpoint of multi-part lines</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/gp-tool-to-get-true-midpoint-of-multi-part-lines/idc-p/1198492#M20675</link>
      <description>&lt;P&gt;There is this editing tool that you may find useful: &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/editing/create-point-features-along-a-line.htm" target="_self"&gt;https://pro.arcgis.com/en/pro-app/latest/help/editing/create-point-features-along-a-line.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I haven't utilized this with multiline features, so I can't speak to exactly how those are handled, but you could try this GP Script tool and specify a percentage of 50%:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/generate-points-along-lines.htm" target="_self"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/generate-points-along-lines.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 13:37:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/gp-tool-to-get-true-midpoint-of-multi-part-lines/idc-p/1198492#M20675</guid>
      <dc:creator>ScottFedak2085</dc:creator>
      <dc:date>2022-08-02T13:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: GP Tool to get true midpoint of multi-part lines</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/gp-tool-to-get-true-midpoint-of-multi-part-lines/idc-p/1274271#M24187</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/503498"&gt;@ScottFedak2085&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you might be right, the&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/generate-points-along-lines.htm" target="_self"&gt;Generate Points Along Lines&lt;/A&gt;&amp;nbsp;tool (your second link) seems to do what I want, using &lt;EM&gt;By Percentage: 50&lt;/EM&gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Create a single midpoint for the entire multi-part feature. &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Place the point halfway along the entire length of the line (all parts considered).&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1680292398096.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/66981iA74A74DBDE31D9C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_1-1680292398096.png" alt="Bud_1-1680292398096.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1127"&gt;@DanLee&lt;/a&gt;&amp;nbsp;Feel free to close this idea.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 20:06:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/gp-tool-to-get-true-midpoint-of-multi-part-lines/idc-p/1274271#M24187</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-03-31T20:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: GP Tool to get true midpoint of multi-part lines</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/gp-tool-to-get-true-midpoint-of-multi-part-lines/idc-p/1274679#M24200</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351335"&gt;@Bud&lt;/a&gt;&amp;nbsp;glad that helped.&lt;/P&gt;&lt;P&gt;I know I've ran into issues with that GP Tool only being able to apply the same distance or percentage across every feature in a feature class. I've had times where I wanted to utilize a features attributes to vary how points are placed along a given feature. To accomplish this, I've modified the code in Link #1 below utilizing Geometry Objects. It might be worth looking at Geometry Objects and their associated methods (Link #2) when you have a chance, they can be a pretty powerful tool in conducting custom spatial analysis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link #1 -&amp;nbsp;&lt;A href="https://gis.stackexchange.com/questions/214162/generate-points-along-line" target="_blank"&gt;https://gis.stackexchange.com/questions/214162/generate-points-along-line&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Link #2 -&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/classes/geometry.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/classes/geometry.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 14:10:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/gp-tool-to-get-true-midpoint-of-multi-part-lines/idc-p/1274679#M24200</guid>
      <dc:creator>ScottFedak2085</dc:creator>
      <dc:date>2023-04-03T14:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: GP Tool to get true midpoint of multi-part lines</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/gp-tool-to-get-true-midpoint-of-multi-part-lines/idc-p/1274900#M24215</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/503498"&gt;@ScottFedak2085&lt;/a&gt;&amp;nbsp;Interesting. Thanks.&lt;/P&gt;&lt;P&gt;I had thought about that concept too: &lt;EM&gt;"utilize a feature's attributes to vary how points are placed along a given feature."&lt;/EM&gt;&amp;nbsp;I can see how that would be useful; I&lt;SPAN&gt;&amp;nbsp;submitted it as an idea: &lt;/SPAN&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/use-value-from-field-in-generate-points-along/idi-p/1274895" target="_self"&gt;Use value from field in Generate Points Along Lines&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 18:57:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/gp-tool-to-get-true-midpoint-of-multi-part-lines/idc-p/1274900#M24215</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-04-03T18:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: GP Tool to get true midpoint of multi-part lines</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/gp-tool-to-get-true-midpoint-of-multi-part-lines/idc-p/1386602#M28686</link>
      <description>&lt;P&gt;It looks like the&amp;nbsp;&lt;U&gt;&lt;EM&gt;Central point x-coordinate and y-coordinate&lt;/EM&gt;&lt;/U&gt; options can be used in&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/calculate-geometry-attributes.htm#:~:text=of%20each%20feature.-,Central%20point,-x%2Dcoordinate%E2%80%94An" target="_self"&gt;Calculate Geometry Attributes&lt;/A&gt;&amp;nbsp;to get the true midpoint of multi-part lines (in conjunction with an &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/make-xy-event-layer.htm" target="_self"&gt;XY Event Layer&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1708923710006.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95783i9A63F5FED62FC1C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1708923710006.png" alt="Bud_0-1708923710006.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, I did some measuring with the measurement tool, and the point might not be exactly in the middle of the line. It might be off by a few metres. So maybe it’s not the true midpoint.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 04:24:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/gp-tool-to-get-true-midpoint-of-multi-part-lines/idc-p/1386602#M28686</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-02-29T04:24:59Z</dc:date>
    </item>
  </channel>
</rss>

