NextGIS Mobile allows to record and display tracks. Recorded track points are saved to the internal database. Track points recorded within one session are combined and displayed on the map as a line.
Make sure that Location mode is switched on in your Android device settings. Also check the configurations of “My Tracks” and “Location” settings in NextGIS Mobile Settings as shown in Pic. 3.10..
3.6.1. Recording a track¶
Tracks can be recorded in two ways.
18.104.22.168. Record tracks in GPX format¶
- To start recording a track press “Start new track” button in the Contextual menu on the Main screen (item 5 in Pic. 3.2.).
Track recording is performed in background mode. To indicate that the process is running a status icon of the walking man is displayed in Android Notification bar. For more information click on it and it will show the track status as shown in Pic. 3.62. below.
During track recording you can see the geometry of the track on Map screen as shown below in Pic. 3.63.
Recorded track is displayed on the map immediately even though recording is not completed. The status icon (walking man) is still visible in the notification bar. The green flag shows the starting point of the track whereas the location marker shows the current device location.
Track points are grouped by days and sessions within a day. If track recording continues the next day track will be split up into two parts.
- To stop track recording, tap “Stop” button either in notification bar (see item 4 in Pic. 3.62.) or in Contextual menu (see item 5 in Pic. 3.2.). The status icon will disappear from notification bar, the location marker will be replaced by the red flag indicating the end of the track, and the track line will change its colour as shown below in Pic. 3.64.
- You can now manage this track, including its export in GPX format. To learn how to export the tracks see Exporting tracks in GPX.
22.214.171.124. Record tracks to vector layer¶
You can also add a feature to an existing line or polygon vector layer by tracking.
- Tap on Main actions button (see item 8 in Pic. 3.2.) and then”Add geometry by walk” button (see item 5 in Pic. 3.42.). It will open list of all editable Linestring/Multilinestring and Polygon/Multipolygon vector layers in a separate dialogue as shown below in Pic. 3.65.
- Select the layer to which you want to add a new feature by walk. This layer will be opened in Edit mode as shown below in Pic. 3.66., and NextGIS Mobile will start recording a new geometry to the vector layer.
You can also switch to “Edit by walk” mode by first switching to Edit mode using any of the methods described in Switching to Edit mode section, and then by tapping “Append geometry by walk” button (see item 9 in Pic. 3.48., item 11 in Pic. 3.49., item 11 in Pic. 3.50. and item 11 in Pic. 3.51.)
If you’re not satisfied with the accuracy of the appended geometry, you can access NextGIS Mobile Location settings (see Pic. 3.10.) directly from “Edit by walk” screen (see item 6 in above Pic. 3.66.).
- When recording is finished tap on the “floppy” button (see item 4 in Pic. 3.66.). It will open the standard Attributes editing form, similar to Pic. 3.47., as shown below in Pic. 3.67..
- The new feature is now added to the existing Linestring/Multilinestring or Polygon/Multipolygon vector layer.
3.6.2. Managing recorded tracks¶
To start managing recorded tracks first find “My Tracks” group in Layers tree panel. Then tap on contextual menu button as shown in Pic. 3.68. and select “List”.
This will open a list of recorded tracks as shown in Pic. 3.69. below. Tracks’ points will be grouped by days and sessions within the day.
Select a track by ticking the corresponding checkbox, and buttons in Top toolbar will become active as shown in Pic. 3.70. below.
To hide a layer from Map screen tap on “Eye” button (item 6 in Pic. 3.70.).
You can change the colour of the track tapping the “Colour palette” button (item 3 in Pic. 3.70.).
- You can Show or Hide the selected track in the map screen. The starting point is shown in Green marker & the end point is shown in Red marker.
- You can delete the track (permanently).
- You can select all the tracks and perform above actions for all of them at a once.