- URL:
- https://<centerline-layer-url>/removeOverlappingCenterlines
- Methods:
- GET
- Required Capability:
- The ArcGIS Location Referencing license is required to use this resource.
- Version Introduced:
- 10.7
Description
This operation removes overlapping centerline sections to ensure there is one common centerline in cases where centerline geometry overlaps. Internally, it calls the Remove Overlapping Centerlines geoprocessing tool.
Request parameters
| Parameter | Details | 
|---|---|
| 
 (Optional) | Specifies the response format. The default response format is  Values:  | 
| 
 (Optional) | Specifies a list of Object IDs and a SQL  Syntax: Example:  | 
| 
 (Optional) | Specifies the geodatabase version to use. If this parameter is not specified, the published map's version is used. Syntax: Example:  | 
| 
 (Optional) | Set by a client during long transaction editing on a branch version. The  Syntax: Example:  | 
| 
 (Optional) | Specifies whether the response reports the time edits that were applied. If  Values:  | 
| 
 (Optional) | Returns features edited due to the geodatabase behavior that results from applying the edits. For example, if a feature is deleted and it is the origin in a composite relationship, the destination feature is automatically deleted from the geodatabase. If  Results returned from  Service-level  The  
 The response includes no  Edited features are returned in the spatial reference of the feature service as defined by the services  The default value is  Values:  | 
Example usage
The following examples demonstrate how to remove overlapping centerlines from a selection or all of the centerline feature class.
Example 1
The following call removes overlaps from the entire centerline feature class.
https://sampleserver/server/rest/services/MyLRS/MapServer/exts/LRServer/centerlineLayers/4/removeOverlappingCenterlines?layerDefinition=&gdbVersion=SDE.test1&sessionId={91FB4126-F4D8-410E-96A2-000E8463A8A4}&returnServiceEditsOption=originalAndCurrentFeatures&returnEditMoment=true&f=jsonExample 2
The following call removes overlaps from a selection set on the centerline feature class.
https://sampleserver/server/rest/services/MyLRS/MapServer/exts/LRServer/centerlineLayers/4/removeOverlappingCenterlines?layerDefinition={"objectIds":[866,867,868,869,871,2816]}&gdbVersion=SDE.test1&sessionId={91FB4126-F4D8-410E-96A2-000E8463A8A4}&returnServiceEditsOption=originalAndCurrentFeatures&returnEditMoment=true&f=jsonJSON response syntax
Query this job URL to get progress updates and results of the operation.
{
  "statusURL": "<jobIdURL>"
}JSON response example
{
  "statusURL": "https://sampleserver/arcgis/rest/services/MyLRS/MapServer/exts/LRServer/jobs/j3c0a00b4314349eb8e4ff6ff7ac2db5d"
}