Is there a problem with the function points_in_poly ? measure.points_in_poly