Check for point and polygon