LRSToReferencePost

Titleā€ƒ LRSToReferencePost

Summary

Geoprocessing Task that accepts LRS information (RouteID, Measure and optional ToMeasure) plus optional output Spatial Reference and Active (LRS) Date and returns one or more Reference Posts within the SearchDistanceMeasure of a single LRS Measure, or within two LRS Measures.


Usage

Example input URL:

https://gdotserver.gdot.gov/arcgis/rest/services/LRSToReferencePost/GPServer/LRSToReferencePost/execute?RouteID=1000100000100INC&Measure=1.5

Produces this output JSON:

{"results": [{"paramName": "LRSInfo", "dataType": "GPString", "value": {"status": "gdotRefPostsFoundOK", "refPosts": [{"refPostCounty": "Decatur", "refPostMilesToInMeasure": -0.481775, "refPostY": 30.712574, "refPostX": -84.400049, "refPostNumber": "2", "refPostMilepoint": 1.981775, "refPostMPID": "SR_1_087_2"}, {"refPostCounty": "Decatur", "refPostMilesToInMeasure": 0.5073952, "refPostY": 30.703018, "refPostX": -84.387891, "refPostNumber": "1", "refPostMilepoint": 0.9926048, "refPostMPID": "SR_1_087_1"}], "routeCode": "00000100", "spatialReference": 4326, "routeSignName": "SR-1", "inPointsXY": [{"status": "gdotMeasureXYFoundOK", "x": -84.394335, "m": 1.5, "y": 30.707694}]}], "messages": []}


Syntax

Parameter Explanation
RouteID

LRS RouteID (e.g., "1000100000100INC").

Measure

LRS Measure, or "From" Measure when "To" Measure also provided.

ToMeasure (Optional)

Optional LRS "To" Measure. When provided, a list of Reference Posts between the "From" and "To" Measures will be returned.

OutSpatialReferenceWKID (Optional)

Well Known ID (WKID) of output X, Y coordinates. Default value is same as InSpatialReferenceWKID. Note that 102604 is the native WKID of GDOT's LRS and ReferencePosts. The default value is 4326 (WGS84 geographic [longitude/latitude]).

SearchDistanceMeasure (Optional)

The distance in LRS Measures (miles) that the Measure or From Measure and To Measure will be expanded to select Reference Posts. With the default value of 0.75, a single Measure of 1.5 will return any Reference Posts between 0.75 and 2.25; From Measure/To Measure of 1.0 and 2.0 will return any Reference Posts between 0.25 and 2.75.

ActiveDate (Optional)

Active date of Reference Post/LRS in the format m/d/yyyy. Examples are 1/4/2020, 10/23/2022. Default value is current date (today).

Code Samples

Tags

Reference Post, Reference Post Number, LRS, Linear Referencing System

Credits

Georgia Department of Transportation.


Use limitations