Any person owning land upon a watercourse may erect a wharf on the same, or a pier or bulkhead in such watercourse, opposite his land, provided the navigation be not obstructed thereby, and provided such wharf, pier or bulkhead shall not otherwise injure the rights of any person. But the county court of the county in which such wharf, pier or bulkhead shall be, after causing ten days' notice to be given to the owner thereof of its intention to consider the subject, if it be satisfied that such wharf, pier or bulkhead obstructs the navigation of the watercourse, or so encroaches on any public landing as to prevent the free use thereof, may abate the same.