How To Add The Baseline Tracking Facilities into SEG from ODTK

« Go Back

Information

 
ProblemHow to add the Baseline tracking stations to SEG using ODTK
Solution
First, open SEG and make sure that SEG stays open during this entire process.

Open ODTK and open the ODTK demo scenario, normally found at C:\Program Files\AGI\SEG\SEG_Tools\SEG_Demo\Trackers\SEG_Demo.sco. This scenario contains a set of trackers that you can upload to SEG.

Within ODTK, from the ODTK Launchpad, there is an ODTK Utilities tab. Click that tab and then click the + button next to the installed utilities. From there, scroll down to find and open the SEGTrackerUtil utility. 


In the utility, next to server, enter 127.0.0.1:8078. Click the Get Tracker List button to get the list of the trackers in your ODTK scenario as well as connect with SEG and get the list of SEG trackers. Next to the trackers in scenario list, enter the desired effectivity date. This is the earliest time in SEG that these facilities can be used. For example, if you enter January 1, 2000, the facilities could be used for any scenario time starting from January 1, 2000. Once this is done for all trackers, click upload all.

Now that you have uploaded the facilities to the SEG server itself, you will have to edit XML files so that SEG will support these files. Browse to the SEG install directory and then SEG_Tools\SEG_Demo\TrackingStations. This full path is usually C:\ProgramFiles\AGI\SEG\SEG_Tools\SEG_Demo\TrackingStations.

Next, save a copy of 
TrackerModels.xml in another directory. Open it with a text editor and find a section for a tracker that matches the type of the one that you are adding. You can then edit parameters, such as tracking number and effectivity, to match your tracking facility. After that, you must delete the data for the other trackers. Save this file and make sure it is still saved as an .xml file. An example .xml file is available to download at the bottom of this guide; it assumes the effectivity date to be 2018-04-01T00:00:00. If this is not the effectivity date displayed within the ODTK SEGTrackerUtil utility, this .xml file will not work, and you will have to change the date listed next to <effectivity> to the date displayed within the utility on your system.


You will now need to open Windows Powershell as an administrator to run a Powershell script. In order to run scripts, you might first have to enter the command Set-ExecutionPolicy -ExecutionPolicy Unrestricted within the Windows Powershell. This is because by default, Powershell scripts are blocked in Windows as a safety feature.  

Execute the following Powershell script steps:
1. Change directory to where the Powershell script is located to  <SEG install directory> 
Program Files\AGI\SEG\SEG_Tools\Scripts\PowerShell. For most users, this command will look like cd "C:\Program Files\AGI\SEG\SEG_Tools\Scripts\PowerShell".
2. Run the command 
.\SEG-LoadData.ps1 –srv 127.0.0.1:8078 –only “Trackers” –verbose. You will notice that the number after "srv" is the same number you entered for your server in the ODTK 
SEGTrackerUtil utility.
3. Enter in the path to the .xml file you saved earlier and click enter. If this succeeds, it will return a success statement. If not, you might have entered the file path incorrectly. Make sure to use double quotes (" ") for your path instead of single quotes (' '). 
4. Be sure to run 
Set-ExecutionPolicy -ExecutionPolicy Restricted afterwards to return the settings back to their defaults.

Once this is done, close the Windows Powershell window, close SEG, and then reopen SEG. Any scenarios set after the specified effectivity date should now have the facilities you just uploaded. 

 
Product 
Version(s)SEG 3.0
TitleHow To Add The Baseline Tracking Facilities into SEG from ODTK
URL NameHow-To-Add-The-Baseline-Tracking-Facilities-into-SEG-from-ODTK

Related Files

TrackerModels.xml