Yosef Karo, Translation:Shulchan Aruch — Orach Chaim 358…
“ Paragraph 9 - If an area enclosed for dwelling is bigger than two seahs and one plants trees in most of it, even if they are not planted in lines, they do not cancel the dwelling status of the area. However, if crops are planted in a majority of the area, the plants nullify its status as a dwelling place even if they are only two seahs. If a minority of the land has been planted and it is only two seahs, it is permitted [to carry within it] . If the area planted is more than two seahs, it is forbidden. ”
