The "fillmapkeyvalues" web service provides meta data about a 2D line.
A typical URL is: http://myserver.mycompany.com:8080/INTGeoServer/json/fillmapkeyvalues?json={"filePath":"Linea-22.xgy","modelX":471153.2,"modelY":9823222,"precision":1}
The following parameters are available:
filePath: the relative path of the specified dataset. This web service only works with 2D lines. This is a required parameter. If a path encoder is used, this path is encoded.
modelX: the x value to get the trace number for. This is a required parameter.
modelY: the y value to get the trace number for. This is a required parameter.
precision: a query will be constructed where the precision is used to create a range around each model point. This is a required parameter.
epsgCode: the EPSG code to transform the values to. If the 2D line does not have its own EPSG code the server will return a bad request response (error 400) in the HTTP header.. This is an optional parameter.
Here is an example response. This response has been formatted to improve readability
{
"TraceNumber":99.0
}
The TraceNumber entry is the trace number found matching the parameters. If no values were found, the response will be empty.