Detects type of spatial file