<?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: Issues with Integrate and SplitLineAtPoint Tools(Seeking for help) in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/issues-with-integrate-and-splitlineatpoint-tools/m-p/1548293#M27427</link>
    <description>&lt;P&gt;both the Integrate and&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/analysis/pairwise-integrate.htm" target="_blank"&gt;Pairwise Integrate (Analysis)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;recommend not specifying a cluster tolerance to ensure that the one specified for the spatial reference of the input data is used.&lt;/P&gt;&lt;P&gt;In any event a 0.01 foot distance is pretty small and you have to decide whether your bus stops have been located accurate enough to ensure that they comply to this distance.&lt;/P&gt;&lt;P&gt;If you must use a cluster tolerance value, try 1.0 feet to try to capture point locations that are farther away from the line than you expect.&lt;/P&gt;</description>
    <pubDate>Sun, 13 Oct 2024 08:34:57 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2024-10-13T08:34:57Z</dc:date>
    <item>
      <title>Issues with Integrate and SplitLineAtPoint Tools(Seeking for help)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/issues-with-integrate-and-splitlineatpoint-tools/m-p/1548287#M27426</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hello Esri Community,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am currently working on processing GTFS (General Transit Feed Specification) stop_times.txt data using ArcPy in ArcGIS Pro to create bus routes and stops, as well as to add durations based on each bus route. However, I'm encountering issues where the split lines are not being correctly split at the stop points. Specifically, some bus routes are not being split as intended, resulting in inaccurate segmentation of the routes. Can&amp;nbsp;anyone give me a hand with this, thank you a lot.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Workflow Summary:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.Data:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;BusRoutes(FB_ROUTE_LINE_259X)(route line)&lt;/STRONG&gt;: Created with fields such as trip_id, duration, ROUTE_SEQ, COMPANY_CODE, etc&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;BusStops(BusStops)(point)&lt;/STRONG&gt;: Created with fields like stop_id, arrival_time, departure_time, etc.&lt;BR /&gt;Spatial Reference:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Both BusRoutes and BusStops are set to Web Mercator Auxiliary Sphere (EPSG:3857) to ensure consistency.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.Geoprocessing Steps:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Integrate Tool: Applied to align bus stops with bus routes using a specified cluster_tolerance.&lt;/LI&gt;&lt;LI&gt;SplitLineAtPoint Tool: Intended to split bus routes at each bus stop to create segments between consecutive stops.&lt;BR /&gt;The Problem:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Despite following the workflow, I observe that:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Incorrect Splits:&lt;/STRONG&gt; Some bus routes are not being split correctly at the stop points.&lt;BR /&gt;&lt;STRONG&gt;Manual Processing:&lt;/STRONG&gt; Performing the same operations manually in ArcGIS Pro's SplitLineAtPoint tool results in the same issues.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-13 121931.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/117151i8DCC189C95F9DD02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-10-13 121931.jpg" alt="Screenshot 2024-10-13 121931.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Below is part of the code:&lt;/P&gt;&lt;P&gt;# Define in_features as a list&lt;BR /&gt;integrate_inputs = [fc_routes_path, fc_stops_path]&lt;/P&gt;&lt;P&gt;# Define cluster_tolerance based on your environment settings&lt;BR /&gt;cluster_tolerance = "0.01 Feet" # Adjust as needed&lt;/P&gt;&lt;P&gt;# Check spatial references&lt;BR /&gt;routes_sr = arcpy.Describe(fc_routes_path).spatialReference&lt;BR /&gt;stops_sr = arcpy.Describe(fc_stops_path).spatialReference&lt;/P&gt;&lt;P&gt;if routes_sr.factoryCode != stops_sr.factoryCode:&lt;BR /&gt;logging.error("Spatial references do not match between BusRoutes and BusStops.")&lt;BR /&gt;exit()&lt;BR /&gt;else:&lt;BR /&gt;logging.info("Spatial references match between BusRoutes and BusStops.")&lt;/P&gt;&lt;P&gt;logging.info("Finished creating bus routes and stops feature classes.")&lt;/P&gt;&lt;P&gt;split_lines_output = os.path.join(gdb_path, 'BusRoutes_Split')&lt;/P&gt;&lt;P&gt;if arcpy.Exists(split_lines_output):&lt;BR /&gt;logging.info(f"{split_lines_output} already exists. Deleting...")&lt;BR /&gt;arcpy.management.Delete(split_lines_output)&lt;/P&gt;&lt;P&gt;try:&lt;BR /&gt;# Use keyword arguments for clarity&lt;BR /&gt;arcpy.management.Integrate(in_features=integrate_inputs, cluster_tolerance=cluster_tolerance)&lt;BR /&gt;logging.info("Integrate tool executed successfully.")&lt;BR /&gt;except arcpy.ExecuteError:&lt;BR /&gt;logging.error("ArcPy ExecuteError during Integrate:")&lt;BR /&gt;logging.error(arcpy.GetMessages(2)) # 2 captures only error messages&lt;BR /&gt;exit()&lt;BR /&gt;except Exception as e:&lt;BR /&gt;logging.error(f"Failed to run Integrate tool: {e}")&lt;BR /&gt;exit()&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# Perform the Split Line at Point operation&lt;BR /&gt;arcpy.management.SplitLineAtPoint(fc_routes_path, fc_stops_path, split_lines_output, "1 Meters")&lt;BR /&gt;logging.info(f"SplitLineAtPoint executed successfully and output saved at {split_lines_output}")&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 04:29:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/issues-with-integrate-and-splitlineatpoint-tools/m-p/1548287#M27426</guid>
      <dc:creator>CyrusTsang</dc:creator>
      <dc:date>2024-10-13T04:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Integrate and SplitLineAtPoint Tools(Seeking for help)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/issues-with-integrate-and-splitlineatpoint-tools/m-p/1548293#M27427</link>
      <description>&lt;P&gt;both the Integrate and&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/analysis/pairwise-integrate.htm" target="_blank"&gt;Pairwise Integrate (Analysis)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;recommend not specifying a cluster tolerance to ensure that the one specified for the spatial reference of the input data is used.&lt;/P&gt;&lt;P&gt;In any event a 0.01 foot distance is pretty small and you have to decide whether your bus stops have been located accurate enough to ensure that they comply to this distance.&lt;/P&gt;&lt;P&gt;If you must use a cluster tolerance value, try 1.0 feet to try to capture point locations that are farther away from the line than you expect.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 08:34:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/issues-with-integrate-and-splitlineatpoint-tools/m-p/1548293#M27427</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-10-13T08:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Integrate and SplitLineAtPoint Tools(Seeking for help)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/issues-with-integrate-and-splitlineatpoint-tools/m-p/1548311#M27428</link>
      <description>&lt;P&gt;Thank you for your guidance on adjusting the cluster tolerance settings and your help. However, after removing the cluster tolerance as recommended, I'm still encountering the problem that the&amp;nbsp;&lt;SPAN&gt;bus routes are not being split correctly at the stop points.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 16:25:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/issues-with-integrate-and-splitlineatpoint-tools/m-p/1548311#M27428</guid>
      <dc:creator>CyrusTsang</dc:creator>
      <dc:date>2024-10-13T16:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Integrate and SplitLineAtPoint Tools(Seeking for help)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/issues-with-integrate-and-splitlineatpoint-tools/m-p/1548317#M27429</link>
      <description>&lt;P&gt;It would be useful if you showed the location of the bus stops to the route after Integrate, perhaps the tolerance isn't any good and web mercator coordinate system wouldn't help matters for things involving distance.&amp;nbsp; So in short, what is the actual distance relaytive to the lines and have you considered using data in a differenc coordinate system?&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 17:57:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/issues-with-integrate-and-splitlineatpoint-tools/m-p/1548317#M27429</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-10-13T17:57:59Z</dc:date>
    </item>
  </channel>
</rss>

