# Offset after copying AB lines from one field to another

**URL:** <https://discourse.agopengps.com/t/offset-after-copying-ab-lines-from-one-field-to-another/5558>\
**Category:** How It Works\
**Created:** [9 June 2021 04:10 UTC](https://discourse.agopengps.com/t/offset-after-copying-ab-lines-from-one-field-to-another/5558 "2021-06-09T04:10:23Z")\
**Posts on this page:** 20\
**Page:** 1

<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:** [9 June 2021 04:10 UTC](https://discourse.agopengps.com/t/offset-after-copying-ab-lines-from-one-field-to-another/5558/1 "2021-06-09T04:10:23Z")

</div>

I’m looking to understand better how AoG handles copying lines between fields. Currently I have a few fields that share a boundary and I’d like to use the same AB line for both so after I create the AB, I copy the ab.txt file (btw I love the ability to manipulate/prep/cleanup field data on my desktop with regular txt files) to the second field. Sometimes there’s an offset. Most times that’s fine, I can edit the AB and save at the correct position but I’m curious how it works. I’ve heard that is important to create the field with a current position that’s close to the field. So that all being said, here’s an example.

The red is where I created the first field, then I created the AB (it’s long because I’m using two land survey markers but less then 5km). Then I created the 2nd field at the yellow and copied the AB to it. After copying, it had an offset for the 2nd field. I was parked in the correct location to just snap and save but I might not always be. How does this work?

![Screenshot_20210608-225740_Fields Area Measure Free~2](https://discourse.agopengps.com/images/transparent.png)

---

<div class="post-metadata">

**Author:** ![KentStuff](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@KentStuff](https://discourse.agopengps.com/u/KentStuff)\
**Post date:** [9 June 2021 20:39 UTC](https://discourse.agopengps.com/t/offset-after-copying-ab-lines-from-one-field-to-another/5558/2 "2021-06-09T20:39:46Z")

</div>

You will need to import the ablines from a kml file. I’ve built this a couple of times. The .txt file is based off the original offsets.  
One option is to save the txt file with the correct chords, lat an long, with heading.

The current version really only needs one point and a heading. Viewing in the kml, you will need three points. The A point, and ref1 and ref2. So, the kml file will draw a line from ref1, to A, to ref2. When you load the abline into AOG, you calculate the heading from ref1 and ref2, then build ABLine normally from A and this heading.

---

<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:** [10 June 2021 03:19 UTC](https://discourse.agopengps.com/t/offset-after-copying-ab-lines-from-one-field-to-another/5558/3 "2021-06-10T03:19:21Z")

</div>

I can see myself wanting to do this often, and while I like seeing only a list of AB lines for each field individually, it would be quite handy to have the ability to load an AB from another field and have AoG do those conversion automatically. With the current version, I will probably position myself with with the 1st field’s AB and then load a new field and create a new line or copy it and just edit/snap it over to my position.

---

<div class="post-metadata">

**Author:** ![KentStuff](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@KentStuff](https://discourse.agopengps.com/u/KentStuff)\
**Post date:** [10 June 2021 04:42 UTC](https://discourse.agopengps.com/t/offset-after-copying-ab-lines-from-one-field-to-another/5558/4 "2021-06-10T04:42:37Z")

</div>

> [@Import Lines from Google Earth](https://discourse.agopengps.com/t/import-lines-from-google-earth/5130):
>
> Messing around with V5.4. Wondered again if you could draw something in Google Earth and then have AOG show it on the screen. Yes, it is very possible. In the image below, I created a field then opened the field in Google Earth. I drew the curved line and exported it into AOG simular to the way that boundaries are imported. After success with that, I then added this line to the pick points in the ABDraw screen. Asked AOG to build the curve, and WOW… It worked. Brian is a genius. Most of …

Towards the end of this thread is where I have been working on it. Currently away from computer. When I get back next week, I will post the code to export and import ABLines.

---

<div class="post-metadata">

**Author:** ![BrianTee\_Admin](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/briantee_admin/32/7_2.png) [@BrianTee\_Admin](https://discourse.agopengps.com/u/BrianTee_Admin)\
**Post date:** [10 June 2021 21:10 UTC](https://discourse.agopengps.com/t/offset-after-copying-ab-lines-from-one-field-to-another/5558/5 "2021-06-10T21:10:04Z")

</div>

You can also do a “save as” when closing the field and pick and choose what you would like to save.

The reason there is an offset is as KentStuff mentioned. When you make a new field the origin of that field is different so all the offsets to make that field start at 0,0 instead of 6 million meters from the equator are different. Save as works good, especially if the 2 fields are close together.

![Screenshot_33](https://discourse.agopengps.com/images/transparent.png)

In this case you would only save the ABLines

---

<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:** [10 June 2021 22:45 UTC](https://discourse.agopengps.com/t/offset-after-copying-ab-lines-from-one-field-to-another/5558/6 "2021-06-10T22:45:25Z")

</div>

That’s a good idea. How far away could the two fields be and the Save As option work well? Ours are all within 5 miles. I could save as the same field for each real field, then copy paste ABs as needed.

---

<div class="post-metadata">

**Author:** ![BrianTee\_Admin](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/briantee_admin/32/7_2.png) [@BrianTee\_Admin](https://discourse.agopengps.com/u/BrianTee_Admin)\
**Post date:** [11 June 2021 00:37 UTC](https://discourse.agopengps.com/t/offset-after-copying-ab-lines-from-one-field-to-another/5558/7 "2021-06-11T00:37:57Z")

</div>

It is really intended to be used in the same field, and also since it uses local plane, it starts being farther from where it should be in a mile or so.

---

<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:** [11 June 2021 01:39 UTC](https://discourse.agopengps.com/t/offset-after-copying-ab-lines-from-one-field-to-another/5558/8 "2021-06-11T01:39:08Z")

</div>

So could I offset the copied AB according to the offset between the two fields somehow?

---

<div class="post-metadata">

**Author:** ![KentStuff](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@KentStuff](https://discourse.agopengps.com/u/KentStuff)\
**Post date:** [11 June 2021 03:41 UTC](https://discourse.agopengps.com/t/offset-after-copying-ab-lines-from-one-field-to-another/5558/9 "2021-06-11T03:41:27Z")

</div>

Kml does not care how far apart they are. However, just curious why you would want an abline reference that is 5 miles away? What are you trying to line up?

---

<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:** [11 June 2021 15:35 UTC](https://discourse.agopengps.com/t/offset-after-copying-ab-lines-from-one-field-to-another/5558/10 "2021-06-11T15:35:57Z")

</div>

It’s not that I’d want to share ABs between fields that far away but I thought if field A is beside B and B beside C and C beside D, and if it would simplify sharing ABs if the neighboring fields use the same local plane then they would all end up on the same local plane. Maybe I’m obsessing over precision here but I thought I could reuse ABs for the boundary between neighboring fields.

---

<div class="post-metadata">

**Author:** ![KentStuff](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@KentStuff](https://discourse.agopengps.com/u/KentStuff)\
**Post date:** [11 June 2021 17:18 UTC](https://discourse.agopengps.com/t/offset-after-copying-ab-lines-from-one-field-to-another/5558/11 "2021-06-11T17:18:22Z")

</div>

The import kml abline will work great for that. It will be as accurate as the lat and long is. I’ll post it next week.

---

<div class="post-metadata">

**Author:** ![BrianTee\_Admin](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/briantee_admin/32/7_2.png) [@BrianTee\_Admin](https://discourse.agopengps.com/u/BrianTee_Admin)\
**Post date:** [12 June 2021 04:18 UTC](https://discourse.agopengps.com/t/offset-after-copying-ab-lines-from-one-field-to-another/5558/12 "2021-06-12T04:18:14Z")

</div>

Actually the farther you are away from the initial start point of the field, accuracy drops off rapidly, It’s because we dwell on an oblate spheroid (football).

You could just copy the AB heading and make that the same for each field. But don’t use the same field start position for miles. That is the opposite of precision.

---

<div class="post-metadata">

**Author:** ![PotatoFarmer](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/potatofarmer/32/11865_2.png) [@PotatoFarmer](https://discourse.agopengps.com/u/PotatoFarmer)\
**Post date:** [12 June 2021 15:47 UTC](https://discourse.agopengps.com/t/offset-after-copying-ab-lines-from-one-field-to-another/5558/13 "2021-06-12T15:47:30Z")

</div>

Trying to put square fields on a spheroid ball is tough, the reason correction line roads exist.

In order to make it kinda square Surveyors have a value called “projection”. It is the error between the spheroid and the flat area. Over a distance of only 200m the projection factor is 0.99570 at my elevation. 1.0 being perfect square on square measurement. This is why many surveys are done in a Localization of measurements almost true to each other. Canada is still running on NAD83 datum system.

Its only in the recent years that we now have WGS84 and ITRF20XX, for a more global measurement system based off satellite measurements. But it does not eliminate projection.

In Canada most of the survey was done by Chain, Transit, Sextant and Stars. So your roads are not going to always match up to the tractors path either. You have better survey technology in your seeder than the original surveyors had to map the continent.

Just use A+ for headings it makes life much easier.

---

<div class="post-metadata">

**Author:** ![KentStuff](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@KentStuff](https://discourse.agopengps.com/u/KentStuff)\
**Post date:** [17 June 2021 05:12 UTC](https://discourse.agopengps.com/t/offset-after-copying-ab-lines-from-one-field-to-another/5558/14 "2021-06-17T05:12:33Z")

</div>

Here are the two AB kml routines.  
One is for saving and one is for reading. Both are in the same file.

[ablinekml.txt](https://discourse.agopengps.com/uploads/short-url/bG720bpE12NUpTM1akJ63Xs2sdu.txt) (7.1 KB)

---

<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:** [17 June 2021 12:36 UTC](https://discourse.agopengps.com/t/offset-after-copying-ab-lines-from-one-field-to-another/5558/15 "2021-06-17T12:36:18Z")

</div>

How do I use this?

---

<div class="post-metadata">

**Author:** ![KentStuff](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@KentStuff](https://discourse.agopengps.com/u/KentStuff)\
**Post date:** [17 June 2021 12:50 UTC](https://discourse.agopengps.com/t/offset-after-copying-ab-lines-from-one-field-to-another/5558/16 "2021-06-17T12:50:27Z")

</div>

I will add it into a branch and post it back here.

---

<div class="post-metadata">

**Author:** ![KentStuff](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@KentStuff](https://discourse.agopengps.com/u/KentStuff)\
**Post date:** [21 June 2021 05:14 UTC](https://discourse.agopengps.com/t/offset-after-copying-ab-lines-from-one-field-to-another/5558/17 "2021-06-21T05:14:53Z")

</div>

@m_elias

Here is the link to the program that will import the KML ABLine files. It may open other files but I doubt it.

Currently it simply opens the file regardless of how far away it is, and it keeps the origin point and loads the heading. You must load the file from and existing ABLines.kml. This prorgram writes and reads this file.

Start this program open whatever field you wish. If there is an ABLine when you close the field it will create the ABLines.kml file. This can be loaded with Google Earth if you would like to see it.

Start a different field that has a boundary. Click on the ABDraw button at the bottom of the screen. You will see an import with a folder near the old line function. Click this, navigate to the field folder, click on the ABLines.kml. It will import every line in that field. You may or may not be able to see them in this window. When you go back to the main screen and start an ABLine, you should be running it. I have no idea how far or accurate it will pick up.

This is it in the other hemisphere. I did not do the math to fine out if the distance and how many paths away is accurate. It will not draw the line this far away, but it will drive it.

![image](https://discourse.agopengps.com/images/transparent.png)

Souce Code is in the same GItHub.

[AgOpenGPS\_v5.zip](https://github.com/KentStuff/AOG-AB-Import/blob/master/AgOpenGPS_v5.zip)

---

<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:** [21 June 2021 15:40 UTC](https://discourse.agopengps.com/t/offset-after-copying-ab-lines-from-one-field-to-another/5558/18 "2021-06-21T15:40:45Z")

</div>

It seems to me that it would be simpler if I just Save As a new field, and copy over the lines that way, then delete the ones that don’t apply and use those copied lines to create the new neighboring field’s boundary. Otherwise I’d have to create a boundary before being able to use the kml import.

---

<div class="post-metadata">

**Author:** ![KentStuff](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@KentStuff](https://discourse.agopengps.com/u/KentStuff)\
**Post date:** [21 June 2021 16:20 UTC](https://discourse.agopengps.com/t/offset-after-copying-ab-lines-from-one-field-to-another/5558/19 "2021-06-21T16:20:30Z")

</div>

I like to create one big field that contains all the fields. I can easily share the wanted ABLines between the fields. The only reason that you must build a boundary first is because it is inside the ABDraw. This needs a Boundary in order to load. Fairly simple to place this somewhere else.

---

<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:** [21 June 2021 16:23 UTC](https://discourse.agopengps.com/t/offset-after-copying-ab-lines-from-one-field-to-another/5558/20 "2021-06-21T16:23:21Z")

</div>

Can you elaborate more on why you create one big field, and then you’re still sharing AB lines? How does that work with multiple boundaries?

[Next page](https://discourse.agopengps.com/t/offset-after-copying-ab-lines-from-one-field-to-another/5558.md?page=2)
