Check for invalid coordinate