trackstick.estimateOdometer
This property specifies whether or not to calculate a GPS-based odometer value between successive points.
The odometer starting point is obtained from the "lastOdometerKM" field in the Device record, and the final
odomter value is stored back into the Device "lastOdometerKM" field. Since the starting odometer is retrieved
from the Device record, and ending odometer is stored back into the device record, it is possible that attempting
to import a CSV file more than once may skew the odometer values entered into the EventData table. The
import process does attempt to detect an attempt to re-import the same CSV file, to mitigate any "skewing"
effect that may occur, however care should be taken to avoid re-importing the save CSV file if possible.
Recommended value: true
E.2) Running the Import Command:
Assuming that the name of your exported CSV file is called "2011-03-26 04.05.10.csv", the command to import
the CSV file into OpenGTS would be as follows:
cd $GTS_HOME
bin/trackstick.sh -account=ACCOUNT -device=DEVICE -tmz=TIMEZONE -csv="2011-03-26 04.05.10.csv"
Or on Windows:
cd %GTS_HOME%
bin\trackstick.bat -account:ACCOUNT -device:DEVICE -tmz:TIMEZONE -csv:"2011-03-26 04.05.10.csv"
Where "ACCOUNT" and "DEVICE" are the account/device to which the imported data will be applied, and "TIMEZONE" is
the timezone of the times represented within the CSV file. (Note: "-a:ACCOUNT -d:DEVICE" may also be used to
specify the account and device). Set the "-csv" file to the name of the file exported from the "Trackstick Manager".
The command will then output header informaton indicating the values of the event filtering as follows (the values
displayed below are only an example of the values that may be displayed):
---------------------------------------------
Account : demo
Device : demo
Debug Mode : false
Default Timezone : GMT
Min Speed Km/H : 0.0
Min Heading Chg : 15.0
Min Moving Sec : 120
Min Dormant Sec : 1800
Estimate Odometer: true
---------------------------------------------
Followed by a display of each event parsed and inserted into the EventData table:
...
---------------------------------------------
Include Event: true - Start Event (kph)
Timestamp : [1301012280] Thu Mar 24 17:18:00 PDT 2011
Status : Start
GeoPoint : 39.25054/-142.33508
Altitude : 562.7 meters (1846.1 feet)
Speed : 4.0 km/h (2.5 mph) heading 337.6 (North)
Temp : 28.4 C (83.1 F)
Odometer : 0.0 km (0.0 miles)
Stored Event : [0xF111] Start
OpenGTS Configuration and Installation Manual Page 59 of 60
Kommentare zu diesen Handbüchern