To configure the R & H interface to work with other systems, follow the steps below:

Configure the Interface on the AgileAssets System

On standard systems, the configuration page for this interface is accessed by following the steps below: 

  1. Click LRS/GIS in the top ribbon
  2. Select Roads & Highways Interface 
  3. Select LRS Interface Setup

The configuration page is divided into the following three panes:

Configure LRMs on the AgileAssets System

This step correlates the LRMs in the AgileAssets system with the Networks implemented in Esri Roads and Highways.

To configure this, navigate to the LRM Setup page by following the steps bellow:

  1. Click LRS/GIS
  2. Select Setup Location Reference Methods (LRMs)

For each LRM in the LRSs pane identify the number assigned to it on the Roads and Highways system in the dLRSNetworks domain and enter that number in the Net_LRM_ID field in the AgileAssets LRM Setup window.  (Note: The Net_LRM_ID field may not be visible in the top pane. You must open design mode to add this field and then make it visible and editable.)

Also, in cases where an LRM has more than one route identification field (marked as Location Attribute in the bottom screen) you may need to assign each of these fields a value in the Net_Order_ID field.  This specifies the preferred order of the route identification fields. 

Note: The Net_Order_ID field may not be editable in the bottom pane.  You may have to go into design mode to make it editable.

Make a Connection between ArcCatalog and the AgileAssets System

In ArcCatalog, make a database connection to the Oracle instance underlying the AgileAssets implementation. The directions for creating an Oracle database connection can be found on the Esri website at http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-oracle/connect-oracle.htm.

Register External Events with Roads and Highways

For each record entered into the Relocate Events Setup - Event Categories pane of the LRS Interface Setup window on the AgileAssets system, you will have two External event views that must be registered to the Advanced Linear Referencing System (ALRS). The names of the External Event views are created from the Base Events Table Name field of each record plus “_PTV” appended to it for point events and “_LNV” appended to it for linear events.

The directions for registering External events to Roads and Highways can be found on the Esri website (http://desktop.arcgis.com/en/arcmap/latest/extensions/roads-and-highways/registering-an-external-event-source.htm). Make sure to complete the following:

Note: The external events need to be registered to the Network that is checked as the Basic LRS.


Register the Roads & Highways database with ArcGIS Server

In almost all cases this step will have already been done, but it is listed here for completeness.  However, the instructions for registration can be found on the Esri website (http://server.arcgis.com/en/server/latest/publish-services/windows/registering-your-data-with-arcgis-server-using-manager.htm).

Create Roads and Highways Export Network Web Service

There are two main steps to creating the Export Network web service. First you must run the geoprocess, and then share the results of that geoprocess as a web service.

The directions for running the geoprocess and creating the web service can be found on the Esri website (http://desktop.arcgis.com/en/arcmap/latest/extensions/roads-and-highways-server/deploying-network-export-tool-as-a-service.htm).

  1. In the Export Network dialog, select the base LRM of the AgileAssets system (as indicated by the Basic LRS check mark in Section 2.2).
  2. When specifying the Output Export File make sure to include a full name with a directory path (e.g. C:\Temp\Export).
  3. Select FGDB for output format.
  4. Select the precision (number of digits to the right of the decimal point) that matches the precision of measures in the Setup_Network_Lines table in the AgileAssets system.
  5. The LRM Translations value must be a comma-delimited list of the numbers that Roads and Highways assigns to the networks that correspond to any alternate LRMs in the AgileAssets system. These numbers are listed in the dLRSNetworks domain. And if there are no alternate LRMs that need to be handled via the Interface, then leave the LRM Translations field blank.
  6. Leave the following fields blank: Last Invoked Time, LRS Time, Last LRS Time, and Output Spatial Reference WKID.

Create Roads and Highways Relocate Events Web Services

Create a Relocate Events web service for each External event registered in the Register External Events with Roads and Highways step. There are two main steps to creating a Relocate Events web service. First, you must run the geoprocess, and then share the results of that geoprocess as a web service. Both steps must be run for each registered External event.

The directions for running the geoprocess and creating the web service can be found on the Esri website at http://desktop.arcgis.com/en/arcmap/latest/extensions/roads-and-highways-server/deploying-relocate-event-tool-as-a-service.htm. Enter the network that corresponds to the base LRM in the AgileAssets system into the Network Layer. Select the Event Name for the external event associated with this iteration. Select CSV for the output format. And when specifying the Output Export File make sure to include a full name with a directory path (e.g. C:\Temp\Rel_Events_Pt).

Suggestion: when creating the web service and using the Service Editor dialog, under Parameters you may want to pick a Message Level of “Info” as this provides more meaningful error messages. 

Create LastEditDate Web Service

These steps create a LastEditDate web service, which allows the AgileAssets-Roads & Highways Interface to retrieve the latest edit date from the Lrs_Edit_Log table in Roads and Highways geodatabase. Follow the steps below to publish the web service and enter the URL into the Interface.

Note: To use this function, make sure the Lrs_Edit_Log table is registered as versioned in an enterprise geodatabase.

  1. Create and register the SDE connection to the R&H geodatabase, or the folder location that contains the file geodatabase with the ArcGIS Server, if they are not already registered.
  2. Download the zip file from the ftp site where the build artifacts are stored. Extract it to a folder.
  3. Publish the service using either the command line option or ArcMap option, described as follows.

Command Line Option:

-l    ArcGIS server admin address, e.g., https://arcgis.server.example.com/arcgis/admin/ Don't forget /arcgis/admin/
-u    Admin username to access the server, e.g., siteadmin
-p    The password to the admin user
-s    If you are using a file geodatabase, this is the path leading to the file geodatabase, e.g., C:\Data\WORKSPACE\RH_GDB.gdb. If you are using an enterprise geodatabase, this is the path to the SDE connection file, e.g., C:\Data\WORKSPACE\WS_SDE.sde
-w    The workspace folder, e.g., C:\Data\WORKSPACE
-t    The exact table name for LRS Edit Log table. If you are using a file geodatabase, this is Lrs_Edit_Log. If you are using an enterprise geodatabase, this should include the database and schema prefix, e.g., RH_DEMO.RH_DEMO.Lrs_Edit_Log
-n    The name of the service (optional), e.g., LastEditDate. By default, it is Last_Edit_Date_Service.
-f    The ArcGIS Server folder where the service needs to be published, e.g., RH_Interface

For example:

Python publish.py -l https://arcgis.server.example.com/arcgis/admin/  -u siteadmin -p password -s C:\Data\WORKSPACE\WS_SDE.sde -w C:\Data\WORKSPACE -t RH_DEMO.RH_DEMO.Lrs_Edit_Log -f RH_Interface

If the command line finishes without any error or warning messages, the service is successfully published.

ArcMap Option:

  1. Open the folder in ArcMap, and open the tbx toolbox to display the LastEditScript
  2. Double click the LastEditScript script under the tbx to open it.
  3. For inWorkspace parameter:
  4. For editLogTableName parameter:
  5. Click OK to run the tool, Follow this instruction and finish publishing the web service.

    Note: For this GP service, make sure to select the Synchronous mode under the Parameter tab:

Once the service is published, follow these steps to obtain the URL to the service:

  1. Adjust the permission of the service in ArcGIS Server Manager and set it to Public (Available to Everyone).
  2. Save the URL. The URL is the webpage that has a Execute Task text at the bottom:

Complete Interface Configuration on the AgileAssets System

On the standard AgileAssets system, you can return to the LRS Interface Setup window by following the steps below:

  1. Click LRS/GIS
  2. Select Roads & Highways Interface
  3. Select LRS Interface Setup

To fill in the URLs that were left empty in an earlier step, follow the steps below:

In the Export Network URL field on the top pane, enter the URL associated with the Export Network web service that you created. To find the URL to enter here, do the following:

In the LastEditDate Service Link field on the top pane, enter the URL associated with the LastEditDate web service that you created. This is the URL created in the Create LastEditDate Web Service step.

In the Relocate Events URL (Points) field and in the Relocate Events URL (Lines) field on the middle pane, enter the URL associated with the Relocated web services that you created for each of these event categories. To find the URL to enter here, do the following for each event category:

Install native FGDB libraries

One of the outputs of ESRI's Roads & Highways web services is an ESRI File GeoDatabase (FGDB). In order for our system to be able to read ESRI File GeoDatabases, native libraries must be installed.

For Linux-based servers, these libraries are named:

For Windows-based servers, these libraries are named:

The implementation steps are as follows:

  1. Obtain the AgileAssets libraries. The available AgileAssets libraries are listed above. Contact AgileAssets support and provide them with operating system details of your server.
  2. Obtain the ESRI libraries. The Esri libraries are provided on Esri’s download page.
  3. Install the libraries. Create a directory on the application server and put all required libraries (from both Esri and AgileAssets) in that directory.  Make note of the directory name.  For the examples below we used /usr/local/tomcat/geo_libs. 
  4. Create a script that lets the application server know the whereabouts of these libraries. Replace “/usr/local/tomcat/geo_libs” in the directions below with the location of your libraries as appropriate.
  5. Restart Tomcat.

Make at least one event table temporal

Because Roads and Highways keeps track of the dates associated with each edit the AgileAssets side of the interface needs to have fields to store this data.  Those fields are created when at least one linearly-referenced table is set to Keep Change History.

To make a table temporal, follow the steps below:

  1. Go to System > Utilities > Database/System Management > Tables (or wherever this window is on your implementation.
  2. Find a linearly-referenced table (one that has route and measures) and select its row in the table.
  3. Scroll to the far right of the window and place a check mark in the Keep Change History
  4. Right-click the row to bring up the context menu and select Apply Changes.
  5. A dialog may appear asking you to give a beginning birth date for your existing records in this table. By default it is 1/1/1900.  Give it a date of your choosing and click OK.
  6. Next a dialog will appear asking if it is OK to process the script needed to make the table temporal. Click OK.  This process will likely take several minutes depending on the number of records in the table. 
  7. After the script completes click the Save Data button and this task is complete.

Configure Excluded Tables and Interface Type

An AgileAssets support person will work with you to make sure that the proper settings are made for tables to be excluded from the interface job and that your system is set to use the Roads & Highways Interface type.