Here we will discuss how to read GPS coordinates from an external file and then load them on the map. The GPS log coordinates have been previously prepared for this example. We have multiple GPS file logs that we can pick from. For this exercise, we will use C:\ArcGISByExample\telzaviba\Data\GPS_LOG_straight.txt
.
We will read an external file with GPS coordinates under C:\ArcGISByExample\telzaviba\Data\GPS_LOG_straight.txt
. The file has pairs of x and y records, as shown in the following table:
x |
y |
---|---|
258831.891978741 |
6248372.52378893 |
258961.538071367 |
6248277.93505809 |
258952.939095835 |
6248281.90381602 |
258944.340120304 |
6248287.19549327 |
258936.402604429 |
6248290.50279156 |
258925.819249929 |
6248295.79446881 |
258914.574435773 |
6248301.08614605 |
258901.345242648 |
6248309.68512159 |
Follow these steps to read the GPS points from the file:
Open our TelZaViBa project from
C:\ArcGISByExample\telzaviba\Code
if you...