The redline is a markup feature in the geodatabase that stores information about the proposed changes in the linear referencing system (LRS). Event Editor can propose changes to the LRS through the Redline widget using redline routes. LRS editors can then apply the redline as an official change to the LRS using ArcGIS Pipeline Referencing. The Redline Routes widget can be used to create, edit, and attach files to the redline routes. You can preconfigure redline activity types such as create route, extend route, realign route, realign concurrent route, calibrate route, retire route, reassign route, and so on.
For more information on redline routes, see the following:
To enable web redlining of routes using Event Editor, you should author a web map using ArcMap and include a redline feature class. You can achieve this in one of the following ways:
- Include the redline layer in the same map service along with your routes and event layers.
- Create a separate map service for the redline.
警告:
The layer name of the redline needs to match the feature class name, including the prefix. By default, when a layer is added to a map, the alias is used; however, the web layer name needs to match the feature class name.
For detailed instructions on authoring a web map and configuring Event Editor, see the following:
- Configuring the Event Editor web application
- Authoring a web map for the Event Editor
- Event Editor deployment guide
注:
In the redline feature class, the attribute fields for which the Event Editor application user may not be able to provide data must be made nullable. Doing so will make the data content for those fields optional.
The application can be configured to automatically detect the redline layer using the name of any operational layers that you have configured in the web map. The redline layer name must be the same as the redline feature class name (including prefix) to autodetect the redline layer.
Items to confirm before you start
Before you deploy redline route capability in Event Editor, check that the following are true:
- Feature access and linear referencing capabilities are enabled.
- The redline feature class has the m- and z-values disabled.
- Symbology is defined for the Activity Type field.
- The redline layer has a feature template defined.
Enabling feature access and linear referencing capabilities
- If you're including the redline layer in the same map service as your network and event layers, make sure to enable the Feature Access and Linear Referencing capabilities when publishing the map service using ArcGIS Pipeline Referencing for Server.
- If you're publishing the redline layer separately, make sure to enable only the Feature Access capability when publishing the map service using Pipeline Referencing for Server.
注:
Event Editor supports Esri web maps, which can have only one linear referencing-capable map service.
Disabling m- and z-values for the redline feature class
The redline feature class should have the capability to store disabled m- and z-values. To validate this, perform the following steps:
- 启动 ArcCatalog。
- Browse to the redline feature class in your database.
- Right-click the redline feature class and click Properties.
The Feature Class Properties widget appears.
- Click the General tab.
- Confirm that both check boxes in the Geometry Properties section are unchecked.
Defining symbology for the Activity Type field
Set up the symbology for the redline feature class's activity types.
- Open the .mxd file that contains the redline layer.
- Right-click the redline layer in the table of contents and click Properties.
- Click the Symbology tab.
- Choose Activity Type in the Value Field list.
- Click Add All Values.
- Choose line symbology for various redline activity types.
- 单击确定。
Defining a feature template for the redline layer
The feature template for the redline layer should be based on the feature symbology.
如果未处于编辑会话中,则可以为地图中的任意图层创建新要素模板。要打开模板组织器并访问向导,可右键单击内容列表中的某个图层,指向“编辑要素”,然后单击“组织要素模板”。
- 单击创建要素 窗口中的组织模板 。
- 单击组织要素模板对话框中的新建模板 。
- 选中要创建新模板的图层。
- 单击下一步。
- 如果任一图层具有子类型或按类别进行了符号化,则选择要创建模板的类。
- 单击完成。
注:
如果该图层被符号化为一个符号,则向导只需一步便可完成。
Deploying redline routes
Use the following steps to deploy redline routes for Event Editor.
- Configuring redline activity types
- Configuring a separate redline service
- Enabling redline attachments
Configuring redline activity types
You can configure redline activities by using the following steps:
- 启动 ArcMap。
- Open the Catalog window and browse to the redline feature class in your database.
- Right-click the redline feature class and click Properties.
- Click the Subtypes tab.
- Click Domains.
- On the Workspace Domains widget, click the dActivityType domain name.
You'll see preconfigured activity types in the form of coded domains for redlines in the Coded Values section. You can edit the activity types in this section.
- Click Apply and click OK to close the Workspace Domains widget to save the edits.
Configuring a separate redline service
If you don't want to enable feature access to all your LRS event layers, you can publish your redline layer separately so that it is the only layer that is editable.
注:
If you publish the redline layer in a separate service from the other LRS layers, you need to publish using the same geodatabase version as the LRS map service.
- Publish a map service with the Feature Access capability that only contains the redline layer.
- Open the web map .json file in a text editor.
- Add an additional operational layer to the .json file for the redline map service that you just published.
{ "operationalLayers": [ { "id": "LRS_map_service", "title": "LRS map", "url": "https://<servername.domain>.com/server/rest/services/EventEditorLRSService/MapServer" }, { "id": "Redline Layer", "title": "LRS map", "url": "https://<servername.domain>.com/server/rest/services/EventEditorRedlineService/MapServer" } ],
For additional information about the web map .json file, see the web map specifications for Map Service Layer.
注:
If you're using Portal for ArcGIS or ArcGIS Online and you save Event Editor as a web map, both your LRS layers and your separate redline layer will be automatically added to the web map.
Enabling redline attachments
You can enable redlines to contain attachments using the following steps:
- 启动 ArcMap。
- Open the Catalog window and browse to the redline feature class in your database.
- Right-click the redline feature class and click Attachments > Create Attachments.
Attachments are enabled for redlines.