# Data management

**URL:** <https://discourse.agopengps.com/t/data-management/16749>\
**Category:** Software\
**Created:** [28 May 2024 20:53 UTC](https://discourse.agopengps.com/t/data-management/16749 "2024-05-28T20:53:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![samduster](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/s/a8b319/32.png) [@samduster](https://discourse.agopengps.com/u/samduster)\
**Post date:** [28 May 2024 20:53 UTC](https://discourse.agopengps.com/t/data-management/16749/1 "2024-05-28T20:53:10Z")

</div>

I’m trying to keep historical data without continuing to stack field names and am wondering how to do it without degrading accuracy?

_ **Example 1:** _ Separate tasks on the same field (spray, then plant) Would like to keep the application data.

_ **Example 2:** _ Share A/B lines with other fields. Sometimes its all one block of land but different crops where spacing can be maintained but it’s just called a different field. I tried edited the ABLines.txt but that wasn’t the answer. Is 100% of the accuracy retained when ‘extracting’ the AB Lines from the Field.kml file?

_ **Example 3:** _ Sync vehicle settings among multiple vehicle tablets / computers. From what I’ve seen the .xml’s in the Documents directory only update once closing or any time you open the vehicle settings menu. It also seems like they do not hold all the data if you simply sync that particular folder.

I tried Syncthing this spring but it ended up being a mess any time more than one application was open, conflicts galore. I could run them in offline mode but then they both make changes and end up with conflicts anyway. I basically would like to know the structure of data management so I can make my own syncing/file management proper and not loose accuracy or data.

---

<div class="post-metadata">

**Author:** ![chri5k](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/c/87869e/32.png) [@chri5k](https://discourse.agopengps.com/u/chri5k)\
**Post date:** [28 May 2024 21:01 UTC](https://discourse.agopengps.com/t/data-management/16749/2 "2024-05-28T21:01:49Z")

</div>

Not sure it is 100% what you are looking for but here is a thread.

> [@Job manager for AOG](https://discourse.agopengps.com/t/job-manager-for-aog/15530):
>
> Is is possible to tell what field and equipment AOG is currently using, from outside of the appliaction? I use the amazing and flexible open soruce farmOS for recordceeping. It has an API, so quite easy to push working logs into it from code. If I knew the current, or last used field and equipment, I could have a script to push this info into farmOS, and add a “Review” flag to the log.

Also, maybe FarmOS could provide some of what you need.

---

<div class="post-metadata">

**Author:** ![samduster](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/s/a8b319/32.png) [@samduster](https://discourse.agopengps.com/u/samduster)\
**Post date:** [28 May 2024 21:55 UTC](https://discourse.agopengps.com/t/data-management/16749/3 "2024-05-28T21:55:26Z")

</div>

I’ve come across that same thread in my searches before I posted, looks great but pretty in depth at the moment.

The main goals right away:

1. Accurately share AB Lines / Boundaries (can be manually, just need to know what to edit to properly update all relevant files). I am also concerned about losing accuracy but came across a post saying Earth doesn’t truncate the actual coordinates, just doesn’t display them?)

2. Share or sync all vehicles. I believe there is a couple different files involved so I’m not sure it’s as simple as keeping the default Vehicles folder synced…

---

<div class="post-metadata">

**Author:** ![gameo](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/g/e274bd/32.png) [@gameo](https://discourse.agopengps.com/u/gameo)\
**Post date:** [28 May 2024 22:27 UTC](https://discourse.agopengps.com/t/data-management/16749/4 "2024-05-28T22:27:32Z")

</div>

Its not stored in a database. Maybe you want to much. It’s old technology.

---

<div class="post-metadata">

**Author:** ![Davidwedel](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/d/e9a140/32.png) [@Davidwedel](https://discourse.agopengps.com/u/Davidwedel)\
**Post date:** [28 May 2024 22:59 UTC](https://discourse.agopengps.com/t/data-management/16749/5 "2024-05-28T22:59:01Z")

</div>

![image](https://discourse.agopengps.com/uploads/default/original/3X/c/d/cd29dd0c2e591c3333f05f1e9b81e787a0df33f2.png)  
What’s old technology? 🙂  
The most basic is to zip up the folder in ~/Documents called AgOpenGPS. This contains all the fields, vehicles, and AgIO settings. Then send to your other tablet over some messaging platform… I use telegram, because I already have it on all my tablets.

> [@Anyone use Google drive to share AB lines?](https://discourse.agopengps.com/t/anyone-use-google-drive-to-share-ab-lines/7553):
>
> Anyone done this know the pitfalls? The plan is make the AOG folder on gdrive, then make it available offline. One guy rolls in on a field and saves and syncs, second guy set up to the same folder now has access to the ab line, and field data. Or is there an even better way I am missing?

Probably ideally would be a git-like setup, where you would ignore the section/contour data, until explicitly told to send it.

---

<div class="post-metadata">

**Author:** ![m\_elias](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/m/94ad74/32.png) [@m\_elias](https://discourse.agopengps.com/u/m_elias)\
**Post date:** [29 May 2024 00:21 UTC](https://discourse.agopengps.com/t/data-management/16749/6 "2024-05-29T00:21:20Z")

</div>

#1 Yes, I think split it by coverage map “layers” or jobs.

#2 I believe the AB lines are saved in the field’s local coordinate system, all relative to the “home” or “start” position (0,0) where you were when you first created the field. I too would like to copy ABs sometimes but so far you’d have to create all the fields with the same start position or it might work to open the kml in Google Earth and export it back to AOG. If you create one field without a boundary, then create new fields from that first one for each additional field, they should all have the same start position.

#3 Can you pinpoint what data isn’t saved in the vehicle XMLs? I sync the AOG documents folder using my self hosted Seafile server and it seems to work but mostly as a backup so far.

Here’s a chat message from BSE I saved for my own future reference:

For all those who have asked for multiple device support here, I have done some tests and depending on what you want to achieve, it works well with Syncthing.

I cross-synced the complete documents folder, for test, with 3sec.

AB lines, flags and marked areas only appear on the other tablet once the field has been closed and reopened.

If you assign different colors to the two rovers, both markers are displayed correctly later.  
Even if both rovers are working on the same field at the same time.

If both rovers open the same field at the same time and create new ABs, they will all be present after reopening.

The same applies to flags.

Of course, this does not work for tramlines. There is only one file for this.

But this way, all vehicle fields and the lines can be shared across several rovers almost in real time.

It works frighteningly well.  
Can post some pictures/videos if desired.

For one farm i let sync them all together. 2 or 5 Rovers dosnt matter.

Yes, all tablets point to the Documents/AgOpenGPS folder.

Sync Conflicts only shows up, when two or more Tablets have the same Vehicle open. And then u get a file with conflict in the name.

But normaly, only on vehicle is used per one tablet;).

All other stuff syncs fine!

And as i wrote, when u set all Tablets other colors, they all shows up.  
But not lifetime when field is open. U have to close and reopen it.  
Also for AB, Flags and Co.

---

<div class="post-metadata">

**Author:** ![samduster](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/s/a8b319/32.png) [@samduster](https://discourse.agopengps.com/u/samduster)\
**Post date:** [29 May 2024 01:00 UTC](https://discourse.agopengps.com/t/data-management/16749/7 "2024-05-29T01:00:38Z")

</div>

#1 Right now I manually open the ‘Field.kml’ in Google Earth then Save-As to a new file name in my backup directory

#2 I understand the Coordinate System is confusing/complicated (which is why the 0,0 method is used), but this makes sharing AB Lines manually impossible, correct? I’m guessing the only way to share them without re-creating fields would be to extract them in Google Earth then import the AB file into the desired field while running AOG? If this is the correct process, is _ **ANY** _ loss in AB line accuracy?

#3 Can anyone verify if this is the process yet (link explains vehicle.xml process)?

> [@Vehicle settings file setup](https://discourse.agopengps.com/t/vehicle-settings-file-setup/12657/3):
>
> There is a pinned message on telegram: Brian Tee, [28-01-2023 14:41] Appdata has the “working” copy of the exact same settings file used and sourced in 3 different places. The default XML file. This is stored in the program folder called AgOpenGPS.exe.config. This has every setting ever used in AOG. AgIO has one also. When you first start AOG, it uses this file and creates a skeleton copy of it in AppData to be the working copy of any changes in settings you make. C:\Users\Grizs\AppData\…

Interesting comments on someone’s experience with Syncthing, I too noticed vehicles getting conflicts, but also the AllFields.kml file. I haven’t had both tablets in the same field at the same time so that probably eliminates conflicts on most if not all of the Field folder data.

---

<div class="post-metadata">

**Author:** ![gameo](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/g/e274bd/32.png) [@gameo](https://discourse.agopengps.com/u/gameo)\
**Post date:** [29 May 2024 08:41 UTC](https://discourse.agopengps.com/t/data-management/16749/8 "2024-05-29T08:41:39Z")

</div>

I mean, you can’t use the same setting files with several applications.  
Modern apps are not as robust as AOG.
