Conversion of polygonal footprints to occupancy grid