<?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 Finding the centroid of a multipart polyline in ArcGIS 9.2, Arcview License in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/finding-the-centroid-of-a-multipart-polyline-in/m-p/281999#M2773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm attempting to find the centroid of a multipart polyline while using ArcGIS 9.2, with the ArcView license. I have access to Network Analyst and Spatial Analyst extensions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have used Network Analyst on a river network, and used x/y coordinates of existing fish locations with a dispersal estimate to extract the river segments within a 1km network of each of my data points, resulting in several discrete "clouds" of line segments. My goal is to find the total length of the cloud and x/y coordinate for each of the clouds. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the clouds are close enough together, they merge together. I merged them by creating a buffer around each of the line segments, dissolving the buffers, assigning an ID to each resulting buffer, performing a spatial join of the buffer to the river line segments to assign the segments their ID, and then dissolving by ID to result in multipart polylines. I have been able to calculate length of these polylines, but I have not been able to adequately calculate&amp;nbsp; centroids. I have used the x/y coordinate code from Ian-ko, and used the "Tools for Graphics and Shapes" by Jenness, to no avail. They calculate the middle of a polyline perfectly for polylines with no branches, but give strange results for when a polyline branches in the manner that rivers typically do. I have attached an example of what I mean, where the dark lines are my overall river network, the lighter lines are the discrete "clouds", and the dots are the currently calculated centroids. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I am looking for is a way to calculate a weighted centroid, so that the point is in the middle of the multipart polyline with a roughly equal length on both sides, useble with an ArcView license. Does such a method exist?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Josh Mailhiot&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Aquatic Science Biologist&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fisheries and Oceans Canada&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 May 2010 19:45:50 GMT</pubDate>
    <dc:creator>JoshuaMailhiot</dc:creator>
    <dc:date>2010-05-31T19:45:50Z</dc:date>
    <item>
      <title>Finding the centroid of a multipart polyline in ArcGIS 9.2, Arcview License</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/finding-the-centroid-of-a-multipart-polyline-in/m-p/281999#M2773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm attempting to find the centroid of a multipart polyline while using ArcGIS 9.2, with the ArcView license. I have access to Network Analyst and Spatial Analyst extensions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have used Network Analyst on a river network, and used x/y coordinates of existing fish locations with a dispersal estimate to extract the river segments within a 1km network of each of my data points, resulting in several discrete "clouds" of line segments. My goal is to find the total length of the cloud and x/y coordinate for each of the clouds. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the clouds are close enough together, they merge together. I merged them by creating a buffer around each of the line segments, dissolving the buffers, assigning an ID to each resulting buffer, performing a spatial join of the buffer to the river line segments to assign the segments their ID, and then dissolving by ID to result in multipart polylines. I have been able to calculate length of these polylines, but I have not been able to adequately calculate&amp;nbsp; centroids. I have used the x/y coordinate code from Ian-ko, and used the "Tools for Graphics and Shapes" by Jenness, to no avail. They calculate the middle of a polyline perfectly for polylines with no branches, but give strange results for when a polyline branches in the manner that rivers typically do. I have attached an example of what I mean, where the dark lines are my overall river network, the lighter lines are the discrete "clouds", and the dots are the currently calculated centroids. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I am looking for is a way to calculate a weighted centroid, so that the point is in the middle of the multipart polyline with a roughly equal length on both sides, useble with an ArcView license. Does such a method exist?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Josh Mailhiot&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Aquatic Science Biologist&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fisheries and Oceans Canada&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 May 2010 19:45:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/finding-the-centroid-of-a-multipart-polyline-in/m-p/281999#M2773</guid>
      <dc:creator>JoshuaMailhiot</dc:creator>
      <dc:date>2010-05-31T19:45:50Z</dc:date>
    </item>
  </channel>
</rss>

