Applying for a planning permit for a pig farm