The structure of photodissociation regions: M17 northern bar