<?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: Stop point load from snapping across a barrier in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/stop-point-load-from-snapping-across-a-barrier/m-p/1258065#M8201</link>
    <description>&lt;P&gt;Hello Harry.&lt;/P&gt;&lt;P&gt;I think the first thing you should consider is whether using a centroid in your analysis is really the best way to go.&amp;nbsp; If you have large, irregular polygons like the one shown in the screenshot, the centroid (or the network location it snaps to) may not be a good representation of reality.&amp;nbsp; You could instead, for instance, choose the midpoint of a main road in the area or the location of the most populated building.&lt;/P&gt;&lt;P&gt;To answer your question, you may have some success using a search query when loading inputs.&amp;nbsp; You could first run a Calculate Field on your streets to label each one with the aa it falls in (or None, if it doesn't fall in one).&amp;nbsp; When you run Add Locations (or however you're loading inputs), you can set up a search query so that each input only snaps to roads with the designated aa value.&amp;nbsp; Note that the search query applies to all points loaded in a given run of the tool, so you might have to run it separately for each aa so you can tailor the query to each one.&amp;nbsp; You might be able to preprocess that snapping in a more efficient way (not sure off the top of my head) and then just run Add Locations once.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/analysis/networks/locating-analysis-inputs.htm#ESRI_SECTION1_1E7380B7232F4314962CB6E213C8C9FA" target="_self"&gt;This documentation&lt;/A&gt; might be helpful.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2023 16:39:04 GMT</pubDate>
    <dc:creator>MelindaMorang</dc:creator>
    <dc:date>2023-02-14T16:39:04Z</dc:date>
    <item>
      <title>Stop point load from snapping across a barrier</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/stop-point-load-from-snapping-across-a-barrier/m-p/1257836#M8199</link>
      <description>&lt;P&gt;I am currently working on a modelled fastest 20 fire fighting appliances into predetermined assignment areas (aa). The process I'm using is to create a centroid for each aa, then to load these as a destinations in an OD Matrix, with Fire Stations as the origin points.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I'm getting is that the centroid is quite a few cases is snapping a road outside of the aa. In the example below the centroid in the pink point, and the location it has snapped to is the red point. I would like it to instead snap to the closest road that is within the aa.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HarrySmiles_0-1676341731172.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/62772iFDBAA7D57A75CFCB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HarrySmiles_0-1676341731172.png" alt="HarrySmiles_0-1676341731172.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried loading in the AAs as a polygon barrier but when I do this, none of the centroids will match. Any ideas if there is a solution to this?&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 02:31:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/stop-point-load-from-snapping-across-a-barrier/m-p/1257836#M8199</guid>
      <dc:creator>HarrySmiles</dc:creator>
      <dc:date>2023-02-14T02:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Stop point load from snapping across a barrier</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/stop-point-load-from-snapping-across-a-barrier/m-p/1258065#M8201</link>
      <description>&lt;P&gt;Hello Harry.&lt;/P&gt;&lt;P&gt;I think the first thing you should consider is whether using a centroid in your analysis is really the best way to go.&amp;nbsp; If you have large, irregular polygons like the one shown in the screenshot, the centroid (or the network location it snaps to) may not be a good representation of reality.&amp;nbsp; You could instead, for instance, choose the midpoint of a main road in the area or the location of the most populated building.&lt;/P&gt;&lt;P&gt;To answer your question, you may have some success using a search query when loading inputs.&amp;nbsp; You could first run a Calculate Field on your streets to label each one with the aa it falls in (or None, if it doesn't fall in one).&amp;nbsp; When you run Add Locations (or however you're loading inputs), you can set up a search query so that each input only snaps to roads with the designated aa value.&amp;nbsp; Note that the search query applies to all points loaded in a given run of the tool, so you might have to run it separately for each aa so you can tailor the query to each one.&amp;nbsp; You might be able to preprocess that snapping in a more efficient way (not sure off the top of my head) and then just run Add Locations once.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/analysis/networks/locating-analysis-inputs.htm#ESRI_SECTION1_1E7380B7232F4314962CB6E213C8C9FA" target="_self"&gt;This documentation&lt;/A&gt; might be helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 16:39:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/stop-point-load-from-snapping-across-a-barrier/m-p/1258065#M8201</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2023-02-14T16:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Stop point load from snapping across a barrier</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/stop-point-load-from-snapping-across-a-barrier/m-p/1258267#M8203</link>
      <description>&lt;P&gt;Thanks Melinda,&lt;/P&gt;&lt;P&gt;I'm certainly not a fan of the centroid option for this. We have a primary process were we look at the average time to cover all the roads in the AA, but that approach isn't feasible in the timeframe I have to process the data as I would need to run 5hr service areas for 1500 locations. My other idea was to do similar to your idea, but I would need to find that point programmatically as there are about 6000 AAs that I need to process.&lt;/P&gt;&lt;P&gt;As a fall back to the centroids,&amp;nbsp; the loading individually may work, but again I may run into time constraints. I'll look into it though.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 22:41:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/stop-point-load-from-snapping-across-a-barrier/m-p/1258267#M8203</guid>
      <dc:creator>HarrySmiles</dc:creator>
      <dc:date>2023-02-14T22:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Stop point load from snapping across a barrier</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/stop-point-load-from-snapping-across-a-barrier/m-p/1258274#M8204</link>
      <description>&lt;P&gt;You might be able to simplify the query a little.&amp;nbsp; Just calculate a field to a value of 1 (for example) if the street falls within&amp;nbsp;&lt;EM&gt;any&lt;/EM&gt; AA, and then constrain the locating to only locate on streets with that value.&amp;nbsp; It won't guarantee that the point locates within the correct AA, but hopefully in most cases some usable street within the AA is closer than the nearest street in a different AA.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 22:52:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/stop-point-load-from-snapping-across-a-barrier/m-p/1258274#M8204</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2023-02-14T22:52:55Z</dc:date>
    </item>
  </channel>
</rss>

