<?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: GeometryToStation giving CannotFindLocation error in ArcGIS Roads and Highways Questions</title>
    <link>https://community.esri.com/t5/arcgis-roads-and-highways-questions/geometrytostation-giving-cannotfindlocation-error/m-p/1590303#M438</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/625917"&gt;@MirekGroen&lt;/a&gt;&amp;nbsp;Reviewing the REST API documentation, I noticed the 'z' is included in the query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;https://sampleserver/arcgis/rest/services/MyLRS/MapServer/exts/LRServer/eventLayers/1/geometryToStation?f=json&amp;amp;locations=[{"routeId":"I90","geometry":{"x":-8479115,"y":5326520,"z":5}}]&amp;amp;tolerance=50&amp;amp;inSR=102100&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Give it a try by adding&amp;nbsp;&lt;SPAN&gt;"z"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;REF:&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/lr-geometry-to-station/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/rest/services-reference/enterprise/lr-geometry-to-station/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2025 20:07:28 GMT</pubDate>
    <dc:creator>AyanPalit</dc:creator>
    <dc:date>2025-02-27T20:07:28Z</dc:date>
    <item>
      <title>GeometryToStation giving CannotFindLocation error</title>
      <link>https://community.esri.com/t5/arcgis-roads-and-highways-questions/geometrytostation-giving-cannotfindlocation-error/m-p/1589934#M436</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;We started using an event point layer with stationing fields enabled, so we would be able to use the stationToGeometry and geometryToStation services. These are, however, not working as expected.&lt;/P&gt;&lt;P&gt;This is what we tried so far:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;We added a point event layer with stationing fields enabled. The &lt;STRONG&gt;Station&lt;/STRONG&gt; field contains the value as found on km-posts, the &lt;STRONG&gt;BackStation&lt;/STRONG&gt; field contains the value of the previous Station, the &lt;STRONG&gt;StationDirection&lt;/STRONG&gt; field is empty. The station values are increasing with increasing measure on the routes.&lt;/LI&gt;&lt;LI&gt;We appended the events to the station event layer, all resulting in NO ERROR:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MirekGroen_0-1740647503403.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/126466iF4B39012A72BEA2A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MirekGroen_0-1740647503403.png" alt="MirekGroen_0-1740647503403.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MirekGroen_1-1740647512515.png" style="width: 619px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/126467i96B2AD72D88E9E59/image-dimensions/619x144?v=v2" width="619" height="144" role="button" title="MirekGroen_1-1740647512515.png" alt="MirekGroen_1-1740647512515.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;This example shows 2 routes (0=60=1 and 0=60=2) that got stationing points, here showing 128+0100 till 128+0301 station values&lt;/LI&gt;&lt;LI&gt;After appending the Station events, I can confirm that the events got m-values.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;We can use geometryToMeasure, which is giving the expected results:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MirekGroen_2-1740647842172.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/126468i8B4478B3FEA30AD2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MirekGroen_2-1740647842172.png" alt="MirekGroen_2-1740647842172.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I use the same input geometry for geometryToStation it is giving me a CannotFindLocation error, while I am expecting stationing values on both routes 0=60=1 and 0=60=2, somewhere between 128+0200 and 128+ 0300.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MirekGroen_3-1740648059953.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/126469iF2F58BE693814B67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MirekGroen_3-1740648059953.png" alt="MirekGroen_3-1740648059953.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I also tried with a reference to a routeId ([{"routeId":"0=60=1","geometry":{"x":545498,"y":6188255}}]) without using a tolerance. But this is giving the same error.&lt;/P&gt;&lt;P&gt;Playing around a bit with different routes, geometry and tolerance values, suddenly I got result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MirekGroen_4-1740648399751.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/126470iE8E62849DEA3D8E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MirekGroen_4-1740648399751.png" alt="MirekGroen_4-1740648399751.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I cannot reproduce the same result. I am suspecting that are setup might be wrong, but I cannot find in Esri's documentation what we are doing wrong, or how exactly we should use the stationing fields.&lt;/P&gt;&lt;P&gt;I hope there is anyone out there that could help solving this issue. If something is unclear in the explanation of our workflow, please let me know.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;BR /&gt;Mirek&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 09:29:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-roads-and-highways-questions/geometrytostation-giving-cannotfindlocation-error/m-p/1589934#M436</guid>
      <dc:creator>MirekGroen</dc:creator>
      <dc:date>2025-02-27T09:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryToStation giving CannotFindLocation error</title>
      <link>https://community.esri.com/t5/arcgis-roads-and-highways-questions/geometrytostation-giving-cannotfindlocation-error/m-p/1590246#M437</link>
      <description>&lt;P&gt;Hi Mirek,&lt;/P&gt;&lt;P&gt;I'd recommend opening up a support case with Esri technical support.&lt;/P&gt;&lt;P&gt;Nathan&lt;BR /&gt;ArcGIS Roads and Highways team&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 18:32:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-roads-and-highways-questions/geometrytostation-giving-cannotfindlocation-error/m-p/1590246#M437</guid>
      <dc:creator>NathanEasley</dc:creator>
      <dc:date>2025-02-27T18:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryToStation giving CannotFindLocation error</title>
      <link>https://community.esri.com/t5/arcgis-roads-and-highways-questions/geometrytostation-giving-cannotfindlocation-error/m-p/1590303#M438</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/625917"&gt;@MirekGroen&lt;/a&gt;&amp;nbsp;Reviewing the REST API documentation, I noticed the 'z' is included in the query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;https://sampleserver/arcgis/rest/services/MyLRS/MapServer/exts/LRServer/eventLayers/1/geometryToStation?f=json&amp;amp;locations=[{"routeId":"I90","geometry":{"x":-8479115,"y":5326520,"z":5}}]&amp;amp;tolerance=50&amp;amp;inSR=102100&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Give it a try by adding&amp;nbsp;&lt;SPAN&gt;"z"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;REF:&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/lr-geometry-to-station/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/rest/services-reference/enterprise/lr-geometry-to-station/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 20:07:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-roads-and-highways-questions/geometrytostation-giving-cannotfindlocation-error/m-p/1590303#M438</guid>
      <dc:creator>AyanPalit</dc:creator>
      <dc:date>2025-02-27T20:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryToStation giving CannotFindLocation error</title>
      <link>https://community.esri.com/t5/arcgis-roads-and-highways-questions/geometrytostation-giving-cannotfindlocation-error/m-p/1590310#M439</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/512"&gt;@AyanPalit&lt;/a&gt;&amp;nbsp;I forgot to mention that I also tried with z included. Unfortunatlely, it makes no difference.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 20:11:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-roads-and-highways-questions/geometrytostation-giving-cannotfindlocation-error/m-p/1590310#M439</guid>
      <dc:creator>MirekGroen</dc:creator>
      <dc:date>2025-02-27T20:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryToStation giving CannotFindLocation error</title>
      <link>https://community.esri.com/t5/arcgis-roads-and-highways-questions/geometrytostation-giving-cannotfindlocation-error/m-p/1590421#M440</link>
      <description>&lt;P&gt;Ok, if the REST syntax is correct, the issue is more fundamental. Likely how the point event layer with stationing fields was enabled. Using the snapshot provided, please explain the highlighted attributes, how are they related? I am unsure if the measure attribute is correct.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AyanPalit_0-1740697848172.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/126596i538B6E2DDD0C0155/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AyanPalit_0-1740697848172.png" alt="AyanPalit_0-1740697848172.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 23:11:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-roads-and-highways-questions/geometrytostation-giving-cannotfindlocation-error/m-p/1590421#M440</guid>
      <dc:creator>AyanPalit</dc:creator>
      <dc:date>2025-02-27T23:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryToStation giving CannotFindLocation error</title>
      <link>https://community.esri.com/t5/arcgis-roads-and-highways-questions/geometrytostation-giving-cannotfindlocation-error/m-p/1590553#M441</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/512"&gt;@AyanPalit&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Our LRS is based on already existing data. What we are trying to do here is to append already existing phisical km posts out in the field with a certain km+m value, that is not equal to the LRS measure value. Let me explain the steps we took to prepare and append the events.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;We have a point feature class with an attribute RouteId and Km+m values. First we calculate the Measure on the corresponding route by using the .queryPointAndDistance() function in a Python script. The result of that query gives a GeometryPoint on the route containing our desired m-value, which is 40107.14 m. When I compare our input km-post point feature and the measure point on the route, I can confirm that we got the correct measure.&lt;/LI&gt;&lt;LI&gt;The Station value is corresponding to our value on the km post. Note that we use 4 zeros for the meter element, because it is possible that there is more than 1000 m between a km post and the following one.&lt;/LI&gt;&lt;LI&gt;The BackStation field is the one that I am not quite sure about how to use. As far as I understood, this field should contain the Station value of the previous stationing point on the route. So here I gave it the value of the Station before the current.&lt;BR /&gt;! I also tried the stationToGeometry service with &amp;lt;Null&amp;gt; values for BackStation, but this does not help.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I hope this clarifies!&lt;/P&gt;&lt;P&gt;Mirek&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 20:55:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-roads-and-highways-questions/geometrytostation-giving-cannotfindlocation-error/m-p/1590553#M441</guid>
      <dc:creator>MirekGroen</dc:creator>
      <dc:date>2025-03-03T20:55:33Z</dc:date>
    </item>
  </channel>
</rss>

