A polygon centroid must be within a specific distance of a line