Fix altimetry sampling for segment with 0 length (rel #1337)