Code to produce data for permit applications and reports