Hi Community,
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.
This is what we tried so far:
We can use geometryToMeasure, which is giving the expected results:
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.
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.
Playing around a bit with different routes, geometry and tolerance values, suddenly I got result:
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.
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.
Thanks in advance,
Mirek
Hi Mirek,
I'd recommend opening up a support case with Esri technical support.
Nathan
ArcGIS Roads and Highways team
@MirekGroen Reviewing the REST API documentation, I noticed the 'z' is included in the query.
https://sampleserver/arcgis/rest/services/MyLRS/MapServer/exts/LRServer/eventLayers/1/geometryToStation?f=json&locations=[{"routeId":"I90","geometry":{"x":-8479115,"y":5326520,"z":5}}]&tolerance=50&inSR=102100
Give it a try by adding "z":0
REF: https://developers.arcgis.com/rest/services-reference/enterprise/lr-geometry-to-station/
@AyanPalit I forgot to mention that I also tried with z included. Unfortunatlely, it makes no difference.
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.
Hi @AyanPalit,
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.
I hope this clarifies!
Mirek