DALLAS (AP) – Texas landowners who live along a river separating them from Oklahoma have reached a settlement with federal officials saying the Texas border lies with the meandering flow of the river.

A federal judge on Wednesday approved the terms that settle a long-running dispute involving the Bureau of Land Management and property owners along the Red River.

READ MORE: Dallas County Considering Cash, Other Prizes To Get More People Vaccinated

(credit: CBSDFW.COM)

The landowners filed a 2015 lawsuit after agency surveyors set markers appearing to lay claim to private land.

READ MORE: Allen Couple Says Bobcat Family Moved Into Backyard

The BLM had argued the river has shifted as much as 2 miles in some areas over the past century, and some of the dry land where the river once flowed belonged to the government.

Robert Henneke, a lawyer for the landowners, says the agency’s claims amounted to an unlawful federal land grab.

MORE NEWS: Several Servers Arrested At Shops At Legacy In Plano For Overserving Alcohol

(© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)